Showing posts with label LDAP. Show all posts
Showing posts with label LDAP. Show all posts

2012/01/13

Ldap serach

 ldapsearch -H ldap://127.0.0.1/ -LL -x -b "dc=aaa,dc=aaa" "(userPassword=123456)" ou


2011/12/15

missing DB_CONFIG

find DB_CONFIG.example

find / | grep DB_CONFIG


cp / file location  /DB_CONFIG.example /var/lib/ldap/DB_CONFIG



2011/12/13

LDAP start WARNING


[root@dogcage var]# service ldap start
/var/lib/ldap/ou.bdb is not owned by "ldap"                [WARNING]
/var/lib/ldap/__db.006 is not owned by "ldap"              [WARNING]
/var/lib/ldap/log.0000000001 is not owned by "ldap"        [WARNING]
/var/lib/ldap/__db.003 is not owned by "ldap"              [WARNING]
/var/lib/ldap/objectClass.bdb is not owned by "ldap"       [WARNING]
/var/lib/ldap/__db.002 is not owned by "ldap"              [WARNING]
/var/lib/ldap/__db.001 is not owned by "ldap"              [WARNING]
/var/lib/ldap/alock is not owned by "ldap"                 [WARNING]
/var/lib/ldap/__db.005 is not owned by "ldap"              [WARNING]
/var/lib/ldap/__db.004 is not owned by "ldap"              [WARNING]
/var/lib/ldap/dn2id.bdb is not owned by "ldap"             [WARNING]
/var/lib/ldap/id2entry.bdb is not owned by "ldap"          [WARNING]
Checking configuration files for slapd:                    [FAILED]
bdb_db_open: database "dc=ikala,dc=tv": alock package is unstable.
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed (test would succeed using the -u switch)
stale lock files may be present in /var/lib/ldap           [WARNING]
[root@dogcage var]# service ldap status
slapd is stopped


chown ldap:ldap -R /var/lib/ldap/




[root@dogcage var]# service ldap restart
Stopping slapd:                                            [FAILED]
Checking configuration files for slapd:                    [WARNING]
bdb_db_open: database "dc=ikala,dc=tv": unclean shutdown detected; attempting recovery.
bdb_db_open: database "dc=ikala,dc=tv": recovery skipped in read-only mode. Run manual recovery if errors are encountered.
config file testing succeeded
Starting slapd:                                            [  OK  ]
[root@dogcage var]# service ldap status
slapd (pid 9048) is running...
[root@dogcage var]#