#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from clacks.agent.objects import ObjectProxy from clacks.agent.objects.index import ObjectIndex, SCOPE_SUB # Do some searching ie = ObjectIndex() print "*" * 80 print "Create" print "*" * 80 obj = ObjectProxy(u"ou=people,dc=gonicus,dc=de", "User") obj.uid = "eike" obj.sn = u"Kunst" obj.givenName = u"Eike" obj.commit() print "*" * 80 print "Delete" print "*" * 80 obj = ObjectProxy(u"cn=Eike Kunst,ou=people,dc=gonicus,dc=de") obj.remove() print "*" * 80 print "Extend or retract" print "*" * 80