[Samba] smbpasswd problem on Solaris-10
Ole Benner
olb at netic.dk
Thu Jul 12 07:01:56 GMT 2007
I get this:
$ smbpasswd -D 10 olb
Netbios name list:-
my_netbios_names[0]="FILES"
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend NDS_ldapsam
Successfully added passdb backend 'NDS_ldapsam'
Attempting to register passdb backend NDS_ldapsam_compat
Successfully added passdb backend 'NDS_ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to find an passdb backend to match smbpasswd (smbpasswd)
Found pdb backend smbpasswd
pdb backend smbpasswd has a valid init
New SMB password:
Retype new SMB password:
getsampwnam (smbpasswd): search by name: olb
startsmbfilepwent_internal: opening file /data/samba/private/smbpasswd
getsmbfilepwent: returning passwd entry for user olb, uid 10000
endsmbfilepwent_internal: closed password file.
getsampwnam (smbpasswd): found by name: olb
Finding user olb
Trying _Get_Pwnam(), username as lowercase is olb
Get_Pwnam_internals did find user [olb]!
pdb_set_username: setting username olb, was
pdb_set_full_name: setting full name , was
pdb_set_domain: setting domain FILES, was
Home server: files
pdb_set_profile_path: setting profile path \\files\olb\profile, was
Home server: files
pdb_set_homedir: setting home dir \\files\olb, was
pdb_set_dir_drive: setting dir drive , was NULL
pdb_set_logon_script: setting logon script , was
pdb_set_user_sid: setting user sid
S-1-5-21-4108215807-3801520835-147286624-21000
pdb_set_user_sid_from_rid:
setting user sid S-1-5-21-4108215807-3801520835-147286624-21000
from rid 21000
grant_privilege: S-1-1-0
original privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-548
original privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-549
original privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-550
original privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-551
original privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
new privilege mask:
SE_PRIV 0x0 0x0 0x0 0x0
grant_privilege: S-1-5-32-544
original privilege mask:
SE_PRIV 0xff0 0x0 0x0 0x0
new privilege mask:
SE_PRIV 0xff0 0x0 0x0 0x0
account_policy_get: name: maximum password age, val: -1
account_policy_get: name: password history, val: 0
pdb_set_username: setting username olb, was
pdb_set_domain: setting domain FILES, was
pdb_set_nt_username: setting nt username , was
pdb_set_full_name: setting full name , was
Home server: files
pdb_set_homedir: setting home dir \\files\olb, was
pdb_set_dir_drive: setting dir drive , was NULL
pdb_set_logon_script: setting logon script , was
Home server: files
pdb_set_profile_path: setting profile path \\files\olb\profile, was
pdb_set_workstations: setting workstations , was
account_policy_get: name: password history, val: 0
pdb_set_user_sid: setting user sid
S-1-5-21-4108215807-3801520835-147286624-21000
pdb_set_user_sid_from_rid:
setting user sid S-1-5-21-4108215807-3801520835-147286624-21000
from rid 21000
account_policy_get: name: password history, val: 0
mod_smbfilepwd_entry: opening file /data/samba/private/smbpasswd
mod_smbfilepwd_entry: entry exists for user olb
I have now tried to compile samba-3.0.21b with the exactly same
configuration as samba-3.0.25b version (same compiler etc.) and this
version works with more than 8 chars passwords.
Regards
Ole Benner
Netic A/S
Roberto Lizana wrote:
> What can you see in console if you type this 'smbpasswd -D 10 anyUser' ???
>
>
> Ole Benner escribió:
>> I have compiled both samba-3.0.25a and samba-3.0.25b and with both I
>> have problems setting user password longer than 8 chars with smbpasswd.
>> I get no errors, but if I try to set a password with more than 8 chars
>> the password will only be generated using the first 8 chars.
>>
>> This is on Solaris-10 update 3 on amd64 and I have compiled samba using
>> Sun Studio 11 compiler suite and no other options to configure than
>> --prefix=/some/path.
>>
>> Solaris-10 comes with samba 3.0.21b preinstalled and if I use smbpasswd
>> from that installation there is no problems and the smaba-3.0.25(a/b)
>> version works alright with >8 chars passwd once it is set.
>>
>> This looks like some 32/64 bit bug or similar.
>>
>>
>
More information about the samba
mailing list