Okupy/Troubleshooting

From Gentoo Wiki
< Okupy
Jump to:navigation Jump to:search
This article has been flagged for not conforming to the wiki guidelines. Please help Gentoo out by starting fixing things.

LDAP connection

In a python terminal:

import ldap
l = ldap.initialize('ldap://evidence.tampakrap.gr')
l.start_tls_s()
l.simple_bind_s()
l.search_s('ou=users,dc=tampakrap,dc=gr', ldap.SCOPE_SUBTREE)

In a ./manage.py shell terminal:

from okupy.accounts.models import LDAPUser
users = LDAPUser.objects.all()
wolverine = LDAPUser.objects.get(username='wolverine')