From fea6c09b9d0c511cb2c93c98590db31524fdbc51 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 27 Jul 2003 14:33:10 +0000 Subject: [PATCH] fixed error if no next RIDs were given --- lam/templates/domain.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lam/templates/domain.php b/lam/templates/domain.php index 43ae9692..26315f35 100644 --- a/lam/templates/domain.php +++ b/lam/templates/domain.php @@ -246,9 +246,9 @@ elseif ($_POST['sub_save']) { $attr['objectclass'] = "sambaDomain"; $attr['sambaDomainName'] = $_POST['dom_name']; $attr['sambaSID'] = $_POST['dom_SID']; - $attr['sambaNextRid'] = $_POST['dom_nextRID']; - $attr['sambaNextGroupRid'] = $_POST['dom_nextGroupRID']; - $attr['sambaNextUserRid'] = $_POST['dom_nextUserRID']; + if ($_POST['dom_nextRID']) $attr['sambaNextRid'] = $_POST['dom_nextRID']; + if ($_POST['dom_nextGroupRID']) $attr['sambaNextGroupRid'] = $_POST['dom_nextGroupRID']; + if ($_POST['dom_nextUserRID']) $attr['sambaNextUserRid'] = $_POST['dom_nextUserRID']; $attr['sambaAlgorithmicRidBase'] = $_POST['dom_RIDbase']; // write to LDAP if (ldap_add($_SESSION['ldap']->server(), $DN, $attr)) {