Q: dscl doesn't work when using -P password
I have a script that create network users via the dscl command, but now (after upgrading server to 5.1.7) I can't create users anymore. If I run:
dscl -u diradmin /LDAPv3/127.0.0.1 create Users/someuser
and then enters the diradmin password everything works as expected but as soon as I try to submit the password via -P like:
dscl -u diradmin -P password /LDAPv3/127.0.0.1 create Users/someuser
the command fails with an error:
Data source (/LDAPv3/127.0.0.1/) is not valid.
The script worked before but now it doesn't. I know I have had this problem before but can't remember what voodoo made it work. I've tried to:
reboot the machine
reset the diradmin password
remove the and reconnect the 127.0.0.1 binding via the directory utility app.
But still the same result: Entering the diradmin password manually works but submitting via -P doesn't.
Any suggestions would be appreciated...
Posted on Aug 17, 2016 8:18 AM