Lines Matching defs:dn
38 BerElement * ldap_build_simple_bind_req(LDAP *ld, char *dn, char *passwd, LDAPControl **serverctrls)
54 if ( dn == NULL )
55 dn = "";
64 if ( ber_printf( ber, "{it{ists}", ++ld->ld_msgid, LDAP_REQ_BIND, ld->ld_version, dn, LDAP_AUTH_SIMPLE, passwd ) == -1 ) {
97 * ldap_simple_bind - bind to the ldap server (and X.500). The dn and
107 ldap_simple_bind( LDAP *ld, char *dn, char *passwd )
118 if ( dn == NULL )
119 dn = "";
124 if ( (ber = ldap_build_simple_bind_req( ld, dn, passwd, NULL )) == NULLBER ) {
138 rv = send_initial_request( ld, LDAP_REQ_BIND, dn, ber );
147 * authentication. The dn and password of the entry to which to bind are
157 ldap_simple_bind_s( LDAP *ld, char *dn, char *passwd )
164 if ( (msgid = ldap_simple_bind( ld, dn, passwd )) == -1 )