From 56d305b469186b225fe04021a82c3e0ac85c6b20 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 5 Mar 2006 18:25:46 +0000 Subject: r13846: Take care of system that do not have LDAP libraries --- source/utils/net_sam.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/utils') diff --git a/source/utils/net_sam.c b/source/utils/net_sam.c index 9c8d72b42f0..78c31bb1d4e 100644 --- a/source/utils/net_sam.c +++ b/source/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 } }; -- cgit