Replaced "X.500" with "LDAP", seems more relevant these days.

Suggested by Jauder Ho <jauderho@transmeta.com>.
This commit is contained in:
Kurt Zeilenga 1998-09-16 00:12:37 +00:00
parent 4d845ef221
commit 94e5282de9
8 changed files with 24 additions and 24 deletions

View file

@ -10,4 +10,4 @@
* is provided ``as is'' without express or implied warranty. * is provided ``as is'' without express or implied warranty.
*/ */
char Version[] = " X.500 UserDirectory %VERSION% (%WHEN%)\n\t%WHOANDWHERE%\n"; char Version[] = "LDAP UserDirectory %VERSION% (%WHEN%)\n\t%WHOANDWHERE%\n";

View file

@ -161,7 +161,7 @@ int implicit;
if ( hassimple && !kinited ) { if ( hassimple && !kinited ) {
printf(" Which password would you like to use?\n"); printf(" Which password would you like to use?\n");
printf(" 1 -> X.500 password\n"); printf(" 1 -> LDAP password\n");
#ifdef UOFM #ifdef UOFM
printf(" 2 -> UMICH password (aka Uniqname or Kerberos password)\n"); printf(" 2 -> UMICH password (aka Uniqname or Kerberos password)\n");
#else #else
@ -227,7 +227,7 @@ int implicit;
} else { } else {
#endif #endif
authmethod = LDAP_AUTH_SIMPLE; authmethod = LDAP_AUTH_SIMPLE;
sprintf(prompt, " Enter your X.500 password: "); sprintf(prompt, " Enter your LDAP password: ");
do { do {
passwd = mygetpass(prompt); passwd = mygetpass(prompt);
} while (passwd != NULL && *passwd == '\0'); } while (passwd != NULL && *passwd == '\0');

View file

@ -227,7 +227,7 @@ int quiet;
} else if (matches == 1) { } else if (matches == 1) {
if (ldap_search_s(ld, ldap_get_dn(ld, ldap_first_entry(ld, res)), LDAP_SCOPE_BASE, "objectClass=*", read_attrs, FALSE, &res) != LDAP_SUCCESS) { if (ldap_search_s(ld, ldap_get_dn(ld, ldap_first_entry(ld, res)), LDAP_SCOPE_BASE, "objectClass=*", read_attrs, FALSE, &res) != LDAP_SUCCESS) {
if (ld->ld_errno == LDAP_UNAVAILABLE) if (ld->ld_errno == LDAP_UNAVAILABLE)
printf(" Could not contact the X.500 server to find \"%s\".\n", who); printf(" Could not contact the LDAP server to find \"%s\".\n", who);
else else
ldap_perror(ld, "ldap_search_s"); ldap_perror(ld, "ldap_search_s");
return(NULL); return(NULL);

View file

@ -178,7 +178,7 @@ char *name;
#endif #endif
/* /*
* Now add this to the X.500 Directory. * Now add this to the LDAP Directory.
*/ */
if (ldap_add_s(ld, dn, attrs) != 0) { if (ldap_add_s(ld, dn, attrs) != 0) {
ldap_perror(ld, " ldap_add_s"); ldap_perror(ld, " ldap_add_s");
@ -228,7 +228,7 @@ char *name;
return; return;
/* /*
* Now remove this from the X.500 Directory. * Now remove this from the LDAP Directory.
*/ */
if (ldap_delete_s(ld, dn) != 0) { if (ldap_delete_s(ld, dn) != 0) {
if (ld->ld_errno == LDAP_INSUFFICIENT_ACCESS) if (ld->ld_errno == LDAP_INSUFFICIENT_ACCESS)
@ -455,7 +455,7 @@ char *group;
} }
/* /*
* Add the X.500 style names. * Add the LDAP style names.
*/ */
if (count_x500 > 0) { if (count_x500 > 0) {
mods[0] = &mod; mods[0] = &mod;
@ -565,7 +565,7 @@ char *group;
vp = Entry.attrs[attr_to_index("member")].values; vp = Entry.attrs[attr_to_index("member")].values;
if (vp == NULL) { if (vp == NULL) {
if (verbose) if (verbose)
printf(" \"%s\" has no X.500 members. There is nothing to purge.\n", group); printf(" \"%s\" has no LDAP members. There is nothing to purge.\n", group);
return; return;
} }
for (; *vp != NULL; vp++) { for (; *vp != NULL; vp++) {
@ -808,7 +808,7 @@ int offset;
} }
if (verbose) { if (verbose) {
printf("\n"); printf("\n");
format("Values may be specified as a name (which is then looked up in the X.500 Directory) or as a domain-style (i.e., user@domain) e-mail address. Simply hit the RETURN key at the prompt when finished.\n", 75, 2); format("Values may be specified as a name (which is then looked up in the LDAP Directory) or as a domain-style (i.e., user@domain) e-mail address. Simply hit the RETURN key at the prompt when finished.\n", 75, 2);
printf("\n"); printf("\n");
} }

View file

@ -91,7 +91,7 @@ char *s;
format("should be specified as a ordinary name (e.g., 'Friends of maX500').", 75, 15); format("should be specified as a ordinary name (e.g., 'Friends of maX500').", 75, 15);
printf("\n"); printf("\n");
printf(" [where] A place in the Directory needs to be specified. This name\n"); printf(" [where] A place in the Directory needs to be specified. This name\n");
format("should be specified as an X.500-style name (e.g., 'ou=people, o=University of Michigan, c=United States of America'). In most cases, it is easier to omit the [where] and allow the program to guide you.", 75, 15); format("should be specified as an LDAP-style name (e.g., 'ou=people, o=University of Michigan, c=United States of America'). In most cases, it is easier to omit the [where] and allow the program to guide you.", 75, 15);
printf("\n"); printf("\n");
printf(" [who] A person in the Directory needs to be specified. This name\n"); printf(" [who] A person in the Directory needs to be specified. This name\n");
format("can be specified as either a ordinary name (e.g., 'Jane Doe'), or as some other identifying characteristic (e.g., 'uid=babs').", 75, 15); format("can be specified as either a ordinary name (e.g., 'Jane Doe'), or as some other identifying characteristic (e.g., 'uid=babs').", 75, 15);
@ -114,7 +114,7 @@ char *s;
} }
else if (!strncasecmp("groupbase", s, len)) { else if (!strncasecmp("groupbase", s, len)) {
printf(" groupbase [where]\n\n"); printf(" groupbase [where]\n\n");
format("The syntax and use of this command is identical to the more commonly used 'cb' command. This command sets the base which is used to create groups in the X.500 Directory. Setting the base to a certain value does not necessarily grant the person write-access to that part of the Directory in order to successfully create a group.", 75, 2); format("The syntax and use of this command is identical to the more commonly used 'cb' command. This command sets the base which is used to create groups in the LDAP Directory. Setting the base to a certain value does not necessarily grant the person write-access to that part of the Directory in order to successfully create a group.", 75, 2);
} }
else if (!strncasecmp("cd", s, len) || !strncasecmp("cb", s,len)) { else if (!strncasecmp("cd", s, len) || !strncasecmp("cb", s,len)) {
printf(" cb [where]\n"); printf(" cb [where]\n");
@ -128,7 +128,7 @@ char *s;
printf("\n * cb default\n\n"); printf("\n * cb default\n\n");
format("sets the search base to its original default value.", 75, 2); format("sets the search base to its original default value.", 75, 2);
printf("\n * cb o=Merit Computer Network, c=US\n\n"); printf("\n * cb o=Merit Computer Network, c=US\n\n");
format("sets the search base to organization given, the Merit Computer Network in this case. This comamnd checks the validity of the specified search base, and rejects it if it is not a valid Distinguished Name (DN). A DN uniquely identifies a portion of the global X.500 namespace.", 75, 2); format("sets the search base to organization given, the Merit Computer Network in this case. This comamnd checks the validity of the specified search base, and rejects it if it is not a valid Distinguished Name (DN). A DN uniquely identifies a portion of the global LDAP namespace.", 75, 2);
} }
else if (!strncasecmp("quit", s, len) || !strncasecmp("stop",s, len)) { else if (!strncasecmp("quit", s, len) || !strncasecmp("stop",s, len)) {
printf(" quit\n"); printf(" quit\n");
@ -148,7 +148,7 @@ char *s;
else if (!strncasecmp("modify", s, len) || !strncasecmp("change", s, len)) { else if (!strncasecmp("modify", s, len) || !strncasecmp("change", s, len)) {
printf(" modify [entry]\n"); printf(" modify [entry]\n");
printf(" change [entry]\n\n"); printf(" change [entry]\n\n");
format("Changes information associated with an entry in the X.500 Directory. 'change' is an alias for 'modify'.", 75, 2); format("Changes information associated with an entry in the LDAP Directory. 'change' is an alias for 'modify'.", 75, 2);
} }
else if (!strncasecmp("verbose", s, len)) { else if (!strncasecmp("verbose", s, len)) {
printf(" verbose\n\n"); printf(" verbose\n\n");
@ -185,7 +185,7 @@ char *s;
} }
else if (!strncasecmp("tidy", s, len)) { else if (!strncasecmp("tidy", s, len)) {
printf(" tidy\n\n"); printf(" tidy\n\n");
format("Unsubscribes you from non-existent groups. Useful when you cannot resign from a group because, while your X.500 entry still contains a pointer to it, someone has removed a group of which you were a subscriber.", 75, 2); format("Unsubscribes you from non-existent groups. Useful when you cannot resign from a group because, while your LDAP entry still contains a pointer to it, someone has removed a group of which you were a subscriber.", 75, 2);
} }
else if (*s == '?') { else if (*s == '?') {
format("Prints out a brief description of each command. Same as typing 'help help'.", 75, 2); format("Prints out a brief description of each command. Same as typing 'help help'.", 75, 2);

View file

@ -69,8 +69,8 @@ static int dereference = TRUE;
char *default_bind_object = UD_BINDDN; char *default_bind_object = UD_BINDDN;
char *bound_dn; /* bound user's Distinguished Name */ char *bound_dn; /* bound user's Distinguished Name */
char *group_base; /* place in X.500 tree where groups are */ char *group_base; /* place in LDAP tree where groups are */
char *search_base; /* place in X.500 tree where searches start */ char *search_base; /* place in LDAP tree where searches start */
static jmp_buf env; /* spot to jump to on an interrupt */ static jmp_buf env; /* spot to jump to on an interrupt */
@ -375,7 +375,7 @@ char **base, *s;
} }
/* /*
* User wants to ascend one level in the X.500 tree. * User wants to ascend one level in the LDAP tree.
* Easy: Just strip off the first element of the * Easy: Just strip off the first element of the
* current search base, unless it's the root, in * current search base, unless it's the root, in
* which case we just do nothing. * which case we just do nothing.
@ -628,13 +628,13 @@ initialize_client()
* because we want to be sure to use TCP, not UDP. * because we want to be sure to use TCP, not UDP.
*/ */
if ((ld = ldap_open(server, ldap_port)) == NULL) { if ((ld = ldap_open(server, ldap_port)) == NULL) {
fprintf(stderr, " The X.500 Directory is temporarily unavailable. Please try again later.\n"); fprintf(stderr, " The LDAP Directory is temporarily unavailable. Please try again later.\n");
exit(0); exit(0);
/* NOTREACHED */ /* NOTREACHED */
} }
if (ldap_bind_s(ld, (char *) default_bind_object, (char *) UD_BIND_CRED, if (ldap_bind_s(ld, (char *) default_bind_object, (char *) UD_BIND_CRED,
LDAP_AUTH_SIMPLE) != LDAP_SUCCESS) { LDAP_AUTH_SIMPLE) != LDAP_SUCCESS) {
fprintf(stderr, " The X.500 Directory is temporarily unavailable. Please try again later.\n"); fprintf(stderr, " The LDAP Directory is temporarily unavailable. Please try again later.\n");
if (ld->ld_errno != LDAP_UNAVAILABLE) if (ld->ld_errno != LDAP_UNAVAILABLE)
ldap_perror(ld, " ldap_bind_s"); ldap_perror(ld, " ldap_bind_s");
exit(0); exit(0);

View file

@ -111,7 +111,7 @@ char *who;
if (verbose && !printed_warning && (ld->ld_errno == LDAP_NO_SUCH_ATTRIBUTE)) { if (verbose && !printed_warning && (ld->ld_errno == LDAP_NO_SUCH_ATTRIBUTE)) {
printed_warning = 1; printed_warning = 1;
printf("\n WARNING!\n"); printf("\n WARNING!\n");
printf(" You are about to make a modification to an X.500 entry\n"); printf(" You are about to make a modification to an LDAP entry\n");
printf(" that has its \"automatic updates\" field set to ON.\n"); printf(" that has its \"automatic updates\" field set to ON.\n");
printf(" This means that the entry will be automatically updated\n"); printf(" This means that the entry will be automatically updated\n");
printf(" each month from official University sources like the\n"); printf(" each month from official University sources like the\n");
@ -483,7 +483,7 @@ mail_is_good:
if (lmp == (LDAPMessage *) NULL) { if (lmp == (LDAPMessage *) NULL) {
printf(" Could not find \"%s\" in the Directory\n", line); printf(" Could not find \"%s\" in the Directory\n", line);
if (verbose) if (verbose)
format("Owners of groups must be valid entries in the X.500 Directory. The name you have typed above could not be found in the X.500 Directory.", 72, 2); format("Owners of groups must be valid entries in the LDAP Directory. The name you have typed above could not be found in the LDAP Directory.", 72, 2);
return(NULL); return(NULL);
} }
elmp = ldap_first_entry(ld, lmp); elmp = ldap_first_entry(ld, lmp);
@ -622,9 +622,9 @@ char *who;
if (verbose) { if (verbose) {
printf("\n By default, updates that are received from the Personnel\n"); printf("\n By default, updates that are received from the Personnel\n");
printf(" Office and the Office of the Registrar are applied to all\n"); printf(" Office and the Office of the Registrar are applied to all\n");
printf(" entries in the X.500 database each month. Sometimes this\n"); printf(" entries in the LDAP database each month. Sometimes this\n");
printf(" feature is undesirable. For example, if you maintain your\n"); printf(" feature is undesirable. For example, if you maintain your\n");
printf(" entry in the X.500 database manually, you may not want to\n"); printf(" entry in the LDAP database manually, you may not want to\n");
printf(" have these updates applied to your entry, possibly overwriting\n"); printf(" have these updates applied to your entry, possibly overwriting\n");
printf(" correct information with out-dated information.\n\n"); printf(" correct information with out-dated information.\n\n");
} }

View file

@ -85,7 +85,7 @@ char *prompt;
#endif #endif
/* /*
* Stolen from the getpass() routine. Can't use the plain * Stolen from the getpass() routine. Can't use the plain
* getpass() for two reasons. One is that X.500 passwords * getpass() for two reasons. One is that LDAP passwords
* can be really, really long - much longer than 8 chars. * can be really, really long - much longer than 8 chars.
* The second is that we like to make this client available * The second is that we like to make this client available
* out of inetd via a Merit asynch port, and we need to be * out of inetd via a Merit asynch port, and we need to be