Bug 6524 - Put smb-name in front of the local user when smbpasswd
Summary: Put smb-name in front of the local user when smbpasswd
Status: NEW
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: User & Group Accounts (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-30 21:44 UTC by Zhou Weikuan
Modified: 2009-07-07 02:16 UTC (History)
0 users

See Also:


Attachments
The diff file for smbpasswd (1.01 KB, patch)
2009-06-30 21:45 UTC, Zhou Weikuan
no flags Details
The updated diff for util/smbpasswd.c (1.10 KB, patch)
2009-07-07 02:16 UTC, Zhou Weikuan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zhou Weikuan 2009-06-30 21:44:31 UTC
Put smb-name in front of the local user when changed the password via smbpasswd, so that the local unix user will not be regarded as ad user and fail to smbpasswd.
Comment 1 Zhou Weikuan 2009-06-30 21:45:12 UTC
Created attachment 4380 [details]
The diff file for smbpasswd
Comment 2 Volker Lendecke 2009-07-01 07:57:26 UTC
Can you add a check if the user has already typed in the correctly qualified name?

Volker
Comment 3 Zhou Weikuan 2009-07-07 02:16:29 UTC
Created attachment 4398 [details]
The updated diff for util/smbpasswd.c

Hi, I add a check for whether the username contains '\', and then update the name accordingly. If this is not what you want, please tell me to update it.

Thanks,