8 Replies Latest reply: Aug 16, 2013 1:22 PM by Belimor
adkar Level 1 Level 1 (0 points)

Anyone seen the above error before? LDAP has stopped all all my users are not visible anymore.

  • 1. Re: The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14006 occurred.
    Strontium90 Level 4 Level 4 (3,140 points)

    You can try repairing LDAP.  Try this:

     

    1:  Stop LDAP on OD Master

     

    sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist

     

    2:  Stop LDAP on OD Replica (if present)

     

    sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist

     

    3:  Run recover tool on Master

     

    sudo db_recover -v -h /var/db/openldap/openldap-data/

     

    4:  Start ldap on Master

     

    sudo launchctl load /System/Library/LaunchDaemons/org.openldap.slapd.plist

     

    5:  Start ldap on replica (if present)

     

    sudo launchctl unload /System/Library/LaunchDaemons/org.openldap.slapd.plist

     

    Beyond that post what is going on in system.log and opendirectory.log?

  • 2. Re: The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14006 occurred.
    rkovelman Level 2 Level 2 (320 points)

    In Server Admin what does it say about the Open Directory status?  Is everything running?  That will help us help you on next steps.

  • 3. Re: The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14006 occurred.
    adkar Level 1 Level 1 (0 points)

    Thanks for your response .

    I tried repairing LPAD as you suggested . 

    it did not work.

     

    the LDAP log is as follows:

     

     

    May 17 10:39:59 adkar slapd[28294]: @(#) $OpenLDAP: slapd 2.4.23 (Feb 25 2012 19:47:01) $

                        root@melodie.apple.com:/private/var/tmp/OpenLDAP/OpenLDAP-186.4~2/servers/slapd

    May 17 10:39:59 adkar slapd[28294]: daemon: SLAP_SOCK_INIT: dtblsize=8192

    May 17 10:39:59 adkar slapd[28294]: bdb_monitor_db_open: monitoring disabled; configure monitor database to enable

    May 17 10:39:59 adkar slapd[28294]: bdb(cn=authdata): file id2entry.bdb has LSN 3/233552, past end of log at 2/8619712

    May 17 10:39:59 adkar slapd[28294]: bdb(cn=authdata): Commonly caused by moving a database from one database environment

    May 17 10:39:59 adkar slapd[28294]: bdb(cn=authdata): to another without clearing the database LSNs, or by removing all of

    May 17 10:39:59 adkar slapd[28294]: bdb(cn=authdata): the log files from a database environment

    May 17 10:39:59 adkar slapd[28294]: bdb(cn=authdata): /var/db/openldap/authdata/id2entry.bdb: unexpected file type or format

    May 17 10:39:59 adkar slapd[28294]: bdb_db_open: database "cn=authdata": db_open(/var/db/openldap/authdata/id2entry.bdb) failed: Invalid argument (22).

    May 17 10:39:59 adkar slapd[28294]: backend_startup_one (type=bdb, suffix="cn=authdata"): bi_db_open failed! (22)

    May 17 10:39:59 adkar slapd[28294]: bdb_db_close: database "cn=authdata": alock_close failed

    May 17 10:39:59 adkar slapd[28294]: slapd stopped.

  • 4. Re: The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14006 occurred.
    adkar Level 1 Level 1 (0 points)

    open directory is currently running as /local/default

     

    here is the log status  for open directory. the log status LDAP is in my previous post.

    Thanks for you help

     

    2012-05-17 00:22:47.527 PDT - opendirectoryd (build 172.13) launched...

    2012-05-17 00:22:47.551 PDT - Logging level limit changed to 'error'

    2012-05-17 00:22:47.562 PDT - Initialize trigger support

    2012-05-17 00:22:48.010 PDT - Registered node with name '/Active Directory' as hidden

    2012-05-17 00:22:48.011 PDT - Registered node with name '/Configure' as hidden

    2012-05-17 00:22:48.012 PDT - Discovered configuration for node name '/Contacts' at path '/Library/Preferences/OpenDirectory/Configurations//Contacts.plist'

    2012-05-17 00:22:48.012 PDT - Registered node with name '/Contacts'

    2012-05-17 00:22:48.012 PDT - Registered node with name '/LDAPv3' as hidden

    2012-05-17 00:22:48.015 PDT - Registered node with name '/Local' as hidden

    2012-05-17 00:22:48.020 PDT - Registered node with name '/NIS' as hidden

    2012-05-17 00:22:48.020 PDT - Discovered configuration for node name '/Search' at path '/Library/Preferences/OpenDirectory/Configurations//Search.plist'

    2012-05-17 00:22:48.020 PDT - Registered node with name '/Search'

    2012-05-17 00:22:48.021 PDT - Discovered configuration for node name '/LDAPv3/127.0.0.1' at path '/Library/Preferences/OpenDirectory/Configurations/LDAPv3/127.0.0.1.plist'

    2012-05-17 00:22:48.021 PDT - Registered subnode with name '/LDAPv3/127.0.0.1'

    2012-05-17 00:22:48.023 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/legacy.bundle'

    2012-05-17 00:22:48.025 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/search.bundle'

    2012-05-17 00:22:49.028 PDT - '/Search' has registered, loading additional services

    2012-05-17 00:22:49.028 PDT - Initialize augmentation support

    2012-05-17 00:22:49.032 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/SystemCache.bundle'

    2012-05-17 00:22:49.036 PDT - Successfully registered for Kernel identity service requests

    2012-05-17 00:22:49.042 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/PlistFile.bundle'

    2012-05-17 00:22:49.044 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/FDESupport.bundle'

    2012-05-17 00:22:49.102 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ConfigurationProfiles.bundle'

    2012-05-17 00:22:49.104 PDT - Registered subnode with name '/Local/Default'

    2012-05-17 00:22:49.111 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/ldap.bundle'

    2012-05-17 00:22:49.119 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/AppleODClient.bundle'

    2012-05-17 00:25:09.782 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/configure.bundle'

    2012-05-17 00:25:09.916 PDT - Loaded bundle at path '/System/Library/OpenDirectory/Modules/keychain.bundle'

  • 5. Re: The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14006 occurred.
    rkovelman Level 2 Level 2 (320 points)

    Adkar,

     

    What is the status of the OD service in Server Admin?  The log files will come next.

     

    Thank you

  • 6. Re: The node /LDAPv3/127.0.0.1 couldn’t be opened because an unexpected error of type -14006 occurred.
    Michael C M Level 2 Level 2 (205 points)

    Any success fixing this issue? I have the same issue now... LDAP is running, but seems to be in a reboot loop. Password and kerberos are both not running. Same log entries above noted in this discussion.

     

    Thanks in advance!