summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd
AgeCommit message (Collapse)AuthorFilesLines
2010-11-06samba-tool: deprecate samba-tool vampire commandAndrew Tridgell1-1/+5
2010-11-05s4-join: added DC join to the python join codeAndrew Tridgell1-8/+8
this will replace the old vampire code
2010-11-05s4-pydrs: added rodc option to python drs replicationAndrew Tridgell1-1/+1
2010-09-25s4-net: added --ipaddress option to net commandsAndrew Tridgell5-6/+6
this allows override of server IP address, bypassing NBT or DNS name resolution of DCs Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2010-09-15s4-finddc: use NBT lookup for a 1C name if joining a short domain nameAndrew Tridgell1-3/+0
once we get the 1C lookup reply, use a CLDAP query to find the details for the server Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-15s4-join: give a clear error when using short domain formAndrew Tridgell1-1/+4
we now require the full domain name, for the DNS/CLDAP lookup Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-12s4:fsmo.py - fix an obvious typoMatthias Dieter Wallnöfer1-1/+1
2010-09-09s4-rodc: get the domain name from the partitions DNAndrew Tridgell1-1/+1
don't rely on the netbios domain name being the first part of the realm Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-02s4-net: use CommandError() in net rodcAndrew Tridgell1-4/+4
this integrates better with the net command Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-08-26s4-net: fixed docstring on spn commandAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-26s4-net: added "net rodc preload" commandAndrew Tridgell2-0/+125
this command will preload the credentials for an account from the full domain controller Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23s4-net: role should be case insensitive for joinAndrew Tridgell1-1/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23s4-net: added initial implemention of RODC joinAndrew Tridgell1-6/+22
This does the join using python code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23s4-net: moved the net join command to pythonAndrew Tridgell2-2/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-22s4-net: better error message on net setpasswordAndrew Tridgell1-3/+5
2010-08-17s4-net: use an encrypted ldap session when setting passwordsAndrew Tridgell1-0/+3
this allows for "net setpassword -H ldap://server -Uusername%password USERNAME" to set a password remotely on a windows DC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-07-10s4 net: Add spn module to list/add/remove spn on objectsMatthieu Patou2-0/+219
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-07-03s4:pwsettings net utility - change also here the "minPwdAge" to be the real ↵Matthias Dieter Wallnöfer1-2/+2
default Which is one day.
2010-06-24s4-python: python is not always in /usr/binAndrew Tridgell18-18/+18
Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-23s4:net Remove warnings for 2000 native mode and Samba4.Andrew Bartlett1-5/+5
We now support 2000 native mode, and so we just need to warn about mixed mode. Andrew Bartlett
2010-06-23libds:common Remove DS_DC_* domain functionality flagsAndrew Bartlett1-9/+5
These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other. Just make them one set. Andrew Bartlett
2010-06-20Modifications extending functionality of newuser cmd and new net group set ↵Lukasz Zalewski1-1/+5
of commands for group related operations on ldb Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Modifications extending functionality of newuser cmd and new net group set ↵Lukasz Zalewski3-2/+224
of commands for group related operations on ldb Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-05-19pynet: Raise proper exceptions rather than invoking sys.exit.Jelmer Vernooij2-8/+6
2010-05-14s4:net domainlevel tool - fix up the error handling as Jelmer suggestedMatthias Dieter Wallnöfer1-2/+4
Sorry, I've copied this from the "ldap.py" test and thought it would work.
2010-05-13s4:domainlevel - handle exceptions more preciselyMatthias Dieter Wallnöfer1-2/+2
LDB_ERR_UNWILLING_TO_PERFORM should be the right error code when the "msDS-Behavior-Version" was already raised by the first change as it is on Windows Server. When s4 itself does implement this trigger then we don't need to do the second write operation anymore (they're kept in sync).
2010-05-13s4:domainlevel.py - update the script to handle both domain level ↵Matthias Dieter Wallnöfer1-0/+25
occourrences on s4 The second "modify" is located under a try-catch block to ignore the change failure against Windows Server (there only the first change is required).
2010-05-09s4:net utility - make outprinted description comments more consistentMatthias Dieter Wallnöfer13-14/+14
I've added a [server connection needed] when commands won't work on the local SamDB.
2010-05-09s4:net utility - remove unixname parameter of samdb.newuserMatthias Dieter Wallnöfer1-9/+4
We don't handle the id mapping stuff manually anymore.
2010-05-09s4:net utility - add an optional password attribute to "net user add"Matthias Dieter Wallnöfer1-3/+5
To make it behave similar to "net newuser".
2010-04-20s4-net: don't show a full python exception when you can't open sam.ldbAndrew Tridgell1-2/+2
2010-04-16s4-net: nicer error message (and no exception)Andrew Tridgell2-5/+17
in net newuser and net setpasswd we shouldn't be throwing python exceptions on normal user errors like unknown user Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-12s4-net: Add definition of outf.Jelmer Vernooij1-0/+2
2010-04-09s4-net: Cope with options without arguments.Jelmer Vernooij1-1/+2
2010-04-09s4-net: 'net user create' -> 'net user add', for backwards compatibility.Jelmer Vernooij1-3/+3
2010-04-09s4-net: Convert machinepw command to python.Jelmer Vernooij4-63/+114
2010-04-09s4-net: Convert vampire command over to Python.Jelmer Vernooij2-0/+117
2010-04-09s4-net: Convert user subcommand to Python.Jelmer Vernooij2-0/+76
2010-04-08s4-net: Convert 'net time' to python.Jelmer Vernooij2-0/+47
2010-04-08net: Convert time command to python.Jelmer Vernooij1-1/+1
2010-04-08s4-net: Use new Net() object in net export keytab.Jelmer Vernooij1-2/+2
2010-04-08s4-python: Fix formatting, use standard convention to call instance methods.Jelmer Vernooij4-16/+16
2010-04-08s4-python: More cleanups.Jelmer Vernooij1-1/+2
2010-04-08s4-python: Simplify code, improve formatting.Jelmer Vernooij2-8/+15
2010-04-08Migrate 'net export keytab' to python.Jelmer Vernooij2-0/+59
2010-04-08s4-net: Simplify SamDB connect code.Jelmer Vernooij8-49/+10
2010-04-07s4-samdb: Allow skipping global schema.Jelmer Vernooij1-1/+1
2010-04-04s4-python: Move dsdb constants to a separate python module.Jelmer Vernooij1-1/+1
2010-04-03s4-python: Remove duplicate definition of GUID_DRS_* constants.Jelmer Vernooij2-12/+10
2010-03-16Added a net acl ds command for modification of ACLs on directory objectsNadezhda Ivanova4-2/+212
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