X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=blobdiff_plain;f=source3%2Flibads%2Fldap.c;h=3e5764a598b369082f367ba4c0a9a8f2aed745cb;hp=588c0a131c37122490251a554167e173f29b0ca7;hb=3194ad2838bedee3eff60c767552d8a801b5eb70;hpb=7a5475f098c6a20f867adc081ca455e6c393755b;ds=inline diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 588c0a131c3..3e5764a598b 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2619,19 +2619,7 @@ int ads_count_replies(ADS_STRUCT *ads, void *res) bool ads_pull_sid(ADS_STRUCT *ads, LDAPMessage *msg, const char *field, DOM_SID *sid) { - struct berval **values; - bool ret = False; - - values = ldap_get_values_len(ads->ldap.ld, msg, field); - - if (!values) - return False; - - if (values[0]) - ret = sid_parse(values[0]->bv_val, values[0]->bv_len, sid); - - ldap_value_free_len(values); - return ret; + return smbldap_pull_sid(ads->ldap.ld, msg, field, sid); } /**