<html><head></head><body><div><br></div><div>Am Mittwoch, den 22.11.2017, 22:10 +0100 schrieb permondes - sagen:</div><blockquote type="cite"><div><br></div><div><br></div><div>Am Mittwoch, den 22.11.2017, 21:51 +0100 schrieb permondes - sagen:</div><blockquote type="cite"><div><br></div><div><br></div><div>Am Mittwoch, den 22.11.2017, 20:57 +0100 schrieb permondes - sagen:</div><blockquote type="cite"><div>Hi,</div><div><br></div><div>creating a User in Plinth 0.16 gives this feedback:</div><div>* Creating LDAP user failed.</div><div>* User hahaha created.</div><div><br></div><div>Changing the password afterwards fails the LDAP operation but works successful (as 2nd message).</div><div><br></div><div>Issue is, that I am trying to set up another user for a radicale calendar. Trying to create the calendar in Evolution or DAVDroid gives an authentication error, so I presume it is related to the LDAP error. Is this right?</div><div><br></div><div>I have the feeling I had this issue before and managed to resolve it with the list, but cannot find any trace how I did this.</div><div><br></div><div> Dietmar</div></blockquote><div><br></div><div>If I assign groups to the user, there are additional error messages:</div><div><div>* Failed to add new user to admin group.
</div><div>* Failed to add new user to wiki group.
</div></div><pre>_______________________________________________
</pre></blockquote><div><br></div><div>I just found the log file plith/status.log:</div><blockquote type="cite"><div>[2017-11-22 22:03:52,123] plinth.actions INFO Executing command - ['sudo', '-n', '/usr/share/plinth/actions/users', 'create-user', 'newuser']</div><div>[2017-11-22 22:03:54,620] plinth.actions ERROR Error executing command - ['sudo', '-n', '/usr/share/plinth/actions/users', 'create-user', 'newuser'], , Traceback (most recent call last):</div><div> File "/usr/share/plinth/actions/users", line 371, in <module></div><div> main()</div><div> File "/usr/share/plinth/actions/users", line 367, in main</div><div> subcommand_method(arguments)</div><div> File "/usr/share/plinth/actions/users", line 225, in subcommand_create_user</div><div> _run(['ldapadduser', arguments.username, 'users'])</div><div> File "/usr/share/plinth/actions/users", line 357, in _run</div><div> return subprocess.run(arguments, **kwargs)</div><div> File "/usr/lib/python3.6/subprocess.py", line 418, in run</div><div> output=stdout, stderr=stderr)</div><div>subprocess.CalledProcessError: Command '['ldapadduser', 'newuser', 'users']' returned non-zero exit status 1.</div></blockquote><div><br id="-x-evo-last-br"></div><div>and in ldapscripts.log:</div><blockquote type="cite"><div>Nov 22 22:03:53 freedombox ldapscripts: ldapadduser(root): /usr/sbin/ldapadduser newuser users</div><div>SASL/EXTERNAL authentication started</div><div>SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth</div><div>SASL SSF: 0</div><div>No such object (32)</div><div>Matched DN: dc=thisbox</div><div>SASL/EXTERNAL authentication started</div><div>SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth</div><div>SASL SSF: 0</div><div>SASL/EXTERNAL authentication started</div><div>SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth</div><div>SASL SSF: 0</div><div>ldap_add: No such object (32)</div><div> matched DN: dc=thisbox</div><div> -> Error adding user newuser to LDAP</div></blockquote><div><br></div><div>So the error is "No such object"</div><div>On the web I found the answer: "You need to add an entry for dc=nerdbot,dc=net. You are trying to add</div><pre style="margin: 0em;">branches to a tree with no root."</pre><pre style="margin: 0em;"><br></pre><pre style="margin: 0em;">So my configuration file is broken. How can I fix this?</pre><pre>_______________________________________________
</pre></blockquote><div><br></div><div>I discovered in /etc/ldapscripts 2 configuration files. I guess, the one .dpkg-old was saved when an update overwrote the config file. Here is the diff:</div><div><br></div><blockquote type="cite"><div>xxx:/etc/ldapscripts$ diff ldapscripts.conf ldapscripts.conf.dpkg-old</div><div>2c2</div><div>< # Copyright (C) 2006-2017 Gana�l LAPLANCHE</div><div>---</div><div>> # Copyright (C) 2006-2016 Gana�l LAPLANCHE</div><div>90c90</div><div>< PASSWORDGEN="pwgen"</div><div>---</div><div>> PASSWORDGEN="true"</div><div>164a165,169</div><div>> SERVER="ldapi://"</div><div>> SASLAUTH="EXTERNAL"</div><div>> SUFFIX="dc=thisbox"</div><div>> USUFFIX="ou=Users"</div><div>> GSUFFIX="ou=Groups"</div><div><br id="-x-evo-last-br"></div></blockquote><div>So the differences are in "PASSWORDGEN" and SERVER and the SUFFIXes.</div><div>Are the old settings Freedombox specific? Should I just copy the old version over the new one?</div><div><br></div><div> Dietmar</div></body></html>