We have Sage 6.7 installed and are successfully using LDAP authentication 
for logins, however we would like to restrict access to a specific 
department.  In our case the filter would be 'department=Math', so the 
login query would need to be something like 
(&(uid=username)(department=Math))

I've been poking around in 
local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/auth.py
 
and added the following under _ldap_search:
query = "(&(" + query + ")(department=Math))"

I generated a new auth.pyc, but this doesn't seem to change which accounts 
can log in.  I'm not sure if I'm just in the wrong bit of code, or I'm 
doing something else wrong (I'm not familiar with python).  Could someone 
possibly point me to the correct file and perhaps provide an example of 
including a filter to limit the allowed users?

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to