summaryrefslogtreecommitdiffstats
path: root/source4
Commit message (Collapse)AuthorAgeFilesLines
* samba-tool: "drs options" does not need a samdb connectionAndrew Tridgell2012-11-011-1/+0
| | | | | | this gives us a handy pure RPC client test for use in blackbox testing Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-librpc: try a 2nd logon for more error casesAndrew Tridgell2012-11-011-3/+10
| | | | | | | not all servers give LOGON_FAILURE on authentication failures, so we need to do the retry with a new ticket on a wider range of error types Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-librpc: use cli_credentials_failed_kerberos_login to cope with stale ticketsAndrew Tridgell2012-11-011-1/+15
| | | | | | | This allows our RPC client code to cope with a kerberos server changing password while we have a valid service ticket Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libcli: use cli_credentials_failed_kerberos_login() to cope with server changesAndrew Tridgell2012-11-011-2/+15
| | | | | | | if a server changes while we have a valid ticket we want to retry after removing the ccache entry. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: Add samba-tool processes subcommandAndrew Bartlett2012-10-314-0/+116
| | | | | | | | | | | This will allow administrators to inspect the process list in a similar way to what running on a platform with setproctitle might permit. --pid= returns the registered server names for a PID (eg kdc, cldap_server) --name= returns the pids registered with a particular name. Andrew Bartlett
* pymessaging: Add irpc_servers_byname() and irpc_all_servers()Andrew Bartlett2012-10-312-0/+108
| | | | | | This will allow python scripts to inspect the process list. Andrew Bartlett
* pymessaging: Use the server_id IDL structure rather than a tupleAndrew Bartlett2012-10-313-7/+28
| | | | | | | This will make it easier to pass this structure in and out. The tuple is still accepted as input. Andrew Bartlett
* imessaging: Add irpc_all_servers() to list all available serversAndrew Bartlett2012-10-313-1/+85
| | | | | | | | This is implemented with a tdb_traverse_read(), and will allow a tool to disover the name and server_id of all Samba processes, as each process registers itself to recieve messages. Andrew Bartlett
* TestCaseInTempDir: Use addCleanup rather than tearDown.Jelmer Vernooij2012-10-271-2/+3
|
* source4.selftest.tests: Add FIXME about database verification.Jelmer Vernooij2012-10-271-0/+2
|
* source4.selftest.tests: Add suffix for smbclient4/nmblookup4.Jelmer Vernooij2012-10-271-16/+16
|
* selftesthelpers: Add function for printing smbtorture4 version.Jelmer Vernooij2012-10-271-2/+1
|
* selftest: Move determining of smbtorture4 options to selftesthelpers.Jelmer Vernooij2012-10-271-10/+7
|
* selftest/selftesthelpers: Share environment handling for extra smbtorture ↵Jelmer Vernooij2012-10-271-6/+6
| | | | options.
* selftesthelpers: Share code for listing smbtorture4 tests.Jelmer Vernooij2012-10-271-13/+0
|
* source4.selftest.tests: Rename plansmbtorturesuite() to plansmbtorture4suite().Jelmer Vernooij2012-10-271-60/+60
|
* source4.selftest.tests: Consistent naming of smbtorture binary.Jelmer Vernooij2012-10-271-25/+25
|
* sefltest: use TestCaseInTempDir and setUp/tearDown for posixacl.py temp fileAndrew Bartlett2012-10-271-170/+62
| | | | | | | | | | This manages the temp file more reliably, and reduces the repeated code in each test case. Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Oct 27 04:37:58 CEST 2012 on sn-devel-104
* provision: Fix comments in checksysvolaclAndrew Bartlett2012-10-271-1/+2
|
* pysmbd: Add hook for unlink() so python scripts can remove xattr.tdb entriesAndrew Bartlett2012-10-261-20/+20
| | | | | | If we do not provide a way to remove files from xattr.tdb, we can re-use the inode. Andrew Bartlett
* python-ntacls: Cope with ACL revision 4Andrew Bartlett2012-10-251-0/+2
| | | | | | | | | This is the new revision with the hash of the posix or system ACL. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 25 15:04:39 CEST 2012 on sn-devel-104
* selftest: Always unlink the tempf in posixacl testAndrew Bartlett2012-10-251-1/+4
|
* selftest: Cover the important non-Samba invalidation of the NT ACLAndrew Bartlett2012-10-251-0/+23
| | | | | | | This covers the case where we have a valid hash of the posix ACL (or the NT ACL from the POSIX ACL) and we notice it no longer matches. Andrew Bartlett
* selftest: Cover one more NT ACL invalidation case and improve commentsAndrew Bartlett2012-10-251-8/+7
| | | | | | | This tries to show the difference between the cases where we trap the POSIX ACL change and where we actually detect an OS-level change. Andrew Bartlett
* selftest: Add many more tests for our posix ACL handlingAndrew Bartlett2012-10-251-1/+236
| | | | | | | | | | | This tests the mapping of posix ACLs to NT ACLs, the invalidation of NT ACLs stored as an xattr and ensures this security-critical code continues to work in the long term. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 25 10:05:16 CEST 2012 on sn-devel-104
* dsdb-cracknames: Return DRSUAPI_DS_NAME_STATUS_NO_MAPPING when there is no SIDAndrew Bartlett2012-10-251-3/+7
| | | | | | | | | | | | If there is no SID for an object being mapped, then there is no NT4 name. We need to return DRSUAPI_DS_NAME_STATUS_NO_MAPPING rather than error out with anything other than WERR_OK as the return value. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 25 04:43:25 CEST 2012 on sn-devel-104
* s4:dns_server: fix formatting difference compared to v4-0-testStefan Metzmacher2012-10-241-1/+2
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Oct 24 10:12:51 CEST 2012 on sn-devel-104
* dsdb-cracknames: Always use talloc_zero()Andrew Bartlett2012-10-241-1/+1
| | | | | | | | | | | | Otherwise, we will return un-initialised values to the caller, which will attempt to push them onto the wire. Found by Greg Dickie <greg@justaguy.ca>. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Oct 24 05:12:04 CEST 2012 on sn-devel-104
* pyglue: Make all_interfaces argumen to interface_ips() optional.Jelmer Vernooij2012-10-211-2/+2
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Sun Oct 21 21:26:01 CEST 2012 on sn-devel-104
* pyglue: Mention parameters in interface_ips() docstring.Jelmer Vernooij2012-10-211-0/+2
|
* s3:build: move sessionid_tdb.o and conn_tdb.o to SMBD_OBJ_BASEGregor Beck2012-10-191-1/+1
| | | | | | | | and use SMBD_OBJ_BASE for a couple of targets where sessionid_tdb and conn_tdb were used. Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>
* samba-tool user test: Fix expected output.Jelmer Vernooij2012-10-191-1/+1
| | | | | Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Fri Oct 19 11:37:44 CEST 2012 on sn-devel-104
* samba.tests.docs: Ignore removed parameters.Jelmer Vernooij2012-10-191-0/+2
|
* samba.tests.docs: Assume docs are generated by waf.Jelmer Vernooij2012-10-191-2/+6
|
* samba.tests.docs: Write error output from xsltproc to standard out.Jelmer Vernooij2012-10-191-1/+1
|
* samba.tests.docs: Skip tests if xsltproc is not present.Jelmer Vernooij2012-10-191-5/+24
|
* smb.conf(5): Consistent spelling of parameter names.Jelmer Vernooij2012-10-191-3/+3
| | | | This includes spacing and casing.
* samba.tests.docs: Support spaces before synonyms.Jelmer Vernooij2012-10-191-1/+1
|
* samba.tests.docs: Support synonyms.Jelmer Vernooij2012-10-191-0/+4
|
* samba.tests.docs: Distinguish between unknown and undocumened parameters.Jelmer Vernooij2012-10-191-1/+9
|
* tests: Convert find_missing_doc into a unit test.Jelmer Vernooij2012-10-191-0/+90
|
* samba-tool user: Fix typos, improve messages.Jelmer Vernooij2012-10-181-6/+10
|
* Warn when setting UID/GID without idmap_ldb:use rfc2307 = YesAlexander Wuerstlein2012-10-181-0/+4
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 18 09:51:35 CEST 2012 on sn-devel-104
* Tests for 'samba-tool user create' with RFC2307 attributesAlexander Wuerstlein2012-10-182-8/+139
| | | | | | | | | | | | | | | | Check if attributes are correctly set and read from SamDB Test automatic creation of attributes from getpwent (NSS) Check if overriding NSS attributes works getpwent will be skipped if the current UID of the user running the tests has no passwd entry (getpwuid(geteuid())). If a user with the name of the current UID already exists in the directory, the getpwent test will fail. If that should happen, the test would need to be updated to use a nonexistent UID that is visible to the Python 'pwd' module. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Set RFC2307 attributes in samba-tool createAlexander Wuerstlein2012-10-182-3/+58
| | | | | | | | | | Optionally set RFC2307 (NIS Schema) attributes in samba-tool create. Mainly needed for UID mapping to be usable. Not all attributes are set-able, only harmless and non-overlapping ones (uid, uidNumber, gidNumber, loginShell, gecos). Description and homeDirectory should already be set, userPassword seems problematic. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* provision: No longer use the wheel group in new AD DomainsAndrew Bartlett2012-10-186-31/+29
| | | | | | | | | | | The issue here is that if we set S-1-5-32-544 (administrators) to a GID only, then users cannot force a mandetory profile to be owned by administrators (which is a requirement). There is no particularly useful reason for us to enforce this matching a system group. Andrew Bartlett
* Removed phpldapadmin inclusion for Samba 4.Ricky Nance2012-10-173-50/+0
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Oct 17 12:55:44 CEST 2012 on sn-devel-104
* dns_server: Try and use the dns-SERVER account if we were configured with itAndrew Bartlett2012-10-171-14/+47
|
* Revert "provision: Always create DNS user."Stefan Metzmacher2012-10-161-13/+18
| | | | | | | | | | | This reverts commit c2d14747d608d406de6410556807d467cd0b85ef. samba_upgradedns handles creates/removed the dns acount. See https://lists.samba.org/archive/samba-technical/2012-October/thread.html#87578 metze
* s4-dns: Fix the comments about ignoring zones in internal serverMatthieu Patou2012-10-131-1/+7
| | | | | | | Acked-By: Kai Blin <kai@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Sat Oct 13 12:37:53 CEST 2012 on sn-devel-104