summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-28 01:02:40 +0200
committerVolker Lendecke <vl@samba.org>2009-05-28 10:52:04 +0200
commit3194ad2838bedee3eff60c767552d8a801b5eb70 (patch)
tree1faa5425f5ff86d935ed5de803fb324ed53fd13a /source3/libads
parent7a5475f098c6a20f867adc081ca455e6c393755b (diff)
downloadsamba-3194ad2838bedee3eff60c767552d8a801b5eb70.tar.gz
samba-3194ad2838bedee3eff60c767552d8a801b5eb70.tar.bz2
samba-3194ad2838bedee3eff60c767552d8a801b5eb70.zip
Add smbldap_pull_sid
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 588c0a131c..3e5764a598 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);
}
/**