summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4-provision: fixed eadb automatic and manual setting in provisionAndrew Tridgell2010-11-262-17/+16
| | | | | | we should not set posix:eadb in lp in the acl native test code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: don't try to look for an IPv6 address when not specifiedAndrew Tridgell2010-11-261-11/+0
| | | | | | | | the getaddrinfo() method of finding an IPv6 address is incorrect. We could do it via the Samba interfaces code, but until we have that it is better to not try to auto-detect IPv6 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-tests: Modified create_ou to only accept security.descriptor type for sd ↵Nadezhda Ivanova2010-11-251-9/+3
| | | | | | | | | to avoid confusion It used to work with sddl as well, but this is confusing and could lead to errors. It also caused a message about tallocing a security descriptor to appear. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Thu Nov 25 19:46:42 CET 2010 on sn-devel-104
* s4-dsdb: Switched to using a dictionary in create_ou for consistency.Nadezhda Ivanova2010-11-251-4/+2
| | | | | Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Thu Nov 25 14:12:52 CET 2010 on sn-devel-104
* s4-dsdb: Fixed wrong assignment of name attribute to description atribute in ↵Nadezhda Ivanova2010-11-251-1/+1
| | | | create_ou.
* s4-tests: Added a common definition of delete_force.Nadezhda Ivanova2010-11-251-0/+6
|
* s4-dsdb: Extended samdb.newgroup to set the group's security descriptor.Nadezhda Ivanova2010-11-241-1/+5
|
* s4-dsdb: Changed filter to find the account of a user by samAccountNameNadezhda Ivanova2010-11-231-2/+1
| | | | | | In newuser, a filter by dn was given to setpassword to find the account whose password is to be reset. It appears however that if given filter of type (dn=CN=smth) Windows fails to return the entry, and the tests that use newuser fail against it. Changed to use samAccountName instead.
* s4-dsdb: Extended samdb.newuser to accept security descriptor for the object ↵Nadezhda Ivanova2010-11-231-3/+9
| | | | | | | | | | and optionally skip password reset Sometimes for testing purposes we create users without any permissions on their objects and password reset cannot be performed at that point, and is not necessary. For this purpose we can now optionally skip this step. The default is still to reset the user password. Also, a security.descriptor object can be specified during the user creation to override using the default one. defaultSecurityDescriptor is still used by default.
* s4-dsdb: Added a python method to SamDB for creating organizationalUnitsNadezhda Ivanova2010-11-231-1/+29
|
* s4-dsdb: Added python helpers for getting and seting dSHeuristics to SamDBNadezhda Ivanova2010-11-231-0/+24
|
* s4-dsdb: Added a helper to python SamDB for retrieving and setting minPwdAge.Nadezhda Ivanova2010-11-221-0/+15
|
* s4-tests: Wrap connect_samdb() into a connect_samdb_ex() helperKamen Mazdrashki2010-11-221-0/+18
| | | | | Thus caller will be able to connect to SamDB and fetch RootDSE info in a single step
* s4-samba.tests: Explicitly pass LoadParm() instance to system_session() functionKamen Mazdrashki2010-11-221-1/+1
| | | | | | Otherwise system_session() creates a LoadParm() instance wich resets certain params to their defaults from smb.conf ("log level" for instance)
* s4-rodc: enable the DRS_GET_ALL_GROUP_MEMBERSHIP flag for RODC replicationAndrew Tridgell2010-11-181-1/+2
| | | | see the description of this flag in [MS-DRSR]
* s4-join: initially disable the machine accountAndrew Tridgell2010-11-181-1/+8
| | | | enable after a password is set
* s4-drs: fixed a typoAndrew Tridgell2010-11-181-1/+1
|
* s4-samdb.py: Use ldb.get_default_basedn() to avoid RootDSE searchKamen Mazdrashki2010-11-181-6/+1
|
* s4-provision: don't test for xattrs if posix:eadb is setAndrew Tridgell2010-11-171-0/+1
| | | | | when it is set in smb.conf or on the command line, obey the setting and don't try to test for system xattr support
* s4-provision: setup posix:eadb using lp.set()Andrew Tridgell2010-11-171-5/+2
| | | | | this allows it to override a setting made during the automatic testing of xattr support
* s4-provision: add log messages about IP lookupAndrew Tridgell2010-11-171-0/+2
| | | | | the IPv6 lookup can be very slow if a DNS server in the search list is unavailable. It's good to let the user know what its doing.
* s4-join: fixed join to w2k3Andrew Tridgell2010-11-171-1/+1
| | | | w2k3 does need msDS-Behavior-Version
* s4-join: show a reasonable error on DsAddEntry() failingAndrew Tridgell2010-11-171-1/+6
| | | | DsAddEntry() gives errors in a reply container
* s4-join: enable NDR printing at debug levels >= 5Andrew Tridgell2010-11-171-2/+9
| | | | this is handy for debugging joins
* samba-tool pwsettings Allow setting 'store cleartext'Andrew Bartlett2010-11-161-2/+17
| | | | | | This allows the 'store cleartext' password policy flag to be (un)set. Andrew Bartlett
* s4-join: not all versions of w2003 have msDS-SupportedEncryptionTypesAndrew Tridgell2010-11-151-2/+4
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 15 22:28:16 UTC 2010 on sn-devel-104
* python: use the ldbMessage + modify notation instead of modify_ldif that we ↵Matthieu Patou2010-11-121-7/+6
| | | | try to avoid
* unit tests: add testing for dns account password changeMatthieu Patou2010-11-121-0/+4
|
* upgradeprovision: fix pb with dns-hostname, regenerate a correct keytabMatthieu Patou2010-11-121-0/+48
|
* s4-provision UTF16 encode the password in sam.ldb, not secrets.ldbAndrew Bartlett2010-11-111-2/+2
| | | | | | | | | | The password in secrets.ldb is UTF8, while clearTextPassword in sam.ldb is UTF16. This corrects commit bd5039546e520b6d6897a658bc0a358f0511f7c7, which had these the wrong way around. Andrew Bartlett
* s4:upgradehelpers.py - use "clearTextPassword" rather than "userPassword"Matthias Dieter Wallnöfer2010-11-111-5/+8
| | | | It's the default internal s4 password change attribute
* s4-provision: include command line provision options in the generated smb.confAndrew Tridgell2010-11-111-11/+22
| | | | | | | | this saves the smb.conf using lp.dump_globals() to ensure that any command line options (for example directory overrides) are saved in the generated smb.conf Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-join: use the command line loadparm in provision during a joinAndrew Tridgell2010-11-112-9/+13
| | | | | | | this allows a join with an empty smb.conf to override locations of files correctly with --option Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-join: raise mininum password length to 32 in new join codeAndrew Tridgell2010-11-101-1/+1
|
* s4:provision.py - strip trailing whitespacesMatthias Dieter Wallnöfer2010-11-091-106/+106
|
* s4:provision - switch to "clearTextPassword" for setting passwordsMatthias Dieter Wallnöfer2010-11-091-4/+4
| | | | | | | This is the default password set/change attribute for s4 specific purposes (otherwise in respect to Windows it's "unicodePwd"). We move away from "userPassword" since on Windows it's not activated by default - and s4 will follow soon.
* s4-pydrs: validate the DsGetNCChanges responseAndrew Tridgell2010-11-081-0/+2
| | | | check that object_count matches up with first_object
* s4-join: modify join behaviour according to domain levelAndrew Tridgell2010-11-072-41/+110
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Nov 7 23:32:16 UTC 2010 on sn-devel-104
* s4-drs: allow override of the replica_flagsAndrew Tridgell2010-11-071-2/+7
|
* s4-join: fixed SPNs, invocationId and dnshostname and python joinAndrew Tridgell2010-11-061-3/+4
| | | | | | | | - we need the GN/ SPN for replication. - fixed the string form of the invocationId - lowercase the dnshostname Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: deprecate samba-tool vampire commandAndrew Tridgell2010-11-061-1/+5
|
* s4-join: fixed secure_channel_typeAndrew Tridgell2010-11-051-1/+3
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Nov 5 13:24:32 UTC 2010 on sn-devel-104
* s4-join: don't print all the NDR packets by defaultAndrew Tridgell2010-11-051-1/+1
|
* s4-join: added DC join to the python join codeAndrew Tridgell2010-11-052-152/+282
| | | | this will replace the old vampire code
* s4-pydrs: added rodc option to python drs replicationAndrew Tridgell2010-11-052-5/+6
|
* s4-pydsdb: added DsReplicaAttribute()Andrew Tridgell2010-11-051-0/+3
| | | | this allows us to form a DsReplicaAttribute structure from python
* talloc: Add python talloc module, move convenience functions to it.Jelmer Vernooij2010-11-055-62/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Nov 5 02:48:21 UTC 2010 on sn-devel-104
* provision: Look for in source setup data first, in case an older versionJelmer Vernooij2010-11-031-16/+28
| | | | of samba 4 is installed in the system.
* samba: Make in_source_tree() public.Jelmer Vernooij2010-11-031-3/+3
|
* s4:provision - adapt the "provision" so that SIDs are only set on entry creationMatthias Dieter Wallnöfer2010-11-011-8/+4
| | | | SID modifications are denied.