summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-08-17 07:21:01 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-08-17 07:21:01 +0000
commite2cd994c9033f4c8ebc840efcbadd572528fb12d (patch)
treeb39f847898e2e2acfd2c2138e907fd55479cf5b7
parent8690b271a6a4feb112e0a6c03fe99ee25f86430b (diff)
downloadsamba-e2cd994c9033f4c8ebc840efcbadd572528fb12d.tar.gz
samba-e2cd994c9033f4c8ebc840efcbadd572528fb12d.tar.bz2
samba-e2cd994c9033f4c8ebc840efcbadd572528fb12d.zip
Quick hack to get around the inadequacy of pdb_smbpasswd. This should make the
build farm happy again, and allow the 'guest account' to be added to smbpasswd. Andrew Bartlett (This used to be commit 5e5cd2874527dd9a213c4bfcf98a425c39f3f2e2)
-rw-r--r--source3/passdb/pdb_smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c
index a5af0a786e..d40ea03511 100644
--- a/source3/passdb/pdb_smbpasswd.c
+++ b/source3/passdb/pdb_smbpasswd.c
@@ -1149,7 +1149,7 @@ static BOOL build_smb_pass (struct smb_passwd *smb_pw, const SAM_ACCOUNT *sampas
uid = pdb_get_uid(sampass);
/* If the user specified a RID, make sure its able to be both stored and retreived */
- if (rid && uid != fallback_pdb_user_rid_to_uid(rid)) {
+ if (rid && rid != DOMAIN_USER_RID_GUEST && uid != fallback_pdb_user_rid_to_uid(rid)) {
DEBUG(0,("build_sam_pass: Failing attempt to store user with non-uid based user RID. \n"));
return False;
}