-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, ~ I am using smbldap tools to add users, but when I use smbldap-useradd -a username it only creates posixAccount and sambaSamAccount - -- Taymour A El Erian System Division Manager CNA, MCSE, CCNA, LPIC T.E. Data E-mail: taymour.elerian@tedata.net Web: www.tedata.net Tel: +(202)-4166600 Ext: 1101 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/uKJiX1dv4NHexooRAunjAJwPlP5347Biqk2vaFkd2bwobh8PMQCfeDDY k2fxr2Bx2vpLHh14L6K1UQA=CZSI -----END PGP SIGNATURE-----
Taymour A. El Erian wrote:> Hi, > > ~ I am using smbldap tools to add users, but when I use > smbldap-useradd -a username it only creates posixAccount and sambaSamAccountWhat did you expect to be created? Ralph -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20031117/a1d88f22/attachment.bin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ralph Angenendt wrote: |Taymour A. El Erian wrote: | |>Hi, |> |>~ I am using smbldap tools to add users, but when I use |>smbldap-useradd -a username it only creates posixAccount and sambaSamAccount | | |What did you expect to be created? | |Ralph Sorry for the typo, I meant and not sambaSamAccount - -- Taymour A El Erian System Division Manager CNA, MCSE, CCNA, LPIC T.E. Data E-mail: taymour.elerian@tedata.net Web: www.tedata.net Tel: +(202)-4166600 Ext: 1101 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/uKTJX1dv4NHexooRAj+iAJ4kyS2lS7Zi+3hnD8D4tVSY2fNO/ACfXsfV Zt69AWC2K5D6+LwtFQJp4kg=hIoI -----END PGP SIGNATURE-----
> |>~ I am using smbldap tools to add users, but when I use > |>smbldap-useradd -a username it only creates posixAccount and > sambaSamAccount > |What did you expect to be created? > Sorry for the typo, I meant and not sambaSamAccountThat is all "add user script" needs to do, in a user create operation Samba will add sambaSamAccount attributes - it needs the posixAccount to preexist (the purpose of add user script).
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Adam Williams wrote: |>|>~ I am using smbldap tools to add users, but when I use |>|>smbldap-useradd -a username it only creates posixAccount and |>sambaSamAccount |>|What did you expect to be created? |>Sorry for the typo, I meant and not sambaSamAccount | | |That is all "add user script" needs to do, in a user create operation |Samba will add sambaSamAccount attributes - it needs the posixAccount to |preexist (the purpose of add user script). | this means I can not use this script as user add script in smb.conf. - -- Taymour A El Erian System Division Manager CNA, MCSE, CCNA, LPIC T.E. Data E-mail: taymour.elerian@tedata.net Web: www.tedata.net Tel: +(202)-4166600 Ext: 1101 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/uKdpX1dv4NHexooRApbyAJ0W5DQa0M+oB60jpllpJbZo+TWDNQCgnp4M bgY6B75MynNnej9vJXWzGn0=z79o -----END PGP SIGNATURE-----
> this means I can not use this script as user add script in smb.conf.Yes you can, but without the -a option: add user script = /usr/local/sbin/smbldap-useradd.pl -m "%u" -- J?r?me
|>|Yes you can, but without the -a option:> |>|add user script = /usr/local/sbin/smbldap-useradd.pl -m "%u" > |>The only difference here is that it creates the home directory but still > |>posixAccount. > |>This makes creating a new user a 2 step: > |>1-smbldap-useradd.pl > |>2- smbpasswd > |Are you using it in smb.conf add user script or not? If so what does > |smbpasswd have to do with anything? > |1. Create the posixAccount object (the purpose of smbldap-useradd). > |2. *SAMBA* will create the sambaSamAccount attributes on the relevant > |posixAccount. > How will samba do that, or more accurately when ?It will do that immediatly after invoking add user script, assuming add user script returned a success return value.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 J?r?me Tournier wrote: |>Well, this script does not add sambaSAMAccount in my case and I do not |>know why | |Which version of smbldap-tools are you using ? | it is 0.8.1 - -- Taymour A El Erian System Division Manager CNA, MCSE, CCNA, LPIC T.E. Data E-mail: taymour.elerian@tedata.net Web: www.tedata.net Tel: +(202)-4166600 Ext: 1101 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/uMK8X1dv4NHexooRAl3fAJ9FcdzvyxlBB5AmGY2I+fdUQnzXeQCgqegM 8MBG5p3onniq7ZGAQTmKI0U=LliS -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 J?r?me Tournier wrote: |>No attachment received | | |Oups, sorry ;-) Still none, seems the list manager removes the attachments - -- Taymour A El Erian System Division Manager CNA, MCSE, CCNA, LPIC T.E. Data E-mail: taymour.elerian@tedata.net Web: www.tedata.net Tel: +(202)-4166600 Ext: 1101 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/ueifX1dv4NHexooRAremAKCneIaUNI6VA39uIIfiid3/mIT+yQCcDhfw B5FMBuZf4bvxZBbCpKAQyW4=5wuX -----END PGP SIGNATURE-----