diff options
author | Gerald Carter <jerry@samba.org> | 2002-10-01 18:26:00 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-10-01 18:26:00 +0000 |
commit | 3de09e5cf1f667e410ee8b9516a956860ce7290f (patch) | |
tree | 23ef9ca994deaf73928b6f015d8bffdbd4c80318 /source/libads/ads_status.c | |
parent | c0ca286e36d49deba6c73690114b0d867cbfd63e (diff) | |
download | samba-3de09e5cf1f667e410ee8b9516a956860ce7290f.tar.gz samba-3de09e5cf1f667e410ee8b9516a956860ce7290f.tar.xz samba-3de09e5cf1f667e410ee8b9516a956860ce7290f.zip |
syncing up with HEAD. Seems to be a lot of differences creeping in
(i ignored the new SAMBA stuff, but the rest of this looks like it should
have been merged already).
Diffstat (limited to 'source/libads/ads_status.c')
-rw-r--r-- | source/libads/ads_status.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/libads/ads_status.c b/source/libads/ads_status.c index d85f9c9b58a..80fdb99eac0 100644 --- a/source/libads/ads_status.c +++ b/source/libads/ads_status.c @@ -72,6 +72,12 @@ NTSTATUS ads_ntstatus(ADS_STATUS status) if (status.error_type == ADS_ERROR_NT){ return status.err.nt_status; } +#ifdef HAVE_LDAP + if ((status.error_type == ADS_ERROR_LDAP) + && (status.err.rc == LDAP_NO_MEMORY)) { + return NT_STATUS_NO_MEMORY; + } +#endif if (ADS_ERR_OK(status)) return NT_STATUS_OK; return NT_STATUS_UNSUCCESSFUL; } |