[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: how to ldap simple bind

Rakesh Naidu:
> i want to do a ldap_simple_bind...how do i do that...plz note i *dont have
> root access*...and also i connect to the server without a password, that 
> is i authenticate thru DSA.  so as a normal user i have to bind to the
> particular node...also see enclosed command line error message when i try 
> to add a test user...and also the ldif file....
> thnx...
> rockash....
> >  zeo@rock:~> ldapadd -f testldapadd.ldif -x
> >  adding new entry "uid>  ldap_add: Insufficient access
> >  additional info: no write access to parent
> >  ldif_record() 
> # zeo1, People, zeomega, com
> dn: uiduid: zeo1
> objectClass: account
> objectClass: posixAccount
> objectClass: top
> objectClass: shadowAccount
> objectClass: cdObject
> cdName: zope owner
> shadowLastChange: 10934
> shadowMax: 99999
> shadowWarning: 7
> loginShell: /bin/bash
> uidNumber: 509
> gidNumber: 100
> homeDirectory: /home/zeo
> sn: ZeOmega1
> cn: ZeOmega1 User
> userPassword:: e2NyeXB0fWUva2Vp

Uhm - for this to work you have to setup acl in slapd.conf to let
everyone have writeaccess to everything. 

If you don't have root, get an admin with root to add an administrative
dn with sufficient access to slapd.conf, you shouldn't have to be root
to add or modify entries in ldap.

Best regards

Bjørn Ove Grøtan

"SELECT 2 + 2, pi(), 'PostgreSQL is more than a calculator!';"