LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2011, 09:08 AM   #1
MegaTech
LQ Newbie
 
Registered: Mar 2011
Location: Netherlands
Distribution: Fedora 14 and rhel 3
Posts: 4

Rep: Reputation: 0
smbldap-useradd error on rhel 3, openldap 2.0.27, smbldap-tools-0.9.5, samba 3.0.9


I have installed a rhel 3 server, with samba 3.0.9 and openldap 2.0.27. I also intalled smbldap-tools-0.9.5.

now I try to ad a new user using smbldap-useradd. When I do that I get the following error: smbldap-useradd testuser
Could not find base dn, to get next uidNumber at /usr/sbin//smbldap_tools.pm line 1179, <DATA> line 283.

line 1179:
$next_uid_mesg->code
&& die "Error looking for next uid in "
. $config{sambaUnixIdPooldn} . ":"
. $next_uid_mesg->error;
if ( $next_uid_mesg->count != 1 ) {
die "Could not find base dn, to get next $attribute";
}
my $entry = $next_uid_mesg->entry(0);

line 283:

# next uidNumber and gidNumber available are stored in sambaDomainName object
if ( !defined $config{sambaUnixIdPooldn} ) {
$config{sambaUnixIdPooldn} =
"sambaDomainName=$config{sambaDomain},$config{suffix}";
}

I have no idea what i could do to fix this. i think that ik have everything configured right.
I would really appreciate some help with this.

If you need any further information pleas ask and i will provide it.

Already thanks
 
Old 03-02-2011, 08:40 AM   #2
rafatmb
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Rep: Reputation: 3
Hi,

Make shure you had configured well the config file of smbldap-* scripts. You must set the LDAP base DN correctly.

I suggest that you take a look at google, and search about tutorials to make samba/ldap work together.

One good book is Samba by Example. This session explains the configs that you need to do.

Good Luck!

[]'s

Rafa
Linux, Linux and Linux! Suporte Linux
 
Old 03-04-2011, 04:58 AM   #3
MegaTech
LQ Newbie
 
Registered: Mar 2011
Location: Netherlands
Distribution: Fedora 14 and rhel 3
Posts: 4

Original Poster
Rep: Reputation: 0
Hey thanx

After I posted this thread I reinstalled my samba/ldap server, after i did that it worked. I still
dont exactly know what was cousing the error but i am just happy that it works now.

The only problem i am stil having is that i cannot get my xp clients to see my samba domain but i made a different thread for that.
xp giving error when trying to join samba domain.

thanx for the help and the book did explain some things.

Greetings MegaTech
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smbldap-useradd error? deathsfriend99 Linux - Software 1 12-07-2011 09:14 AM
Samba Ldap smbldap-tools password expired Aghast Linux - Server 10 02-25-2010 12:16 AM
how to add smbldap-useradd -B kashifazizawan Linux - Server 2 08-29-2008 12:55 AM
Help, smbldap-tools error Neruocomp Linux - Software 0 05-22-2006 11:12 AM
Samba 3.0 with LDAP smbldap tools not working melk600 Linux - Networking 0 11-19-2003 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration