From 092e3ed45a7d99d260f888f6c1eeaaf914f37e63 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 (This used to be commit ab62c8d93acb432678e301e57aeb86887913ebe6) --- source3/utils/net_sam.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/utils') 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 } }; -- cgit