[nycbug-talk] OpenLDAP Server on FreeBSD-9

nycbug at wynn.com nycbug at wynn.com
Tue Jul 24 13:07:27 EDT 2012


Greeting-

I have finally decided it is time to cry UNCLE!  I have been trying for some
many weeks to get an openldap server up and running for central auth of my 
flock of FreeBSD and GNU/Linux boxes (GNU/Linux is on the way out) with 
no luck.  

I had no problem building the openldap port, but I can not seem to in any way
load up a password database using the following LDIF


dn: uid=wynkoop,ou=People,dc=harapartners,dc=com
uid: wynkoop
cn: Brett Wynkoop
objectClass: account
objectClass: posixAccount
objectClass: top
userPassword: {crypt}*
loginShell: /usr/local/bin/bash
uidNumber: 1034
gidNumber: 1034
homeDirectory: /home/wynkoop
gecos: Brett Wynkoop


Here is the error returned:

 [root at hp1 /home/wynkoop/MigrationTools-47]#  ldapadd -x -h localhost <  pass.wynkoop.ldif
adding new entry "uid=wynkoop,ou=People,dc=harapartners,dc=com"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #0 invalid per syntax

 [root at hp1 /home/wynkoop/MigrationTools-47]# 

I have tried other methods to populate the ldap database as well, but it 
always boils down to a syntax error on something in the ldif file.

HELP!  If I can not get this going I am going to have to fall back to NIS....
ICK.

Thanks guys!

-Brett




More information about the talk mailing list