Home
last modified time | relevance | path

Searched refs:binddn (Results 1 – 14 of 14) sorted by relevance

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dbind.c143 char *binddn; in nsldapi_get_binddn() local
145 binddn = NULL; /* default -- assume they are not bound */ in nsldapi_get_binddn()
150 if (( binddn = ld->ld_defconn->lconn_binddn ) == NULL ) { in nsldapi_get_binddn()
151 binddn = ""; in nsldapi_get_binddn()
156 return( binddn ); in nsldapi_get_binddn()
H A Dsbind.c186 char *binddn; in simple_bindifnot_s() local
201 if ( NULL != ( binddn = nsldapi_get_binddn( ld )) in simple_bindifnot_s()
202 && 0 == strcmp( dn, binddn )) { in simple_bindifnot_s()
H A Drequest.c465 char *binddn, *passwd; in nsldapi_new_connection() local
471 binddn = passwd = ""; in nsldapi_new_connection()
474 if (( lderr = (*ld->ld_rebind_fn)( ld, &binddn, &passwd, in nsldapi_new_connection()
496 if (( lderr = ldap_bind_s( ld, binddn, passwd, in nsldapi_new_connection()
514 (*ld->ld_rebind_fn)( ld, &binddn, &passwd, in nsldapi_new_connection()
H A Dmemcache.c591 char *tmp, *defhost, *binddn, *keystr, *tmpbase; in ldap_memcache_createkey() local
617 if ((binddn = nsldapi_get_binddn(ld)) == NULL) in ldap_memcache_createkey()
618 binddn = ""; in ldap_memcache_createkey()
623 NSLDAPI_SAFE_STRLEN(binddn); in ldap_memcache_createkey()
655 sprintf(keystr, "%s\n%s\n%s\n%s\n%s\n", binddn, tmpbase, in ldap_memcache_createkey()
/illumos-gate/usr/src/lib/pam_modules/ldap/
H A Dldap_utils.c93 char *binddn = NULL; in authenticate() local
109 ldaprc = __ns_ldap_uid2dn(usrname, &binddn, NULL, &errorp); in authenticate()
113 credp->cred.unix_cred.userID = strdup(binddn); in authenticate()
262 if (binddn) in authenticate()
263 free(binddn); in authenticate()
/illumos-gate/usr/src/cmd/print/lpset/
H A Dlpset.c110 *binddn = NULL, in main() local
146 binddn = optarg; in main()
209 if (binddn == NULL) { in main()
229 cred->binddn = binddn; in main()
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/
H A DDoPrinterNS.c228 const char *binddn = NULL; in Java_com_sun_admin_pm_server_DoPrinterNS_updateldap() local
247 binddn = (*env)->GetStringUTFChars(env, jbinddn, 0); in Java_com_sun_admin_pm_server_DoPrinterNS_updateldap()
266 ret = _updateldap(action, host, binddn, passwd, printername, in Java_com_sun_admin_pm_server_DoPrinterNS_updateldap()
H A DNS.c237 char *binddn; member
448 const char *binddn, in _updateldap() argument
474 cred->binddn = strdup((char *)binddn); in _updateldap()
H A DDoPrinterNS.java43 String host, String binddn, String passwd, in updateldap() argument
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connect.c2340 char *binddn, *passwd, errstr[MAXERROR], *errmsg; in doSimpleBind() local
2347 binddn = auth->cred.unix_cred.userID; in doSimpleBind()
2350 binddn == NULL || *binddn == '\0') { in doSimpleBind()
2363 msgId = ldap_simple_bind(ld, binddn, passwd); in doSimpleBind()
2438 char *binddn, *passwd, *digest_md5_name, in doSASLBind() local
2462 binddn = auth->cred.unix_cred.userID; in doSASLBind()
2465 binddn == NULL || *binddn == '\0') { in doSASLBind()
2495 if ((ldap_rc = ldap_sasl_cram_md5_bind_s(ld, binddn, in doSASLBind()
2510 digest_md5_name = malloc(strlen(binddn) + 5); in doSASLBind()
2517 (void) strcat(digest_md5_name, binddn); in doSASLBind()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dcommon.c214 static char *binddn = NULL; variable
474 binddn = strdup( optarg );
812 if (binddn != NULL && passwd == NULL) {
831 if (ldaptool_require_binddn && binddn == NULL && passwd == NULL) {
1207 if ( ldversion > LDAP_VERSION2 && binddn == NULL && passwd == NULL
1221 conv = ldaptool_local2UTF8( binddn );
1248 rc = ldap_sasl_interactive_bind_s( ld, binddn, sasl_mech, NULL, NULL,
1259 if ( ldversion > LDAP_VERSION2 && binddn == NULL && passwd == NULL
1931 *whop = binddn;
/illumos-gate/usr/src/lib/passwdutil/
H A Dldap_attr.c983 ldap_replaceattr(const char *dn, ns_ldap_attr_t **attrs, const char *binddn, in ldap_replaceattr() argument
1006 credp->cred.unix_cred.userID = strdup(binddn); in ldap_replaceattr()
1143 char *binddn; /* dn of user who is performing the change */ in ldap_putpwnam() local
1206 res = __ns_ldap_uid2dn(pw->pw_name, &binddn, NULL, &errorp); in ldap_putpwnam()
1211 res = ldap_replaceattr(dn, pattrs, binddn, oldpw, in ldap_putpwnam()
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dns.h129 char *binddn; member
H A Dnss_ldap.c420 ((cred->passwd == NULL) || (cred->binddn == NULL))) in _connectToLDAP()
472 cred->binddn, cred->passwd); in _connectToLDAP()
483 &(cred->binddn), &(cred->passwd), in _connectToLDAP()