diff options
Diffstat (limited to 'docs/source/getting_started/troubleshooting.rst')
-rw-r--r-- | docs/source/getting_started/troubleshooting.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/source/getting_started/troubleshooting.rst b/docs/source/getting_started/troubleshooting.rst new file mode 100644 index 0000000..b294efc --- /dev/null +++ b/docs/source/getting_started/troubleshooting.rst @@ -0,0 +1,16 @@ +Troubleshooting +=============== +In a python terminal:: + + import ldap + l = ldap.initialize('ldap://identity.example.gr') + l.start_tls_s() + l.simple_bind_s() + l.search_s('ou=users,dc=example,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') + |