diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-27 17:24:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:54 -0500 |
commit | 4bbb995e8dab284b4deaa2e2ee38eb329305d1c2 (patch) | |
tree | b360dbcf98c92e7b73d4c2bc592efc5fd34850bc /source3/libads | |
parent | 5d4a189d4e1ddc7ba19c585811f2fb45b9534cc7 (diff) | |
download | samba-4bbb995e8dab284b4deaa2e2ee38eb329305d1c2.tar.gz samba-4bbb995e8dab284b4deaa2e2ee38eb329305d1c2.tar.bz2 samba-4bbb995e8dab284b4deaa2e2ee38eb329305d1c2.zip |
r17854: Steal the LDAP in NTSTATUS trick from Samba4
Thanks to Michael Adam <ma@sernet.de>
Volker
(This used to be commit 91878f9b6fbe5187fb7d0464008ea0abe7f11a73)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/ads_status.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index 07c60c5ac0..111a52e072 100644 --- a/source3/libads/ads_status.c +++ b/source3/libads/ads_status.c @@ -76,10 +76,7 @@ NTSTATUS ads_ntstatus(ADS_STATUS status) return map_nt_error_from_unix(status.err.rc); #ifdef HAVE_LDAP case ENUM_ADS_ERROR_LDAP: - if (status.err.rc == LDAP_NO_MEMORY) { - return NT_STATUS_NO_MEMORY; - } - break; + return NT_STATUS_LDAP(status.err.rc); #endif #ifdef HAVE_KRB5 case ENUM_ADS_ERROR_KRB5: |