summaryrefslogtreecommitdiffstats
path: root/source/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-23 11:03:08 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-23 11:03:08 +0000
commit007143e2435904d941a62934986ac54e343f4936 (patch)
treedde393a5e4ee86848d10bf642cfc7e2f0766821c /source/passdb
parent82ba1b4d16da587c5e21739b11c5d84a575534ad (diff)
downloadsamba-007143e2435904d941a62934986ac54e343f4936.tar.gz
samba-007143e2435904d941a62934986ac54e343f4936.tar.xz
samba-007143e2435904d941a62934986ac54e343f4936.zip
This define does not always seem to be present, so define it if need be.
Andrew Bartlett
Diffstat (limited to 'source/passdb')
-rw-r--r--source/passdb/pdb_ldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/passdb/pdb_ldap.c b/source/passdb/pdb_ldap.c
index 6112a65a76c..1302fd81ebb 100644
--- a/source/passdb/pdb_ldap.c
+++ b/source/passdb/pdb_ldap.c
@@ -51,6 +51,10 @@
#include <lber.h>
#include <ldap.h>
+#ifndef LDAP_OPT_SUCCESS
+#define LDAP_OPT_SUCCESS 0
+#endif
+
#ifndef SAM_ACCOUNT
#define SAM_ACCOUNT struct sam_passwd
#endif