LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2009, 03:35 AM   #16
anaslimp
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by bathory View Post
The slapadd is run like this:
Code:
slapadd -l /etc/openldap/base.ldif
[root@localhost anass]# slapadd -l /etc/openldap/base.ldif
bdb_db_open: database "dc=company,dc=net": database already in use.
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed
i must be damned
 
Old 04-17-2009, 04:00 AM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
You have to stop slapd before using slapadd
 
Old 04-17-2009, 07:59 AM   #18
anaslimp
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
[QUOTE=bathory;3511183]The slapadd is run like this:


[root@localhost anass]#slapadd -l /etc/openldap/base.ldif

[root@localhost anass]# ldapsearch -x -b 'dc=company,dc=net'\
> '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=company,dc=net(objectclass=*)> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

it works i think thx
 
Old 04-17-2009, 09:14 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
Quote:
result: 32 No such object
Did you run the slapadd command?
Because it seems it cannot find the basedn: "dc=company,dc=net"
 
Old 04-20-2009, 12:11 PM   #20
anaslimp
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
[root@localhost anass]# ldapsearch -x -b 'dc=company,dc=net' \
> '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=company,dc=net> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# company.net
dn: dc=company,dc=net
objectClass: dcObject
objectClass: organization
dc: company
o: Samba 3
description: Samba 3

# manager, company.net
dn: cn=manager,dc=company,dc=net
objectClass: organizationalRole
cn: manager
description: LDAP Manager

# Users, company.net
dn: ou=Users,dc=company,dc=net
objectClass: top
objectClass: organizationalUnit
ou: Users

# Computers, company.net
dn: ou=Computers,dc=company,dc=net
objectClass: top
objectClass: organizationalUnit
ou: Computers

# admin, Users, company.net
dn: cn=admin,ou=Users,dc=company,dc=net
cn: admin
objectClass: top
objectClass: organizationalRole
objectClass: simpleSecurityObject
userPassword:: e1NTSEF9Qzd0NmxFZXZQL2tSQVNsUWhvRERpNVJJSEloMkprd1k=

# search result
search: 2
result: 0 Success

# numResponses: 6
# numEntries: 5

after migration this wat i obtained
 
Old 04-20-2009, 12:39 PM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,520

Rep: Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502Reputation: 1502
So now it's working.

Cheers
 
Old 04-21-2009, 03:45 AM   #22
anaslimp
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
So now it's working.

Cheers
looool thanx a lot

cheers
 
  


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
LDAP: Can't contact master ldap server rulirahm Linux - Networking 2 07-14-2014 03:02 AM
Ubuntu Hardy (php-ldap):Can't contact LDAP server eantoranz Programming 7 12-02-2008 07:40 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 09:22 AM
LDAP server not starting as user LDAP klnasveschuk Fedora 1 02-15-2007 05:49 AM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration