]> git.sur5r.net Git - openldap/commitdiff
More fixes and comments
authorKurt Zeilenga <kurt@openldap.org>
Tue, 14 Mar 2000 04:08:12 +0000 (04:08 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 14 Mar 2000 04:08:12 +0000 (04:08 +0000)
libraries/libldap/sasl.c

index ecfe39297749652575c774e046aa7e61df71f941..f4a1f786ed2534632e4adf2b8985ac4d6c9eb65c 100644 (file)
 
 
 /*
- * ldap_sasl_bind - bind to the ldap server (and X.500).  The dn, mechanism, and
- * credentials of the entry to which to bind are supplied.  The message id
- * of the request initiated is provided upon successful (LDAP_SUCCESS) return.
+ * ldap_sasl_bind - bind to the ldap server (and X.500).
+ * The dn (usually NULL), mechanism, and credentials are provided.
+ * The message id of the request initiated is provided upon successful
+ * (LDAP_SUCCESS) return.
  *
  * Example:
- *     ldap_sasl_bind( ld, "cn=manager, o=university of michigan, c=us",
- *         "mechanism", "secret", NULL, NULL, &msgid )
+ *     ldap_sasl_bind( ld, NULL, "mechanism",
+ *             cred, NULL, NULL, &msgid )
  */
 
 int
@@ -829,16 +830,12 @@ ldap_negotiated_sasl_bind_s(
        sasl_callback_t callbacks[4];
        int rc;
 
-       /*
-        * Cyrus uses screwy terms.  The authname is the
-        * SASL "username" or authentication identity.
-        * The user is the authorization identity.
-        */
-
+       /* SASL Authentication Identity */
        callbacks[n=0].id = SASL_CB_AUTHNAME;
        callbacks[n].proc = ldap_pvt_sasl_getsimple;
        callbacks[n].context = (void *)authenticationId;
 
+       /* SASL Authorization Identity (userid) */
        if( authorizationId != NULL ) {
                callbacks[++n].id = SASL_CB_USER;
                callbacks[n].proc = ldap_pvt_sasl_getsimple;