Lines Matching defs:bindDN
80 * simply hit the return key, the default bindDN "cn=Directory Manager"
86 char bindDN[BUFSIZ];
90 /* set the initial value for bindDN buffer */
91 (void) memset(bindDN, 0, BUFSIZ);
101 if (fgets(bindDN, sizeof (bindDN), stdin) == NULL) {
102 (void) strlcpy(bindDN, LDAP_BINDDN_DEFAULT, BUFSIZ);
105 blen = strlen(bindDN);
108 if ((blen > 0) && (bindDN[blen - 1] == '\n')) {
109 bindDN[blen - 1] = '\0';
116 if (isspace(bindDN[pos]))
117 bindDN[pos] = '\0';
123 /* Use the default bindDN, if the buffer contains no characters */
124 if (strlen(bindDN) == 0)
125 (void) strlcpy(bindDN, LDAP_BINDDN_DEFAULT, BUFSIZ);
127 if ((*ret_bindDN = (char *)malloc(strlen(bindDN)+1)) == NULL) {
128 (void) memset(bindDN, 0, BUFSIZ);
132 (void) strlcpy(*ret_bindDN, bindDN, strlen(bindDN)+1);
135 (void) memset(bindDN, 0, BUFSIZ);
565 * for a host (update4host > 0), the two parameters "bindDN" and
576 const char *bindDN,
597 * if this is an update for host, use the bindDN from the
601 credp->cred.unix_cred.userID = strdup(bindDN);
745 char *bindDN = NULL;
818 status = get_ldap_bindDN(&bindDN);
821 FREE_CREDINFO(bindDN);
834 FREE_CREDINFO(bindDN);
848 FREE_CREDINFO(bindDN);
858 FREE_CREDINFO(bindDN);
872 FREE_CREDINFO(bindDN);
895 FREE_CREDINFO(bindDN);
914 FREE_CREDINFO(bindDN);
933 FREE_CREDINFO(bindDN);
947 bindDN, bindPasswd);
958 FREE_CREDINFO(bindDN);
971 bindDN, bindPasswd);
977 FREE_CREDINFO(bindDN);