Results 1 to 9 of 9

Thread: missing ldap.conf from /etc/

  1. #1
    Join Date
    Feb 2016
    Beans
    6

    missing ldap.conf from /etc/

    Hi, I'm new here. Recently, at my work place we have encountered a problem where the file "ldap.conf" mysteriously missing from "/etc/" which make some users unable to log in. To solve this, we just copy "ldap.conf" from "/etc/ldap/ldap.conf" to "/etc/".

    However, after some time the file keeps disappearing. I was wondering if you know what the cause of the disappearing file and how to solve this.

    Thank you.

    Best regards,

  2. #2
    Join Date
    Jul 2007
    Location
    Tāmaki Makau-rau, NZ
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: missing ldap.conf from /etc/

    Thread moved to General Help.
    BACKUPS are unsexy — until you discover you should have done one yesterday.
    Spare your nerves and do one before you upgrade or install.

  3. #3
    Join Date
    Feb 2016
    Beans
    6

    Re: missing ldap.conf from /etc/

    Thank you for moving the thread. Hopefully, someone can help me with this issue.

  4. #4
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: missing ldap.conf from /etc/

    Hi

    Is it disappearing right after an update ?

    Is there some package conflict that's removing the file ?

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  5. #5
    Join Date
    Feb 2016
    Beans
    6

    Re: missing ldap.conf from /etc/

    Hello,

    thank you for asking.

    There is no update involve, the file just gone missing randomly.

    I am not sure whether there is any package conflict because the file was able to stay there for quite sometime before it went missing.

    We have been having this problem for quite sometime but we were not able to find out what actually causing the missing file.

    thank you. best regards

  6. #6
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: missing ldap.conf from /etc/

    Hi

    No update ? That's odd.

    Some thoughts.

    You could make the file immutable but that may cause you problems when ldap is updated.

    Code:
    sudo chattr +i /etc/ldap/ldap.conf
    I think what i would personally look into is the package auditd. Try to work out which process and user is deleting the file (as something obviously is).

    Code:
    sudo apt-get install auditd
    Set up a syscall watch along the lines of (this is an example only)

    Code:
    sudo auditctl -a exit,always -Farch=b64 -S unlink -S unlinkat -k "file-deleted"
    Change arch=b64 to arch=b32 if you are using 32bit, or add both rules for a mixed environment.

    This will log *all* deleted files.

    After the file has been deleted, use ausearch to find out what happened to that file (someting along the lines of..).

    Code:
    sudo ausearch -k file-deleted -f ldap.conf
    You'll need to do some reading up on auditd as it's pretty powerful, has many options and i may have got the instructions above wrong. It's been ages since i looked into auditd so please make sure you read up yourself.

    Please post back on how you get on.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  7. #7
    Join Date
    Feb 2016
    Beans
    6

    Re: missing ldap.conf from /etc/

    Thank you very much. I will check with your instruction.

  8. #8
    Join Date
    Feb 2016
    Beans
    6

    Re: missing ldap.conf from /etc/

    Hello,

    So after installing auditd, the ldap.conf never went missing. However, the content of the ldap.conf file were seen to be modified without any records of modification.

    This is really weird, This happens only to a set of Laptops (Dell Latitude 3330). We have other another set (Dell Latitude 3340) which never had such problem, could it be problem with hardware?

  9. #9
    Join Date
    Feb 2016
    Beans
    6

    Re: missing ldap.conf from /etc/

    I have given up, it's probably because of the laptops model.

    We decided to use "rsync -az /etc/ldap/ldap.conf /etc/" in one of our startup files so that every time the computers start, the file is automatically copied into the folder.

    Thank you very much for giving us option.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •