Added a net acl ds command for modification of ACLs on directory objects
authorNadezhda Ivanova <nadezhda.ivanova@postpath.com>
Tue, 16 Mar 2010 11:06:08 +0000 (13:06 +0200)
committerNadezhda Ivanova <nadezhda.ivanova@postpath.com>
Tue, 16 Mar 2010 11:37:48 +0000 (13:37 +0200)
commita212c1dedb749b98d17c67db4278d1f1bb66d468
treeff76fd7e68c2f91c4a3de65318512095c61147c8
parent4379b082b80e4976120860310259248eea09f863
Added a net acl ds command for modification of ACLs on directory objects

At present the command supports only addition of control access rigts, done
so DRS access checks can be tested. It will be expanded to deal with most
ways to modify and view a DS ACL.
Shifted commands a bit. What used to be net acl is now "net acl nt" as apposed
to this, which is "net acl ds"

./bin/net acl ds set --help
Usage: set --objectdn=objectdn --car=control right --action=[deny|allow] --trusteedn=trustee-dn

Options:
  -h, --help            show this help message and exit
  --host=HOST           LDB URL for database or target server
  --car=CAR              The access control right to allow or deny
  --action=ACTION       Deny or allow access
  --objectdn=OBJECTDN   DN of the object whose SD to modify
  --trusteedn=TRUSTEEDN
                        DN of the entity that gets access

  Samba Common Options:
    -s FILE, --configfile=FILE
                        Configuration file

  Credentials Options:
    --simple-bind-dn=DN
                        DN to use for a simple bind
    --password=PASSWORD
                        Password
    -U USERNAME, --username=USERNAME
                        Username
    -W WORKGROUP, --workgroup=WORKGROUP
                        Workgroup
    -N, --no-pass       Don't ask for a password
    -k KERBEROS, --kerberos=KERBEROS
                        Use Kerberos
librpc/idl/security.idl
source4/scripting/python/pyglue.c
source4/scripting/python/samba/__init__.py
source4/scripting/python/samba/netcmd/__init__.py
source4/scripting/python/samba/netcmd/dsacl.py [new file with mode: 0644]
source4/scripting/python/samba/netcmd/netacl.py [new file with mode: 0644]
source4/scripting/python/samba/netcmd/ntacl.py