# How to config alternate dir for mongodb.conf (ldap/saslauthd)

**URL:** <https://forums.percona.com/t/how-to-config-alternate-dir-for-mongodb-conf-ldap-saslauthd/14035>\
**Category:** Percona Server for MongoDB\
**Tags:** closed-no-reply\
**Created:** [January 21, 2022, 10:24am UTC](https://forums.percona.com/t/how-to-config-alternate-dir-for-mongodb-conf-ldap-saslauthd/14035 "2022-01-21T10:24:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HannahE](https://avatars.discourse-cdn.com/v4/letter/h/e480ec/32.png) [@HannahE](https://forums.percona.com/u/HannahE)\
**Post date:** [January 21, 2022, 10:24am UTC](https://forums.percona.com/t/how-to-config-alternate-dir-for-mongodb-conf-ldap-saslauthd/14035/1 "2022-01-21T10:24:11Z")

</div>

Hello,  
im not allowed to put the mongodb.conf file into /etc/sasl2 or  
/usr/local/etc . How can i set an alternate directory for example  
under /opt ?  
recompile the saslauthd with option to set it ?

thanks in advance
