svn commit: samba r13846 - in branches/SAMBA_3_0/source/utils: .

idra at samba.org idra at samba.org
Sun Mar 5 18:25:47 GMT 2006


Author: idra
Date: 2006-03-05 18:25:46 +0000 (Sun, 05 Mar 2006)
New Revision: 13846

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13846

Log:

Take care of system that do not have LDAP libraries


Modified:
   branches/SAMBA_3_0/source/utils/net_sam.c


Changeset:
Modified: branches/SAMBA_3_0/source/utils/net_sam.c
===================================================================
--- branches/SAMBA_3_0/source/utils/net_sam.c	2006-03-05 18:24:34 UTC (rev 13845)
+++ branches/SAMBA_3_0/source/utils/net_sam.c	2006-03-05 18:25:46 UTC (rev 13846)
@@ -747,6 +747,8 @@
 	return 0;
 }
 
+#ifdef HAVE_LDAP
+
 /*
  * Init an LDAP tree with default users and Groups
  * if ldapsam:editposix is enabled
@@ -1130,6 +1132,7 @@
 	talloc_free(tc);
 	return -1;
 }
+#endif
 
 /***********************************************************
  migrated functionality from smbgroupedit
@@ -1153,8 +1156,10 @@
 		  "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 }
 	};
 



More information about the samba-cvs mailing list