/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 2003 IBM Corporation.
* All rights reserved.
break;
case SLAPAUTH:
- options = "\t[-U authcID] [-X authzID] ID [...]\n";
+ options = "\t[-U authcID] [-X authzID] [-R realm] [-M mech] ID [...]\n";
break;
case SLAPACL:
break;
case SLAPAUTH:
- options = "d:f:U:vX:";
+ options = "d:f:M:R:U:vX:";
mode |= SLAP_TOOL_READMAIN | SLAP_TOOL_READONLY;
break;
retrieve_ctxcsn = 1;
break;
+ case 'M':
+ ber_str2bv( optarg, 0, 0, &mech );
+ break;
+
case 'n': /* which config file db to index */
dbnum = atoi( optarg ) - 1;
break;
replica_demotion = 1;
break;
+ case 'R':
+ realm = optarg;
+ break;
+
case 's': /* dump subtree */
subtree = strdup( optarg );
break;