diff options
author | Simo Sorce <idra@samba.org> | 2006-03-05 18:25:46 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2006-03-05 18:25:46 +0000 |
commit | 56d305b469186b225fe04021a82c3e0ac85c6b20 (patch) | |
tree | 4eaa5df5457bfeca67496a24d68c301635eb1c2c /source/utils | |
parent | 7ffb2cf88766153603096ae73476c2a2e3eaf61d (diff) | |
download | samba-56d305b469186b225fe04021a82c3e0ac85c6b20.tar.gz samba-56d305b469186b225fe04021a82c3e0ac85c6b20.tar.xz samba-56d305b469186b225fe04021a82c3e0ac85c6b20.zip |
r13846: Take care of system that do not have LDAP libraries
Diffstat (limited to 'source/utils')
-rw-r--r-- | source/utils/net_sam.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 } }; |