summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2006-03-05 18:25:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:57 -0500
commit092e3ed45a7d99d260f888f6c1eeaaf914f37e63 (patch)
tree5d3b618c7f8579eb2a28ebc9120ca22dc31e0937
parentd54010e219ab9ae7b5777b4136d874d3481bf9a6 (diff)
downloadsamba-092e3ed45a7d99d260f888f6c1eeaaf914f37e63.tar.gz
samba-092e3ed45a7d99d260f888f6c1eeaaf914f37e63.tar.bz2
samba-092e3ed45a7d99d260f888f6c1eeaaf914f37e63.zip
r13846: Take care of system that do not have LDAP libraries
(This used to be commit ab62c8d93acb432678e301e57aeb86887913ebe6)
-rw-r--r--source3/utils/net_sam.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c
index 9c8d72b42f..78c31bb1d4 100644
--- a/source3/utils/net_sam.c
+++ b/source3/utils/net_sam.c
@@ -747,6 +747,8 @@ static int net_sam_show(int argc, const char **argv)
return 0;
}
+#ifdef HAVE_LDAP
+
/*
* Init an LDAP tree with default users and Groups
* if ldapsam:editposix is enabled
@@ -1130,6 +1132,7 @@ failed:
talloc_free(tc);
return -1;
}
+#endif
/***********************************************************
migrated functionality from smbgroupedit
@@ -1153,8 +1156,10 @@ int net_sam(int argc, const char **argv)
"Show details of a SAM entry" },
{ "set", net_sam_set,
"Set details of a SAM account" },
+#ifdef HAVE_LDAP
{ "provision", net_sam_provision,
"Provision a clean User Database" },
+#endif
{ NULL, NULL, NULL }
};