git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8690b27
)
Quick hack to get around the inadequacy of pdb_smbpasswd. This should make the
author
Andrew Bartlett
<abartlet@samba.org>
Sat, 17 Aug 2002 07:21:01 +0000
(07:21 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Sat, 17 Aug 2002 07:21:01 +0000
(07:21 +0000)
build farm happy again, and allow the 'guest account' to be added to smbpasswd.
Andrew Bartlett
(This used to be commit
5e5cd2874527dd9a213c4bfcf98a425c39f3f2e2
)
source3/passdb/pdb_smbpasswd.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_smbpasswd.c
b/source3/passdb/pdb_smbpasswd.c
index a5af0a786e1dc93b708e0d61f608f46d8551874d..d40ea03511cd2aaef81e78fe0ef27c45e7b6b659 100644
(file)
--- 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;
}