Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have recently started using ejabberd and I am setting up the ldap module. There is a line {ldap_password, "secret"}. Where it is asking for my ldap password in plain text is there a way of hiding this like putting it in another file then linking. I don't feel comfortable just putting my ldap password in there.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Typically you ensure that:

  • the config file is not visible by anyone but ejabberd (and root)
  • ejabberd has its own credentials for LDAP, which can even be limited to only doing what ejabberd needs to do

A separate file provides no more security than above.

Having a dedicated LDAP user/password for ejabberd means that even if a compromise does happen, you can reset the password and only affect one service. If you do see some random connection in LDAP, it's also a good and simple way to figure out WHAT was compromised.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.