diff options
author | Günther Deschner <gd@samba.org> | 2008-06-24 13:02:03 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-06-24 23:37:49 +0200 |
commit | 7b1f015675b99c3ee8620bd0113b817a910a0727 (patch) | |
tree | 64d79cef2ada279c0ec4dae97413f151d55a6b64 /source3/libads | |
parent | 6b4b76c40e965c7544097aa652eb6455af2ae8c1 (diff) | |
download | samba-7b1f015675b99c3ee8620bd0113b817a910a0727.tar.gz samba-7b1f015675b99c3ee8620bd0113b817a910a0727.tar.bz2 samba-7b1f015675b99c3ee8620bd0113b817a910a0727.zip |
libads: add ads_connect_user_creds() that won't overwrite given user creds.
Guenther
(This used to be commit 026018c9f1ed0680b3ca5b26dd6b8dc466e27e0d)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ldap.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 7b9e51068b..7c64082ab4 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -527,6 +527,18 @@ got_connection: } /** + * Connect to the LDAP server using given credentials + * @param ads Pointer to an existing ADS_STRUCT + * @return status of connection + **/ +ADS_STATUS ads_connect_user_creds(ADS_STRUCT *ads) +{ + ads->auth.flags |= ADS_AUTH_USER_CREDS; + + return ads_connect(ads); +} + +/** * Disconnect the LDAP server * @param ads Pointer to an existing ADS_STRUCT **/ |