From 7a376391347f6e6358d03df2a4f7614b8b7a0572 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 3 Aug 2003 19:52:05 +0000 Subject: [PATCH] show domains as list box in profile editor, minor changes --- lam/config/profiles/users/default.pru | 4 ++-- lam/lib/ldap.inc | 2 +- lam/templates/profedit/profilehost.php | 17 ++++++++++++++++- lam/templates/profedit/profileuser.php | 17 ++++++++++++++++- 4 files changed, 35 insertions(+), 5 deletions(-) diff --git a/lam/config/profiles/users/default.pru b/lam/config/profiles/users/default.pru index 834c9b4f..898ee817 100644 --- a/lam/config/profiles/users/default.pru +++ b/lam/config/profiles/users/default.pru @@ -4,8 +4,8 @@ unix_password_no: 0 unix_pwdwarn: 10 unix_pwdallowlogin: 10 unix_pwdminage: 1 -unix_pwdmaxage: 180 -unix_pwdexpire: 1262300400 +unix_pwdmaxage: 365 +unix_pwdexpire: 1893452400 unix_deactivated: 0 smb_password_no: 0 smb_useunixpwd: 1 diff --git a/lam/lib/ldap.inc b/lam/lib/ldap.inc index 534dbbc7..916f8592 100644 --- a/lam/lib/ldap.inc +++ b/lam/lib/ldap.inc @@ -104,7 +104,7 @@ class Ldap{ // closes connection to server function close() { - if (isset($this->server)) ldap_close($this->server); + @ldap_close($this->server); } // searches LDAP for a specific user name diff --git a/lam/templates/profedit/profilehost.php b/lam/templates/profedit/profilehost.php index 486731f6..eb9cdcae 100644 --- a/lam/templates/profedit/profilehost.php +++ b/lam/templates/profedit/profilehost.php @@ -80,7 +80,22 @@ echo ("   \n"); // domain echo ("\n"); echo ("" . _("Domain") . ": \n"); -echo ("smb_domain . "\" name=\"smb_domain\">\n"); +if ($_SESSION['config']->get_samba3() == "yes") { + echo "\n"; +} +else { + echo ("smb_domain . "\" name=\"smb_domain\">\n"); +} echo ("" . _("Help") . "\n"); echo ("\n"); diff --git a/lam/templates/profedit/profileuser.php b/lam/templates/profedit/profileuser.php index 79f47eff..7cfd97fb 100644 --- a/lam/templates/profedit/profileuser.php +++ b/lam/templates/profedit/profileuser.php @@ -317,7 +317,22 @@ echo ("   \n"); // domain echo ("\n"); echo ("" . _("Domain") . ": \n"); -echo ("smb_domain . "\" name=\"smb_domain\">\n"); +if ($_SESSION['config']->get_samba3() == "yes") { + echo "\n"; +} +else { + echo ("smb_domain . "\" name=\"smb_domain\">\n"); +} echo ("" . _("Help") . "\n"); echo ("\n");