--- clients/tools/common.c 2006/04/04 01:20:33 1.78 +++ clients/tools/common.c 2006/08/21 22:58:07 1.78.2.2 @@ -1,5 +1,5 @@ /* common.c - common routines for the ldap client tools */ -/* $OpenLDAP: pkg/ldap/clients/tools/common.c,v 1.77 2006/04/01 21:44:42 hallvard Exp $ */ +/* $OpenLDAP: pkg/ldap/clients/tools/common.c,v 1.78.2.1 2006/08/17 23:50:21 kurt Exp $ */ /* This work is part of OpenLDAP Software . * * Copyright 1998-2006 The OpenLDAP Foundation. @@ -187,12 +187,12 @@ N_(" -C chase referrals (anonym N_(" -d level set LDAP debugging level to `level'\n"), N_(" -D binddn bind DN\n"), N_(" -e [!][=] general extensions (! indicates criticality)\n") -N_(" [!]assert= (an RFC 2254 Filter)\n") +N_(" [!]assert= (a RFC 4515 Filter string)\n") N_(" [!]authzid= (\"dn:\" or \"u:\")\n") #ifdef LDAP_CONTROL_OBSOLETE_PROXY_AUTHZ #if 0 /* non-advertized support for proxyDN */ -N_(" [!]proxydn= (an RFC 2253 DN)\n") +N_(" [!]proxydn= (a RFC 4514 DN string)\n") #endif #endif #ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR @@ -200,17 +200,17 @@ N_(" [!]chaining[=] (a comma-separated attribute list)\n") -N_(" [!]preread[=] (a comma-separated attribute list)\n"), -N_(" abandon, cancel (SIGINT sends abandon/cancel; not really controls)\n") +N_(" [!]preread[=] (a comma-separated attribute list)\n") +#ifdef LDAP_DEVEL +N_(" [!]relax\n") +#endif +N_(" abandon, cancel (SIGINT sends abandon/cancel; not really controls)\n"), N_(" -f file read operations from `file'\n"), N_(" -h host LDAP server\n"), N_(" -H URI LDAP Uniform Resource Indentifier(s)\n"), @@ -383,15 +383,17 @@ tool_args( int argc, char **argv ) proxydn = cvalue; #endif /* LDAP_CONTROL_OBSOLETE_PROXY_AUTHZ */ - } else if ( strcasecmp( control, "manageDIT" ) == 0 ) { + } else if ( ( strcasecmp( control, "relax" ) == 0 ) || + ( strcasecmp( control, "manageDIT" ) == 0 ) ) + { if( manageDIT ) { fprintf( stderr, - "manageDIT control previously specified\n"); + "relax control previously specified\n"); exit( EXIT_FAILURE ); } if( cvalue != NULL ) { fprintf( stderr, - "manageDIT: no control value expected\n" ); + "relax: no control value expected\n" ); usage(); } @@ -1079,8 +1081,7 @@ tool_bind( LDAP *ld ) { /* simple bind */ rc = ldap_sasl_bind( ld, binddn, LDAP_SASL_SIMPLE, &passwd, - sctrlsp, - NULL, &msgid ); + sctrlsp, NULL, &msgid ); if ( msgid == -1 ) { tool_perror( "ldap_sasl_bind(SIMPLE)", rc, NULL, NULL, NULL, NULL );