svn commit: samba r8929 - in trunk/source: include lib

gd at samba.org gd at samba.org
Tue Aug 2 18:14:01 GMT 2005


Author: gd
Date: 2005-08-02 18:14:01 +0000 (Tue, 02 Aug 2005)
New Revision: 8929

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

Log:
fix build-issue when building without LDAP (found by Jeremy)

Guenther

Modified:
   trunk/source/include/smbldap.h
   trunk/source/lib/account_pol.c


Changeset:
Modified: trunk/source/include/smbldap.h
===================================================================
--- trunk/source/include/smbldap.h	2005-08-02 17:52:44 UTC (rev 8928)
+++ trunk/source/include/smbldap.h	2005-08-02 18:14:01 UTC (rev 8929)
@@ -52,20 +52,6 @@
 #define LDAP_ATTRIBUTE_GIDNUMBER	"gidNumber"
 #define LDAP_ATTRIBUTE_SID_LIST		"sambaSIDList"
 
-#define LDAP_ATTRIBUTE_AP_PWD_MIN_LEN		"sambaMinPwdLength"
-#define LDAP_ATTRIBUTE_AP_PWD_HIST_LEN		"sambaPwdHistoryLength"
-#define LDAP_ATTRIBUTE_AP_PWD_MIN_AGE		"sambaMinPwdAge"
-#define LDAP_ATTRIBUTE_AP_PWD_MAX_AGE		"sambaMaxPwdAge"
-#define LDAP_ATTRIBUTE_AP_FORCE_LOGOFF		"sambaForceLogoff"
-#define LDAP_ATTRIBUTE_AP_LOCKOUT_TRESHOLD	"sambaLockoutThreshold"
-#define LDAP_ATTRIBUTE_AP_LOCKOUT_DURATION	"sambaLockoutDuration"
-#define LDAP_ATTRIBUTE_AP_LOCKOUT_OBSERVATION	"sambaLockoutObservationWindow"
-#define LDAP_ATTRIBUTE_AP_LOGON_TO_CHG_PASS	"sambaLogonToChgPwd"
-#define LDAP_ATTRIBUTE_AP_REFUSE_MACHINE_PWD_CHANGE "sambaRefuseMachinePwdChange"
-
-
-
-
 /* attribute map table indexes */
 
 #define LDAP_ATTR_LIST_END		0

Modified: trunk/source/lib/account_pol.c
===================================================================
--- trunk/source/lib/account_pol.c	2005-08-02 17:52:44 UTC (rev 8928)
+++ trunk/source/lib/account_pol.c	2005-08-02 18:14:01 UTC (rev 8929)
@@ -43,43 +43,43 @@
 static const struct ap_table account_policy_names[] = {
 	{AP_MIN_PASSWORD_LEN, "min password length", MINPASSWDLENGTH, 
 		"Minimal password length (default: 5)", 
-		LDAP_ATTRIBUTE_AP_PWD_MIN_LEN },
+		"sambaMinPwdLength" },
 
 	{AP_PASSWORD_HISTORY, "password history", 0,
 		"Length of Password History Entries (default: 0 => off)", 
-		LDAP_ATTRIBUTE_AP_PWD_HIST_LEN },
+		"sambaPwdHistoryLength" },
 		
 	{AP_USER_MUST_LOGON_TO_CHG_PASS, "user must logon to change password", 0,
 		"Force Users to logon for password change (default: 0 => off, 2 => on)",
-		LDAP_ATTRIBUTE_AP_LOGON_TO_CHG_PASS },
+		"sambaLogonToChgPwd" },
 	
 	{AP_MAX_PASSWORD_AGE, "maximum password age", (uint32) -1,
 		"Maximum password age, in seconds (default: -1 => never expire passwords)", 
-		LDAP_ATTRIBUTE_AP_PWD_MAX_AGE },
+		"sambaMaxPwdAge" },
 		
 	{AP_MIN_PASSWORD_AGE,"minimum password age", 0,
 		"Minimal password age, in seconds (default: 0 => allow immediate password change)", 
-		LDAP_ATTRIBUTE_AP_PWD_MIN_AGE },
+		"sambaMinPwdAge" },
 		
 	{AP_LOCK_ACCOUNT_DURATION, "lockout duration", 30,
 		"Lockout duration in minutes (default: 30, -1 => forever)",
-		LDAP_ATTRIBUTE_AP_LOCKOUT_DURATION },
+		"sambaLockoutDuration" },
 		
 	{AP_RESET_COUNT_TIME, "reset count minutes", 30,
 		"Reset time after lockout in minutes (default: 30)", 
-		LDAP_ATTRIBUTE_AP_LOCKOUT_OBSERVATION },
+		"sambaLockoutObservationWindow" },
 		
 	{AP_BAD_ATTEMPT_LOCKOUT, "bad lockout attempt", 0,
 		"Lockout users after bad logon attempts (default: 0 => off)", 
-		LDAP_ATTRIBUTE_AP_LOCKOUT_TRESHOLD },
+		"sambaLockoutThreshold" },
 		
 	{AP_TIME_TO_LOGOUT, "disconnect time", -1,
 		"Disconnect Users outside logon hours (default: -1 => off, 0 => on)", 
-		LDAP_ATTRIBUTE_AP_FORCE_LOGOFF }, 
+		"sambaForceLogoff" }, 
 		
 	{AP_REFUSE_MACHINE_PW_CHANGE, "refuse machine password change", 0,
 		"Allow Machine Password changes (default: 0 => off)",
-		LDAP_ATTRIBUTE_AP_REFUSE_MACHINE_PWD_CHANGE },
+		"sambaRefuseMachinePwdChange" },
 		
 	{0, NULL, 0, "", NULL}
 };



More information about the samba-cvs mailing list