LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   User root doesn't exist message while runing smbldap-populate (https://www.linuxquestions.org/questions/linux-server-73/user-root-doesnt-exist-message-while-runing-smbldap-populate-857300/)

allanwiese 01-19-2011 10:41 AM

User root doesn't exist message while runing smbldap-populate
 
Hello everyone!

I'm configuring a Samba PDC server with LDAP, following this How-to: http://edin.no-ip.com/content/ldap-s...an-lenny-howto

After I've done some steps and got all the right results, when I was trying to run smbldap-populate, I've got the message bellow:
Code:

Populating LDAP directory for domain CYBERNET (S-1-5-21-3478899314-3765654331-1584688938)
(using builtin directory structure)

entry dc=cybernet,dc=local already exist.
adding new entry: ou=people,dc=cybernet,dc=local
adding new entry: ou=group,dc=cybernet,dc=local
adding new entry: ou=computer,dc=cybernet,dc=local
adding new entry: ou=idmap,dc=cybernet,dc=local
adding new entry: uid=root,ou=people,dc=cybernet,dc=local
failed to add entry: objectClass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 56.
adding new entry: uid=nobody,ou=people,dc=cybernet,dc=local
failed to add entry: objectClass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 85.
adding new entry: cn=Domain Admins,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 97.
adding new entry: cn=Domain Users,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 108.
adding new entry: cn=Domain Guests,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 119.
adding new entry: cn=Domain Computers,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 130.
adding new entry: cn=Administrators,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 175.
adding new entry: cn=Account Operators,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 197.
adding new entry: cn=Print Operators,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 208.
adding new entry: cn=Backup Operators,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 219.
adding new entry: cn=Replicators,ou=group,dc=cybernet,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 498, <GEN1> line 230.
adding new entry: sambaDomainName=CYBERNET,dc=cybernet,dc=local
failed to add entry: invalid DN at /usr/sbin/smbldap-populate line 498, <GEN1> line 238.

Please provide a password for the domain root:
/usr/sbin/smbldap-passwd: user root doesn't exist

I have already found people saying that if I add the samba.schema correctly the problem will be solved, but it didn't happened yet.

Does anyone have any idea about my problem?

Thanks.

JZL240I-U 01-20-2011 03:18 AM

Does "root" (user and group) exist on your system?

allanwiese 01-20-2011 05:22 AM

Yes, both user and group root exist in my system.

JZL240I-U 01-20-2011 06:37 AM

Sorry, I'm way out of my depth here. Until somebody more knowledgeable steps in: Is there anything like "samba-users"? If so, is there a samba-root?

jamrock 01-20-2011 07:42 AM

I would recommend using the following documentation:

http://us1.samba.org/samba/docs/man/...ide/happy.html

The book was written by one of the Samba developers. The link is to Chapter 5 which explains the creation of a domain controller in detail.

This is the approach I have taken with my Samba domain controllers.

There appears to be an error in your smbldap-populate script. Have you looked at line 498?

archtoad6 01-20-2011 08:07 AM

Warning, I'm out of my depth too.
I Googled your error msg. & found Polish, French, & Russian answers, amongst others; the only hits for English were this page, SAMBA and LDAP - net getlocalsid shows error NT_STATUS_UNSUCCESSFUL here at LQ, & this old one on the Ubunto fora.

Have you figured out what "value #2" & "value #4" refer to in the error msgs.?
Could it be "ou=people" & "dc=local"; & does that point to a solution?

Hope this is remotely helpful.

allanwiese 01-21-2011 04:48 AM

Thanks everybody by your replies.

Actually I've just redone my setup in a new server from scratch and it's worked well. So, there was some unknown incompatibility which was taking me to the problem.

After doing all my new setup, I'll take a look in all these links you have sent me, to try to solve the problem in my runnig server.

Thanks again.

JZL240I-U 01-21-2011 05:02 AM

And when you have the solution please post it here... :).


@ archtoad6

Moderator, huh. Congratulations & a respectful bow ;).

archtoad6 01-21-2011 05:50 AM

Quote:

Originally Posted by JZL240I-U (Post 4232784)
And when you have the solution please post it here... :).

I'll 2nd that. It sounds like an unusual problem w/ an interesting solution. TIA.


Quote:

Originally Posted by JZL240I-U (Post 4232784)
@ archtoad6

Moderator, huh. Congratulations & a respectful bow ;).

Thanks. It's only been about 5 weeks & I'm still getting used to it. :)

allanwiese 02-01-2011 12:57 PM

As I told you, I would try to come back to my configs in my running server (because I really need it!).
After some tries rechecking and remaking configs, I decided to reinstall my server from scratch (my data wouldn't be lost because I have /home in another partition).
But, even had redone the installation of the server, I've got the same error (user root doesn't exist).

Here are the only differences between the two machines where I have done the setup:
-In my running server I have my partitions under ReiserFS filesystem instead of Ext3 which I had in my test server;
-In the test server I have just one partition to the whole filesystem and also SWAP partition, but in my running server I have /home in another partition and I do not have SWAP partition;
-My runnig server has RAID5, using a LSI Mega RAID Controller and the test server has its disc connected directly to the on-board controller;

Has any of you already heard in somewhere a kind of incompatibility among Samba and LDAP and these differences above (Filesystem type; number of partitions and SWAP partition and RAID controller)?
I would really appreciate if anyone could help my.

Best regards.


All times are GMT -5. The time now is 07:09 PM.