> 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