DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

goodpw_set_other_checks(S)


goodpw_set_other_checks -- select password parameters

Syntax

cc . . . -lprot
#include <sys/types.h>
#include <prot.h>

int goodpw_set_other_checks(type) int type;

Description

goodpw_set_other_checks selects the password parameters for groups, modem lines, or filesystems, allowing passwords to be checked with goodpw_check_other(S).

This routine is called when checking the suitability of passwords for groups, modem lines and filesystems. type is either GOODPW_GROUP, GOODPW_MODEM or GOODPW_FILSYS depending on the object for which the password is intended. If goodpw(ADM) is configured, this routine will terminate any existing goodpw dialogue, and open a pipe to goodpw for subsequent repeated use by goodpw_check_other(S).

Return values

The following values are returned by goodpw_set_other_checks:

SMP_FAIL
No memory was available to store the goodpw parameters.

SMP_EXTFAIL
goodpw was configured, but the attempt to execute it failed.

SMP_COMPLETE
The checks have been successfully established.

Diagnostics

In the current implementation no diagnostic messages are returned.

Examples

See goodpw_check_other(S) for an example which illustrates the usage of goodpw_set_other_checks.

Files


/lib/libprot.a
security subsystem library routines

/usr/lib/libp/libprot.a
as above but used for profiling

See also

goodpw_check_other(S), smp_check_user(S), smp_check_pw(S), smp_pw_choice(S), smp_generate_pw(S), smp_get_messages(S), smp_pw_change(S), smp_set_identity(S), smp_set_pw(S), smp_try_pw(S)

Standards conformance

goodpw_set_other_checks is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003