mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
r17855: Fix the build on systems without LDAP
(This used to be commit 2e9f5c520a843ad22088388d155a172a63c140d5)
This commit is contained in:
parent
4bbb995e8d
commit
cb3e14d5a2
@ -650,9 +650,11 @@ const char *nt_errstr(NTSTATUS nt_code)
|
||||
static pstring msg;
|
||||
int idx = 0;
|
||||
|
||||
#ifdef HAVE_LDAP
|
||||
if (NT_STATUS_TYPE(nt_code) == NT_STATUS_TYPE_LDAP) {
|
||||
return ldap_err2string(NT_STATUS_LDAP_CODE(nt_code));
|
||||
}
|
||||
#endif
|
||||
|
||||
slprintf(msg, sizeof(msg), "NT code 0x%08x", NT_STATUS_V(nt_code));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user