from samba import dsdb
from operator import attrgetter
+
class cmd_rename(Command):
"""Rename an organizational unit.
self.outf.write('Renamed ou "%s" to "%s"\n' % (full_old_ou_dn,
full_new_ou_dn))
+
class cmd_move(Command):
"""Move an organizational unit.
self.outf.write('Moved ou "%s" into "%s"\n' %
(full_old_ou_dn, full_new_parent_dn))
+
class cmd_create(Command):
"""Create an organizational unit.
self.outf.write('Created ou "%s"\n' % full_ou_dn)
+
class cmd_listobjects(Command):
"""List all objects in an organizational unit.
raise CommandError('Failed to list contents of ou "%s"' %
full_ou_dn, e)
+
class cmd_list(Command):
"""List all organizational units.
msg.dn.remove_base_components(len(domain_dn))
self.outf.write("%s\n" % str(msg.dn))
+
class cmd_delete(Command):
"""Delete an organizational unit.