LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 26th, 2004, 02:09 PM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 254 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 52 m 23 sec
Reputation Power: 10
Linux Ldap configuration

Dear reader,

I have ldap installed on a fedora2 linux but there is a problem when doing a ldapsearch.

[root@einstein root]# ldapsearch -x -b 'dc=bahadoer,dc=nl'\
> '(objectclass=*)'
# extended LDIF
#
# LDAPv3
# base <dc=bahadoer,dc=nl(objectclass=*)> with scope sub
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 34 Invalid DN syntax
text: invalid DN

# numResponses: 1
[root@einstein root]#

This is how my slapd.conf looks like, i took the liberty to hold back the comments and all the disabled features:

#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/autofs.schema
#include /etc/openldap/schema/mail-routing.schema

allow bind_v2

pidfile /var/run/slapd.pid

database ldbm
suffix "dc=bahadoer,dc=nl"
rootdn "cn=manager,dc=bahadoer,dc=nl"
HOST 192.168.1.1
BASE dc=bahadoer,dc=nl

rootpw secret

directory /var/lib/ldap/bahadoer.nl

# Indices to maintain for this database
index objectClass eq,pres
index ou,cn,mail,surname,givenname eq,pres,sub
index uidNumber,gidNumber,loginShell eq,pres
index uid,memberUid eq,pres,sub
index nisMapName,nisMapEntry eq,pres,sub


I've added some entry's like these and they didn't gave me any problem

dn: dc=bahadoer,dc=nl
dc: bahadoer
description: Root LDAP entry bahadoer.nl
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject

dn: ou=People,dc=bahadoer,dc=nl
ou: People
description: All people in organisation
objectClass: organizationalUnit
__________________

Reply With Quote
  #2  
Old August 27th, 2004, 09:06 AM
arknius arknius is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Stuttgart
Posts: 50 arknius User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 sec
Reputation Power: 9
Send a message via ICQ to arknius
try

ldapsearch -x -s base -b "dc=bahadoer,dc=nl" "objectClass=*"

Reply With Quote
  #3  
Old August 27th, 2004, 01:51 PM
xyfix xyfix is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 254 xyfix User rank is Private First Class (20 - 50 Reputation Level)xyfix User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 8 h 52 m 23 sec
Reputation Power: 10
Linux Ldap configuration

Thank you for replying ,but the ldapsearch command you mentioned gave me the same invalid DNS message.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Linux Ldap configuration

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap