summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-04-06lib: moved data_blob.c into samba-util-commonAndrew Tridgell2-8/+4
this avoids a duplication of the data_blob symbols some binaries (eg. smbtorture) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-04-06This reverts commit 378c4b221a6be75e1d32cb6fb3a773ce5de6dbda.Volker Lendecke1-15/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Apr 6 08:11:53 CEST 2011 on sn-devel-104
2011-04-06waf: a better way to detect duplicated symbolsAndrew Tridgell1-20/+82
this detects when we have the same symbol linked in twice in any binary by using ldd and nm on the binary and its associated libraries. Some of these duplicates are caused by a subsystem being linked twice, and some are caused by two versions of the same function name being linked into a binary Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 6 06:44:14 CEST 2011 on sn-devel-104
2011-04-06s4: Update/Set local USN only on attribute that have been modified/createdMatthieu Patou1-9/+15
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-04-06s3-selftest Add tests to show kerberos works across a password changeAndrew Bartlett5-5/+18
It is important that a machine account password change does not invalidate existing tickets. This is only for the default kerberos method with a password in secrets.tdb. The keytab based methods are still not tested. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 6 05:24:48 CEST 2011 on sn-devel-104
2011-04-06s3-librpc Fix creation of in-memory keytab for previous passwordAndrew Bartlett1-1/+1
We set the current password twice, rather than the current and old password. Andrew Bartlett
2011-04-06s3-selftest names into DNS hosts file to avoid NBT lookupsAndrew Bartlett1-0/+5
NBT lookups cause trouble and variablity in 'make test', so it's much better if we just use the fake DNS code. This code is only used by smbtorture4 at this time, but the other client tools are generally told to contact by IP address. We need to contact by name to test Kerberos, and this should make the kerberos tests much more reliable. Andrew Bartlett
2011-04-06libcli/nbt Cope with blank lines in DNS hosts fileAndrew Bartlett1-3/+3
2011-04-06docs: fix the missing parameter description section in the smb.conf manpageMichael Adam1-1/+9
The smb.conf (5) manpage recently sometimes failed to contain the contents of the description of each parameter section. The reason was a unreliable chain of dependencies in the Makefile. The error can be reproduced by touching manpages-3/smb.conf.5.xml and then building the manpages. Then smb.conf.5.xml is newer than any of the smbdotconf/*/*.xml files and hence the intermediate inexistent parameters.*.xml don't get generated. This patch fixes this problem by introducing a phony "parameters" target referencing the parameters.*.xml targets, so that they get build unconditionally. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Apr 6 01:22:00 CEST 2011 on sn-devel-104
2011-04-06packaging(RHEL-CTDB): Fix debuginfo buildsMichael Adam1-0/+38
At least on RHEL 5.5, we observed broken debuginfo packages when either old build directories were still present or old debuginfo packages (of samba) were installed. This patch removes the debuginfo samba RPMs and old RPM build directories, giving the user a 10 second chance to quit.
2011-04-06packaging(RHEL-CTDB): add BuildRequires to ctdb-devel >= 1.2.25Michael Adam1-1/+2
This should make sure we build against ctdb with SCHEDULE_FOR_DELETION control.
2011-04-06packaging(RHEL-CTDB): replace Prereq by Requires.Michael Adam1-3/+3
In RHEL6, Prereq is deprecated.
2011-04-06s3-auth: Make server_info const in create_local_token()Andrew Bartlett2-5/+5
Andreas Schneider <asn@samba.org> correctly points out that this input parameter should now be const, and that found a bug where I used then used it incorrectly as a talloc context. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 6 00:33:31 CEST 2011 on sn-devel-104
2011-04-05kdc: always ldb escape the realmAndrew Bartlett1-1/+11
2011-04-05auth: Move auth_session_info into IDLAndrew Bartlett15-138/+231
This changes auth_session_info_transport to just be a wrapper, rather than a copy that has to be kept in sync. As auth_session_info was already wrapped in python, this required changes to the existing pyauth wrapper and it's users. Andrew Bartlett
2011-04-05s4-auth: Always talloc_zero() the struct auth_session_infoAndrew Bartlett1-1/+1
2011-04-05pidl: Add support for the [ignore] propertyAndrew Bartlett1-9/+22
This is implemented to simply never push this pointer, but to push a NULL in it's place. Likewise a pull will simply return a NULL. Andrew Bartlett
2011-04-05librpc/idl Add [nopython] to krb5pac ndrdump functionsAndrew Bartlett1-5/+5
These functions are not real RPC functions, but are used to help ndrdump operate. They don't need python bindings. Andrew Bartlett
2011-04-05Fix bug #7080 - Quota only shown when logged as root.Jeremy Allison3-7/+6
Remove the final incorrect uses of conn->session_info->utok.uid. When we're in the "admin users" list, then this value is not set to zero. Inspired by the comment on this bug by Dmitry Butskoy <dmitry@butskoy.name>. I'll create a different fix for 3.5.x. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Apr 5 21:53:59 CEST 2011 on sn-devel-104
2011-04-05s3: Add maintainers for s3/authVolker Lendecke1-0/+15
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 5 19:09:14 CEST 2011 on sn-devel-104
2011-04-05s3/vfs_gpfs: s/syncops/gpfsBjörn Jacke1-1/+1
as pointed out by Metze in bug #8031 Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Apr 5 18:08:42 CEST 2011 on sn-devel-104
2011-04-05s3-waf: fix typo in ctdb checks.Günther Deschner1-1/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 5 17:20:19 CEST 2011 on sn-devel-104
2011-04-05s3: Make vlp printing work by defaultVolker Lendecke1-8/+55
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 5 13:12:14 CEST 2011 on sn-devel-104
2011-04-05s3: Fix print_spool_endVolker Lendecke1-12/+0
We have to use the spoolss pipe instance opened in print_spool_open, otherwise the spoolss server won't be able to find the right printer and job.
2011-04-05s4 samba-tool: Implement "testparm" commandKai Blin2-0/+208
This is a port of the existing "testparm" python script to a samba-tool command. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Apr 5 07:49:13 CEST 2011 on sn-devel-104
2011-04-04s3-selftest Look only under source3 for smb.conf filesAndrew Bartlett1-1/+1
This test looks for any .conf file with [global] in it, and assumes it's a Samba3 format smb.conf file. If 'make test' has been run in the top level build, it was finding the smb.conf files it generated. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 4 23:50:06 CEST 2011 on sn-devel-104
2011-04-05s3-auth Rename user_session_key -> session_key to match auth_session_infoAndrew Bartlett13-47/+47
2011-04-05s3-auth use create_local_token() to transform server_info -> session_infoAndrew Bartlett9-183/+193
Before a auth_serversupplied_info struct can be used for authorization, the local groups and privileges must be calculated. create_local_token() now copies the server_info, and then sets the calulated token and unix groups. Soon, it will also transform the result into an expanded struct auth_session_info. Until then, the variable name (server_info vs session_info provides a clue to the developer about what information has been entered in the structure). By moving the calls to create_local_token within the codebase, we remove duplication, and ensure that the session key (where modified) is consistently copied into the new structure. Andrew Bartlett
2011-04-04Move SET_STAT_INVALID call added by Volker as fix for bug 8042 - Newly ↵Jeremy Allison1-3/+3
create files are always failed with NT_STATUS_FILE_IS_A_DIRECTORY Ensure we do this for all cases where the stat fails. Jeremy Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 4 20:08:45 CEST 2011 on sn-devel-104
2011-04-04Note that check_parent_exists() doesn't change the contents of smb_fname ↵Jeremy Allison1-1/+1
(add const).
2011-04-04s3-net: add command "net idmap check"Gregor Beck7-3/+1109
This is a tool to check the consistency of an idmap tdb database. The default mode is to scan the database and list invalid entries, e.g. records with an invalid format, or records which are valid but for which the reverse mapping entry is missing. With the "--repair" switch, one can enter an interactive repair mode which will prompt for each invalid entry found with the option to delete, skip or edit the record. There is also a non-interactive repair mode triggered by "--auto" which will remove all records with invalid content and fill up mappings which are missing the reverse entry. The "--test" parameter lets "net idmap check" only list the changes that would be written and not actually commit them to the database. The "--lock" option allows to lock the database already in the first reading traverse, in order to remove the race when the database has to be closed and reopened again before writing the changes. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Apr 4 18:21:09 CEST 2011 on sn-devel-104
2011-04-04s3: add function srprs_quoted to parse strings written with cbuf_print_quotedGregor Beck2-1/+52
2011-04-04s3: add function cbuf_print_quotedGregor Beck2-1/+49
2011-04-04s3: add function dbwrap_traverseGregor Beck2-0/+12
2011-04-04s3: add function dbwrap_trans_traverseGregor Beck2-0/+33
2011-04-04s3: fix cbuf_swapptrGregor Beck1-0/+2
2011-04-04s3:idmap_tdb2: fix build of tdb2Michael Adam1-0/+1
The include of system/filesys.h was removed from includes.h. ...
2011-04-04s3-rpc_server Remove comment, yes the key is correct.Andrew Bartlett1-2/+0
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Apr 4 13:31:52 CEST 2011 on sn-devel-104
2011-04-04s3-auth consolidate create_local_token() into make_server_info_krb5()Andrew Bartlett6-51/+19
This ensures that all callers don't need to each add builtin groups and privileges to the user's token Andrew Bartlett
2011-04-04s3-selftest Remove more instances of /tmp in test_smbclient_s3.shAndrew Bartlett1-4/+4
2011-04-04s3-selftest Add testing of kerberos loginAndrew Bartlett4-4/+80
This uses a pre-calculated credentials cache, that should be valid until 2036. Andrew Bartlett
2011-04-04s4-credentials Add a command line hook to set the kerberos credentials cacheAndrew Bartlett1-1/+13
This allows this to be specified independent of the KRB5CCNAME environment variable (in this case, it's harder than it should be to set up in the make test for s3 that way). Andrew Bartlett
2011-04-04s3-selftest Disable log rotation in 'make test'Andrew Bartlett1-0/+1
2011-04-04talloc - some documentation changesMatthias Dieter Wallnöfer2-53/+48
- Fix some typos - Document better the differences in the behaviour between talloc 1.X and 2.X. Previously this seemed a bit spongy to me. Reviewed-by: Jelmer + Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Apr 4 11:05:42 CEST 2011 on sn-devel-104
2011-04-04s4-dsdb: implemented creation of conflict recordsAndrew Tridgell1-48/+356
when a record with the same DN gets created on two DCs at the same time, this creates a replication conflict. To resolve this conflict one of the DCs needs to create a conflict record, which is a rename of one of the two DNs, based on which one is newer. This prevents replication from failing when DCs are temporarily disconnected and then have conflicts when they next replicate Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Apr 4 03:27:07 CEST 2011 on sn-devel-104
2011-04-04s4-samba-tool: give a bit better error on user delete failureAndrew Tridgell1-1/+5
2011-04-04s4-rpc: improved error mapping for several RPC server callsAndrew Tridgell4-26/+22
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-04-04s4-dsdb: added a ldb err -> NTSTATUS mappingAndrew Tridgell1-0/+78
this is not perfect, but its better than always giving NT_STATUS_UNSUCCESSFUL in our RPC servers Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-04-04s4-krb5: be a bit less verbose about krb5 packetsAndrew Tridgell1-1/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-04-04s4-loadparm: be a bit less verbose about smb.conf processingAndrew Tridgell1-2/+2
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>