ldap server setup
while setting up the ldap servr
i was adding the file using ldapadd it is alwasy saying invalid credentials (49) can yu suggest what might be the prob |
Hi,
You don't show us the command that was used...... Only thing I can come up with: Are you using SASL or simple authentication? If it is the latter: did you use the -x switch? Hope this helps. |
The default permisions for openldap (assuming here since you didn't mention) are for all users to have read permission only. The only user who is able to do an add by default is the manager account which you would have to specify specifically with your command line each time. So even if you are running as the machine's root, that user has no special permissions with LDAP to use ldapadd unless you go out of your way to give it them (which is probably a bad idea).
You might look at this project for ldap account management. It is easy to use and I really like the way it sets up the user accounts. Much easier than doing everything by hand. http://lam.sourceforge.net/ If you post your command syntax (no passwords please!) and what versions of Linux and ldap you are using we can try to help you debug it. |
i m setting it up as the admin
on RHEL 5 ya i hav specified the root/admin/manager for ldap i m using the simple authentication ya -x was used i m pasting the commands which i used what i did i edited the /etc/openldap/slapd.conf in the suffix i wrote suffix "dc=cs,dc=gbpuat-tech,dc=ac,dc=in" rootdn "cn=npant,dc=gbpuat-tech,dc=ac,dc=in" rootpw <password> them i edited the /usr/share/openldap/migration/migrate_common.ph file and specified the Default base there "dc=cs,dc=gbpuat-tech,dc=ac,dc=in" after the i started the ldap service and then created the passwd.LDIF file now when i m adding it with ldapadd ldapadd -x -h cpm10 -D "cn=npant,dc=cs,dc=gbpuat-tech,dc=ac,dc=in" -w <password> -f passwd.LDIF or various combinations of this command as specifying the filename first ,,, like that it is always saying invalid credentials (49) this is the problem i hav specified al the infod after teh -D correctly still it is not working my domainname is cs.gbpuat-tech.ac.in and hostname is cpm10 thnx |
What happens when you do something like
ldapsearch -x '(ObjectClass=*)' It will probably return no records, but it ought to let you connect. Also if you specify the host, it is possible that it is sending traffic outside your box. Do you have a firewall on that box? You might try without the -h (you shouldn't need it on the local box anyway). Also, double check and make sure you don't have any of the security turned on (TLS, ssl, SASL, whatever). Get it working locally without the security turned on (just take it off the network if you are concerned about security), then play with the security settings later. Also, you do have to add the base DN and such first before you add user information, though that is a different error message :) |
Hi,
Is this correct (slapd.conf entry)? suffix "dc=cs,dc=gbpuat-tech,dc=ac,dc=in" rootdn "cn=npant,dc=gbpuat-tech,dc=ac,dc=in" Shouldn't that be: suffix "dc=cs,dc=gbpuat-tech,dc=ac,dc=in" rootdn "cn=npant,dc=cs,dc=gbpuat-tech,dc=ac,dc=in" You are trying to access this: -D "cn=npant,dc=cs,dc=gbpuat-tech,dc=ac,dc=in" Hope this helps. |
Quote:
sorry .. i hav enter it correctly there ,,, typo |
All times are GMT -5. The time now is 02:41 AM. |