Lines Matching defs:refs
32 char ** refs;
58 if ((refs = (char **)calloc(count + 1, sizeof(char *))) == NULL){
67 refs[count++] = strdup(ref);
71 return (refs);
74 char *ldap_referral2error_msg(char ** refs)
80 if (refs == NULL)
83 for (i = 0; refs[i] != NULL; i++){
84 len += strlen (refs[i]) + 1;
89 for (i = 0; refs[i] != NULL; i++) {
90 strcat(msg, refs[i]);
99 chase_referrals( LDAP *ld, LDAPRequest *lr, char **refs, int *count, int samerequest )
113 if ( refs == NULL ) {
139 for (refcnt = 0; refs[refcnt] != NULL; refcnt++)
145 for (i = 0; rc == 0 && refs[i] != NULL; i++) {
146 Debug(LDAP_DEBUG_TRACE, catgets(slapdcat, 1, -1, "Try to chase %s\n"), refs[i], 0,0);
149 if (ldap_url_parse(refs[i], &ludp) != 0){
150 Debug(LDAP_DEBUG_TRACE, catgets(slapdcat, 1, -1, "Bad URL for referral %s\n"), refs[i], 0,0);
152 addUnFollowedRef(ld, lr, refs[i]);
162 addUnFollowedRef(ld, lr, refs[i]);
193 Debug(LDAP_DEBUG_TRACE, catgets(slapdcat, 1, -1, "Request has been forwarded to %s\n"), refs[i], 0,0);
194 addFollowedRef(lr, refs[i]);
195 for (j = i+1; refs[j] != NULL; j++){
196 addToFollowRef(lr, refs[j]);
204 addUnFollowedRef(ld, lr, refs[i]);
213 if (refs[i] != NULL) {