LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ldap problem about delete rendom users (https://www.linuxquestions.org/questions/linux-networking-3/ldap-problem-about-delete-rendom-users-271090/)

armagdon 12-28-2004 06:47 AM

ldap problem about delete rendom users
 
hi every body,

i have ldap server on SLES as PDC and windows and linux machine login to it ,i have problem with ldap when created user account and machine account the user is login successfuly not problem after 3days or more when display ldap users and computers by GQ program i don't saw the machines name for users accounts and machines names for some users that i created it befor , i don't what's the problem becouse the users couldn't login to domain , i suggest the bdb backend plz i want your advice for this case .

david_ross 12-28-2004 07:59 AM

Have you tried verifying the berkeley database?

1) Stop the ldap process
2) "cd" to the ldap database directory
3) Run "db_verify" - see if it passes the test.

armagdon 12-28-2004 08:11 AM

i do it and this is ou put from command
# db_verify /var/lib/ldap/*


db_verify: Page 0: bad magic number 0
db_verify: Page 0: bad page size 0
db_verify: DB->verify: /var/lib/ldap/__db.001: DB_VERIFY_BAD: Database verification failed

david_ross 12-28-2004 08:34 AM

Well at least you know there is a problem with the database now. You can use db_recover to try and repair the database. I would make a copy of the database directory before you try making any changes. Take a look at "man db_recover" for instructions.

If db_verify is still failing then you can try using db_dump and db_load to extract and reimport the data into an empty database. If that fails then I think you should just resort to a recent good backup.


All times are GMT -5. The time now is 01:24 AM.