Home
last modified time | relevance | path

Searched refs:rdns (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetdn.c152 char **rdns; in ldap_explode_dns() local
161 if ( (rdns = (char **)NSLDAPI_MALLOC( 8 * sizeof(char *) )) == NULL ) { in ldap_explode_dns()
172 if ( (rdns = (char **)NSLDAPI_REALLOC( rdns, maxcomps * in ldap_explode_dns()
178 rdns[ncomps++] = nsldapi_strdup( s ); in ldap_explode_dns()
180 rdns[ncomps] = NULL; in ldap_explode_dns()
183 return( rdns ); in ldap_explode_dns()
192 char *p, *q, *rdnstart, **rdns = NULL; in ldap_explode() local
244 ldap_charray_free( rdns ); in ldap_explode()
251 ldap_charray_free( rdns ); in ldap_explode()
256 if ( rdns == NULL ) { in ldap_explode()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dldap_utils.c106 char **rdns; in _get_domain_name() local
114 rdns = ldap_explode_dn(cdn, 0); in _get_domain_name()
115 if (rdns == NULL || *rdns == NULL) in _get_domain_name()
119 for (nrdns = 1; rdns[nrdns]; nrdns++) in _get_domain_name()
120 len += strlen(rdns[nrdns]) + 1; in _get_domain_name()
122 len = strlen(rdns[0]); in _get_domain_name()
125 ldap_value_free(rdns); in _get_domain_name()
131 (void) strcat(pdn, rdns[0]); in _get_domain_name()
133 for (nrdns = 1; rdns[nrdns]; nrdns++) { in _get_domain_name()
134 (void) strcat(pdn, rdns[nrdns]); in _get_domain_name()
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_pwd_policy.c60 char **rdns=NULL, *strval[2]={NULL}, *policy_dn; local
77 rdns = ldap_explode_dn(policy_dn, 1);
78 if (rdns == NULL) {
84 strval[0] = rdns[0];
111 if (rdns)
112 ldap_value_free(rdns);
H A Dldap_services.c54 char **rdns=NULL, *realmattr=NULL, *strval[3]={NULL}; local
90 rdns = ldap_explode_dn(service->servicedn, 1);
91 if (rdns == NULL) {
96 strval[0] = rdns[0];
164 if (rdns)
165 ldap_value_free (rdns);
H A Dldap_realm.c785 char *strval[2]={NULL}, *kerberoscontdn=NULL, **rdns=NULL; local
819 rdns = ldap_explode_dn(kerberoscontdn, 1);
820 if (rdns == NULL) {
826 strval[0] = rdns[0];
892 if (rdns)
893 ldap_value_free (rdns);
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_reads.c225 char **rdns, *new_rdn, *new_dn = NULL; in _cvtDN() local
231 if ((rdns = ldap_explode_dn(dn, 0)) == NULL) in _cvtDN()
234 for (nRdn = 0; rdns[nRdn] != NULL; nRdn++) in _cvtDN()
238 ldap_value_free(rdns); in _cvtDN()
245 if ((new_rdn = _cvtRDN(service, rdns[i])) != NULL) { in _cvtDN()
266 len += strlen(rdns[i]); in _cvtDN()
281 (void) strlcat(new_dn, rdns[i], len); in _cvtDN()
286 ldap_value_free(rdns); in _cvtDN()
4441 char *newdn, **rdns = NULL; in __ns_ldap_dn2domain() local
4460 rdns = ldap_explode_dn(dn1, 0); in __ns_ldap_dn2domain()
[all …]