tor, 07.07.2005 kl. 03.12 skrev [EMAIL PROTECTED]: [...]
> >> The unix 'passwd' was the same way, but it had a switch '--stdin' so > >> that I could pipe the passwd into it and the smbpasswd actually let you > >> put the password in-line. > > > > How about building smbpasswd into your script? smbpasswd modifies both > > the Unix and Windows passwords at the same time. > > > > Two possible shell solutions, one from Nick Soracco and one from an > > answer to Wim Bakke (which I don't have), both from this list June last > > (copy 'n paste): > > > > printf "<password>\n<password>\n" | smbpasswd -a -s <username> > > > > echo -n -e "$PASS1\n$PASS2" | smbpasswd -as $USERNAME > > > > Just read the passwords from your list of details for each pupil. > > > That is actually what my old script did. I just found the '-s' after I > posted this message. I do have a question about this though. Since > Samba is using ldap, is it alright to use smbpasswd? Do I not have to use > smbldap-passwd? Do they modify the same file? smbpasswd is a binary that works fine with LDAP and changes both Unix (in LDAP the userPassword attribute) and Windows passwords - I use it myself in shell scripts. smbldap-passwd is a script without the same functionality. --Tonni -- mail: [EMAIL PROTECTED] http://www.billy.demon.nl -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
