From cbf862c940f9355b72ce2101d58e7a1b0ec903fa Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 9 Dec 2004 22:11:23 +0000 Subject: [PATCH] fixed host RID in upload code --- lam/lib/modules/sambaAccount.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules/sambaAccount.inc b/lam/lib/modules/sambaAccount.inc index e207dc6a..8b011a59 100644 --- a/lam/lib/modules/sambaAccount.inc +++ b/lam/lib/modules/sambaAccount.inc @@ -1091,8 +1091,8 @@ class sambaAccount extends baseModule { $triggered_messages[] = $errMsg; } } - // RID (RID uid*2 + RIDBase) - $partialAccounts[$i]['rid'] = $partialAccounts[$i]['uidNumber']*2 + $domains[$domIndex]->RIDbase; + // RID (RID uid*2 + 1000) + $partialAccounts[$i]['rid'] = $partialAccounts[$i]['uidNumber']*2 + 1000; // passwords ( = host name) $partialAccounts[$i]['lmPassword'] = lmPassword(substr($partialAccounts[$i]['uid'], 0, sizeof($partialAccounts[$i]['uid']) - 1)); $partialAccounts[$i]['ntPassword'] = ntPassword(substr($partialAccounts[$i]['uid'], 0, sizeof($partialAccounts[$i]['uid']) - 1));