ldap problems

ldap problems

Post by High Mercur » Thu, 05 Mar 1998 04:00:00



Hello,
  I have been trying to install ldap3.3 on a freebsd 2.2.2. machine.
  I followed the instructions on the slapd homepage:

http://www.umich.edu/~dirsvcs/ldap/doc/guides/slapd/2.html

Here are the files I created:

mercury:/usr/local/etc# cat myslapd.conf
referral ldap://ldap.itd.umich.edu
database ldbm
suffix "o=Nokia, c=US"
directory /usr/tmp
rootdn "cn=Ray, o=Nokia, c=US"
rootpw secret

mercury:/usr/local/etc# cat myldif
dn: o=Nokia, c=US
o: Nokia
objectclass: organization

dn: cn=Ray, o=Nokia, c=US
cn: Ray
sn: Chin

objectclass: person
mercury:/usr/local/etc#

The conversion worked fine:

mercury:/usr/local/etc# ./ldif2ldbm -f ./myslapd.conf  -i ./myldif
mercury:/usr/local/etc#
mercury:/usr/local/etc# cd /usr/tmp
mercury:/usr/tmp# ls
NEXTID                  dn2id.ndbm.db   id2entry.ndbm.db
dn.ndbm.db              id2children.ndbm.db     objectclass.ndbm.db
mercury:/usr/tmp#

After starting slapd:
mercury:/usr/local/etc# ./slapd -f ./myslapd.conf
mercury:/usr/local/etc#

This is the result of an ldapsearch on that database:

mercury:/usr/local/etc# ldapsearch -h 127.0.0.1 'objectclass=*'
ldap_search: No such object
ldap_search: matched: c=US
mercury:/usr/local/etc#

And if I try to use ud, this is what I get:

mercury:/usr/local/etc# ud -s localhost -f ./myslapd.conf
  X.500 UserDirectory 3.3 (Tue Mar  3 12:14:04 PST 1998)
?? -> referral ldap://ldap.itd.umich.edu
?? -> database ldbm
?? -> suffix "o=Nokia, c=US"
?? -> directory /usr/tmp
?? -> rootdn "cn=Ray, o=Nokia, c=US"
?? -> rootpw secret

  Enter a command.  If you need help, type 'h' or '?' and hit RETURN.

* status
  Current server is localhost
  Search base is Your Organization Name, United States of America
  Group  base is
  Bound as Nobody
  Verbose mode is enabled
  Aliases are being dereferenced
*

I am not sure what I am doing wrong......I am running freebsd 2.2.2 and
compiled ldap3.3 using the source.  If anyone can shed any light onto why
I am having these problems I would greatly appreciate it.

merc

 
 
 

ldap problems

Post by Kai Voi » Thu, 05 Mar 1998 04:00:00


Well, this isn't actually a FreeBSD problem, but anyway...


>  I have been trying to install ldap3.3 on a freebsd 2.2.2. machine.
>This is the result of an ldapsearch on that database:
>mercury:/usr/local/etc# ldapsearch -h 127.0.0.1 'objectclass=*'
>ldap_search: No such object
>ldap_search: matched: c=US
>mercury:/usr/local/etc#
>And if I try to use ud, this is what I get:
>mercury:/usr/local/etc# ud -s localhost -f ./myslapd.conf
>  X.500 UserDirectory 3.3 (Tue Mar  3 12:14:04 PST 1998)
>?? -> referral ldap://ldap.itd.umich.edu
>?? -> database ldbm
>?? -> suffix "o=Nokia, c=US"
>?? -> directory /usr/tmp
>?? -> rootdn "cn=Ray, o=Nokia, c=US"
>?? -> rootpw secret
>  Enter a command.  If you need help, type 'h' or '?' and hit RETURN.
>* status
>  Current server is localhost
>  Search base is Your Organization Name, United States of America
>  Group  base is
>  Bound as Nobody
>  Verbose mode is enabled
>  Aliases are being dereferenced
>*
>I am not sure what I am doing wrong......I am running freebsd 2.2.2 and
>compiled ldap3.3 using the source.  If anyone can shed any light onto why
>I am having these problems I would greatly appreciate it.

I exactly had the same problem.  After checking the server's logfile,
I realized that the clients (ldapsearch, ud, etc.) seemed to have
the local base hardcoded into the program.  You could either set the
local base with the -b option in ldapsearch or, edit include/ldapconfig.h
and set DEFAULT_BASE to your base, i.e. "o=Nokia, c=US".

Weird that this base is hardcoded and not a run time option to be
set in some config file...

Kai
--
kai voigt                                               hamburger chaussee 36
                                                                   24113 kiel
                                                                  0431-642677
                                                             http://k.123.org

 
 
 

1. LDAP problem in SuSE 7.1 ftp

Hi.

I have a very hard time to configure SuSE 7.1
PAM to accept LDAP authentication...
Can you please help me with /etc/pam.d/ftp and
/etc/pam.d/login ?
I would like to connect to Suse's 7.1 ftp server and
be able to authenticate over LDAP. I kinda figured
out the "login" but I have no clue on the 'pam ftp'.

Thank you,
Alex.

2. Linux for PentiumPro?

3. ldap: problems with ldif

4. REQUEST: Please respect case-insensitivity

5. Known Solaris and LDAP Problems

6. reboot=bios is invalidating cache incorrectly

7. mod-ldap problem/question

8. solaris 7 to 2.6 - disk reformat?

9. LDAP: Problems adding elements to Dir!

10. LDAP problem with SuSE 7.1

11. ldap problem on clusre2.2

12. LDAP Problems.

13. LDAP Problems