Hi, using samba 4 (commit 09f270e748263f2fb02683a9376ae185a5534178) against OpenLDap 2.4.21 on Ubuntu server 9.10, I provisioned a new domain. Afterwards, I tried to create a new user, which is failing: ********************************************************************** net newuser TestUsr New Password: pdc_fsmo_init: no domain object present: (skip loading of domain details) naming_fsmo_init: no partitions dn present: (skip loading of naming contexts details) schema_load_init: no schema head present: (skip schema loading) Traceback (most recent call last): File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py", line 96, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/newuser.py", line 70, in run force_password_change_at_next_login_req=must_change_at_next_login) File "/usr/local/samba/lib/python2.6/site-packages/samba/samdb.py", line 129, in newuser "objectClass": "user"}) _ldb.LdbError: (32, 'objectclass: Cannot add CN=TestUsr,CN=Users,DC=test,DC=local, parent does not exist!') *************************************************************************** Any hints whether I am doing something wrong?
Firstly, can you determine if it also happens when you use the normal LDB backend? This will help us narrow down the cause.
without OpenLDap, I see no problem here
Might be an issue for Endi.
Dirk, how does this work now?
it is getting worse - I cannot even provision now. see Bug 7304
And what is with this, Dirk? Could you please retest?
not testable due to bug 7344
still fails for me: net newuser TestUsr New Password: pdc_fsmo_init: no domain object present: (skip loading of domain details) naming_fsmo_init: no partitions dn present: (skip loading of naming contexts det ails) schema_load_init: no schema head present: (skip schema loading) module schema_load initialization failed module kludge_acl initialization failed module operational initialization failed module acl initialization failed module descriptor initialization failed module objectclass initialization failed module asq initialization failed module server_sort initialization failed module paged_results initialization failed module lazy_commit initialization failed module rootdse initialization failed module samba_dsdb initialization failed Unable to load modules for /usr/local/samba/private/sam.ldb: (null) Traceback (most recent call last): File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py", line 99, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/newuser.py", l ine 64, in run lp=lp) File "/usr/local/samba/lib/python2.6/site-packages/samba/samdb.py", line 47, i n __init__ options=options) File "/usr/local/samba/lib/python2.6/site-packages/samba/__init__.py", line 11 1, in __init__ self.connect(url, flags, options) File "/usr/local/samba/lib/python2.6/site-packages/samba/samdb.py", line 54, i n connect options=options) _ldb.LdbError: (80, None)
Please retry this with "net user add" since "net newuser" could be dropped soon (bug #7360).
That's also failing: net user add TestUsr Traceback (most recent call last): File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py", line 122, in _run return self.subcommands[subcommand]._run(subcommand, *args) File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py", line 99, in _run return self.run(*args, **kwargs) File "/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/user.py", line 46, in run net.create_user(name) RuntimeError: NT_STATUS_OBJECT_NAME_NOT_FOUND
Does the problem still happen? Maybe Endi has some idea.
retried with latest build (fd9e02d5f3a2d98fe14b10b52c4ca3e654a6bd3e). Still failing: net user add TestUsr Traceback (most recent call last): File "bin/python/samba/netcmd/__init__.py", line 122, in _run return self.subcommands[subcommand]._run(subcommand, *args) File "bin/python/samba/netcmd/__init__.py", line 99, in _run return self.run(*args, **kwargs) File "bin/python/samba/netcmd/user.py", line 46, in run net.create_user(name) RuntimeError: NT_STATUS_OBJECT_NAME_NOT_FOUND
Endi, do you have some time to look at this?
Some work regarding the OpenLDAP backend have been done in the last weeks. Could you retry please? And if it doesn't work update the error outputs?
I will close this until we receive a status update.