r17855: Fix the build on systems without LDAP
authorVolker Lendecke <vlendec@samba.org>
Sun, 27 Aug 2006 17:36:17 +0000 (17:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:54 +0000 (11:38 -0500)
(This used to be commit 2e9f5c520a843ad22088388d155a172a63c140d5)

source3/libsmb/nterr.c

index 507bb60da4c4010f5da390a3cbefe27f615e47e4..e874b80473cd92d7595ef2a66a18f9a6e5111c9b 100644 (file)
@@ -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));