Difference between revisions of "Troubleshooting openLDAP errors"
(Created page with "<yambe:breadcrumb>OpenLDAP_server_configuration|OpenLDAP</yambe:breadcrumb> =Troubleshooting openLDAP errors= ==Problem while adding new entries== Sometimes ldap may give er...") |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[LDAP servers]] > [[OpenLDAP]] > [[Troubleshooting openLDAP errors]] | |||
=Problem while adding new entries= | |||
Sometimes ldap may give error while adding new entries if the LDAP server has recently been shudown uncleanly. The error message would be of the form: | Sometimes ldap may give error while adding new entries if the LDAP server has recently been shudown uncleanly. The error message would be of the form: | ||
Line 10: | Line 10: | ||
</pre> | </pre> | ||
To solve this problem one can take backup of existing data using slapcat and then restore it using slapadd. Then the server can be restarted and the value addition would start working properly. Steps for taking database backup and restoring it are mentioned at [[Database wide operations such as backup or restore for openLDAP]] | To solve this problem one can take backup of existing data using slapcat and then restore it using slapadd. Then the server can be restarted and the value addition would start working properly. Steps for taking database backup and restoring it are mentioned at [[Database wide operations such as backup or restore for openLDAP]] | ||
=Generic troubleshooting= | |||
In case of complex problems start slapd using | |||
<pre> | |||
slapd -h 'ldap:// ldaps://' -u ldap -d 1 | |||
</pre> | |||
where -d 1 will start slapd in debugging mode. | |||
For debugging client issues use: | |||
<pre> | |||
ldapsearch -x -d 1 -LLL | |||
</pre> | |||
where -d 1 will print debugging information from client side. | |||
Using both slapd debug info and ldapsearch debug info it should be possible to find out exactly what is not working. | |||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[LDAP servers]] > [[OpenLDAP]] > [[Troubleshooting openLDAP errors]] |
Latest revision as of 15:19, 13 March 2022
Home > CentOS > CentOS 6.x > LDAP servers > OpenLDAP > Troubleshooting openLDAP errors
Problem while adding new entries
Sometimes ldap may give error while adding new entries if the LDAP server has recently been shudown uncleanly. The error message would be of the form:
ldap_add: Other (e.g., implementation specific) error (80) additional info: index generation failed
To solve this problem one can take backup of existing data using slapcat and then restore it using slapadd. Then the server can be restarted and the value addition would start working properly. Steps for taking database backup and restoring it are mentioned at Database wide operations such as backup or restore for openLDAP
Generic troubleshooting
In case of complex problems start slapd using
slapd -h 'ldap:// ldaps://' -u ldap -d 1
where -d 1 will start slapd in debugging mode.
For debugging client issues use:
ldapsearch -x -d 1 -LLL
where -d 1 will print debugging information from client side.
Using both slapd debug info and ldapsearch debug info it should be possible to find out exactly what is not working.
Home > CentOS > CentOS 6.x > LDAP servers > OpenLDAP > Troubleshooting openLDAP errors