Dear All Members,
This is Jyotishmaan.
I have a small problem with phpldapadmin.
These are the lines of config.php file, which i have changed:-
$ldapservers->SetValue($i,'server','name','My LDAP Server: authdns@nits.ac.in');
$ldapservers->SetValue($i,'server','host','127.0.0.1');
$ldapservers->SetValue($i,'server','base',array('dc=nits,dc=ac,dc=in'));
$ldapservers->SetValue($i,'server','auth_type','session');
$ldapservers->SetValue($i,'login','dn','');
$ldapservers->SetValue($i,'login','dn','cn=Manager,dc=nits,dc=ac,dc=in');
$ldapservers->SetValue($i,'login','pass','');
$ldapservers->SetValue($i,'login','pass','secret');
with the above lines in config.php i am getting the following error message displayed while logging onto the LDAP server with the phpldapadmin browser:-
Could not bind to the LDAP server. LDAP said: Unknown errorError number: 0x1a ()Description:
Please note I have not used either TLS or SASL to connect or authenticate with the LDAP server. Is it important to do ??
However, i have added two entries into the bdb database over the ldap from the root prompt using ldap command. the transcript of it is as given below:-
[root@authdns bin]# ldapadd -x -D "cn=Manager,dc=nits,dc=ac,dc=in" -W -f /etc/openldap/test/.ldif/etc/openldap/test/.ldif: No such file or directory [root@authdns bin]# ldapadd -x -D "cn=Manager,dc=nits,dc=ac,dc=in" -W -f /etc/openldap/test/new.ldif Enter LDAP Password: adding new entry "dc=nits,dc=ac,dc=in"
adding new entry "cn=Manager,dc=nits,dc=ac,dc=in"
But since i have the phpldapadmin browser, i would like to add all the entries using the browser.
Please let me know the necessary changed that needs to be done in the config.php file.
One more question, here i have to run the slapd deemon manually in the directory, /usr/bin/slapd -d 65 &
I wish to run it directly using the command :-
service slapd restart
Now, should i include this service name directly in the file /etc/services file?
I would not like to take risk, so please help me???
Thanking you, for all the answers, in advance,
Jyotishmaan
With Thanks and Regards, Jyotishmaan Ray Moderator Of Paradise Groups
http://yahoogroups.com/group/Spirituality-Paradise
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On 03/11/2007, Jyotishmaan Ray jyotishmaan@yahoo.com wrote:
I have a small problem with phpldapadmin.
Can't comment on that.
One more question, here i have to run the slapd deemon manually in the directory, /usr/bin/slapd -d 65 &
I wish to run it directly using the command :-
service slapd restart
With Fedora it is "service ldap restart", since the service script is /etc/init.d/ldap
Now, should i include this service name directly in the file /etc/services file?
That file doesn't do what you think it does. It doesn't configure services. It is just a mapping of service/protocol names to port numbers, to be queried by programs or yourself with getent. See "man services".