Skip to content
Snippets Groups Projects
Commit 061cb789 authored by coffee's avatar coffee
Browse files

Add hack to change nxtuid env

parent 1f9ba048
No related merge requests found
......@@ -18,8 +18,8 @@ import logging
import subprocess
from squarepay import dispense
import memberdb.models
import memberdb. models
log
log = logging.getLogger('ldap')
# load config
......@@ -32,7 +32,11 @@ make_mail_cmd = 'ssh -i %s root@mooneye "/usr/local/mailman/bin/add_members" -
make_mail_key = './mooneye.key'
uid_rel_base_dn = "CN=ypservers,CN=ypServ30,CN=RpcServices,CN=System,"
maxuid_dn = "CN=uccdomayne," + uid_rel_base_dn + ldap_base_dn
# hack, FIXME
if (getattr(settings, 'ENV') == 'PROD'):
maxuid_dn = "CN=uccdomayne," + uid_rel_base_dn + ldap_base_dn
else:
maxuid_dn = "CN=vucc," + uid_rel_base_dn + ldap_base_dn
#initalise ldap instace
_ldap_inst = Connection(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment