AW: [Samba] smbtools, existing users, etc...

SEFEROVIC Edvin edvin.seferovic at kolp.at
Tue Nov 18 14:57:35 GMT 2003


Hello Jerome,

thanx for your help. Is the 0.8.1 version of smbldap tools already patched
or do I have to patch it myself. If so - please write me a few lines how to
do it, and which files to patch. 

I haven’t been working with smbldap-tools, but I want to try them out. Do
they work on SuSE Linux?

Can I call your script everytime my user changes his password though my
php-backend? Are the passwords going to be changed then, although the user
exists in posixAccount and samba.schema?? or easier - what happens when I
use this script twice for a user that already exists? Is it going to change
his password or am I going to get an error?

TIA

Edvin SEFEROVIC

-----Ursprüngliche Nachricht-----
Von: samba-bounces+edvin.seferovic=kolp.at at lists.samba.org
[mailto:samba-bounces+edvin.seferovic=kolp.at at lists.samba.org] Im Auftrag
von Jérôme Tournier
Gesendet: Dienstag, 18. November 2003 13:44
An: samba at lists.samba.org
Betreff: Re: [Samba] smbtools, existing users, etc...

> Hello.
Hi !

> Is it possible to add samba part of user account to the already existing
user account
> in LDAP?

My response is only available if you use the smbldap-tools.
Yes you can. If you applied the patch i post this morning to the latest
scripts (look at
cvs.idealx.org), you can use the following command to add the
sambaSAMAccount
objectclass to the user 'user'.
$ smbldap-usermod.pl -a user
The sambaSID attribute will be calculated as 2*uidNumber+1000.
You can also add more informations:
  -a    add sambaSAMAccount objectclass
  -e    expire date ("YYYY-MM-DD HH:MM:SS")
  -A    can change password ? 0 if no, 1 if yes
  -B    must change password ? 0 if no, 1 if yes
  -C    sambaHomePath (SMB home share, like '\\PDC-SRV\homes')
  -D    sambaHomeDrive (letter associated with home share, like 'H:')
  -E    sambaLogonScript (DOS script to execute on login)
  -F    sambaProfilePath (profile directory, like '\\PDC-SRV\profiles\foo')
  -H    sambaAcctFlags (samba account control bits like '[NDHTUMWSLKI]')
  -I    disable an user. Can't be used with -H or -J
  -J    enable an user. Can't be used with -H or -I
For example:
$ smbldap-usermod.pl -a -E script.cmd user


> What if my user changes his password ( by using a web php-backend ), is
samba password
> automatically changed, or do I have to change it manually?
No it is not. Can can calculate the lmPassword and ntPassword, and patch
your
php-backend to update le attributes. Or can can use smbldap-passwd.pl that
update both
unix password and win32 passwords.
-- 
Jérôme


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list