obnox/samba/samba-obnox.git
16 years agodsgetdcname: remove invalid assumption in discover_dc_dns().
Günther Deschner [Wed, 7 May 2008 19:02:50 +0000 (21:02 +0200)]
dsgetdcname: remove invalid assumption in discover_dc_dns().

Guenther
(This used to be commit f48b2e844b673e99c84cb24f3c3718352ab93ce5)

16 years agodsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.
Günther Deschner [Wed, 7 May 2008 16:57:43 +0000 (18:57 +0200)]
dsgetdcname: mailslot replies are identical to the cldap ones, use cldap everywhere.

Guenther
(This used to be commit fe904ee77a7fec1674e9db660978c40c17897f77)

16 years agodsgetdcname: wait a little longer for mailslot replies.
Günther Deschner [Wed, 7 May 2008 16:55:45 +0000 (18:55 +0200)]
dsgetdcname: wait a little longer for mailslot replies.

Guenther
(This used to be commit bc0d7a90dcc7bf702b24feb16abf4634ff178671)

16 years agodsgetdcname: map additional flags to nt_version.
Günther Deschner [Wed, 7 May 2008 16:39:24 +0000 (18:39 +0200)]
dsgetdcname: map additional flags to nt_version.

Guenther
(This used to be commit 1009123b8600e6ccebe180f4a2f87c217638fef8)

16 years agodsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.
Günther Deschner [Wed, 7 May 2008 16:38:37 +0000 (18:38 +0200)]
dsgetdcname: use make_dc_info_from_cldap_reply() for cldap replies.

Guenther
(This used to be commit a3e5b073f0474543ca74b40775ce1d7f80719c96)

16 years agodsgetdcname: add make_dc_info_from_cldap_reply().
Günther Deschner [Wed, 7 May 2008 16:36:03 +0000 (18:36 +0200)]
dsgetdcname: add make_dc_info_from_cldap_reply().

Guenther
(This used to be commit 9db2e50a20caabaf90ce03203a066ddd7820d33a)

16 years agodsgetdcname: add get_cldap_reply_server_flags().
Günther Deschner [Wed, 7 May 2008 14:49:39 +0000 (16:49 +0200)]
dsgetdcname: add get_cldap_reply_server_flags().

Guenther
(This used to be commit 3c05c56d4c0aac8106684cda3152c65299c63075)

16 years agocldap: let ads_cldap_netlogon() return all possible cldap replies.
Günther Deschner [Wed, 7 May 2008 13:49:09 +0000 (15:49 +0200)]
cldap: let ads_cldap_netlogon() return all possible cldap replies.

Guenther
(This used to be commit 6f9d5e1cc94bc90685b54c04622b8f3357bd2f69)

16 years agodsgetdcname: add pull_mailslot_cldap_reply().
Günther Deschner [Wed, 7 May 2008 13:21:41 +0000 (15:21 +0200)]
dsgetdcname: add pull_mailslot_cldap_reply().

Guenther
(This used to be commit 95fb01d8702342265f8837a368dc42f4a4d394d5)

16 years agodsgetdcname: add map_ds_flags_to_nt_version.
Günther Deschner [Wed, 7 May 2008 12:38:35 +0000 (14:38 +0200)]
dsgetdcname: add map_ds_flags_to_nt_version.

Guenther
(This used to be commit 1809ea22c31ee28e109f49701f91534177027165)

16 years agoFix bug #5452 - smbclient put always creates zero length
Jeremy Allison [Fri, 9 May 2008 05:07:35 +0000 (22:07 -0700)]
Fix bug #5452 - smbclient put always creates zero length
files. Thanks to Kai Engert <kengert@redhat.com> for
reporting.
Jeremy.
(This used to be commit 687275cd532f8f8ad710acd222a0c76625da53c6)

16 years agoYay ! Remove a VFS entry. Removed the set_nt_acl() call,
Jeremy Allison [Fri, 9 May 2008 01:09:07 +0000 (18:09 -0700)]
Yay ! Remove a VFS entry. Removed the set_nt_acl() call,
this can only be done via fset_nt_acl() using an open
file/directory handle. I'd like to do the same with
get_nt_acl() but am concerned about efficiency
problems with "hide unreadable/hide unwritable" when
doing a directory listing (this would mean opening
every file in the dir on list).
Moving closer to rationalizing the ACL model and
maybe moving the POSIX calls into a posix_acl VFS
module rather than having them as first class citizens
of the VFS.
Jeremy.
(This used to be commit f487f742cb903a06fbf2be006ddc9ce9063339ed)

16 years agoregistry: add removal of secdesc of a key to regdb_store_keys().
Michael Adam [Thu, 8 May 2008 16:08:41 +0000 (18:08 +0200)]
registry: add removal of secdesc of a key to regdb_store_keys().

Michael
(This used to be commit a01d8fe5e89ca9620d23198b11e5ae605a97e5a6)

16 years agoregistry: add comments to removing lists in regdb_store_keys().
Michael Adam [Thu, 8 May 2008 16:05:58 +0000 (18:05 +0200)]
registry: add comments to removing lists in regdb_store_keys().

Michael
(This used to be commit 3e89217e7edea5d7ec707de065d38b1921ed09af)

16 years agoregistry: change order of deleting value and subkey lists in store_keys().
Michael Adam [Thu, 8 May 2008 15:59:32 +0000 (17:59 +0200)]
registry: change order of deleting value and subkey lists in store_keys().

Next step in the plan to make store_keys safer without transactions.

Michael
(This used to be commit f7c8718dead63964481954a86427b8c05d15452c)

16 years agoregistry: adapt comment to first step in regdb_store_keys().
Michael Adam [Thu, 8 May 2008 14:55:14 +0000 (16:55 +0200)]
registry: adapt comment to first step in regdb_store_keys().

Michael
(This used to be commit 97592db08a109ffbea8c85b17686fa565c5cf8c9)

16 years agoregistry: adapt comment of last step in regdb_store_keys().
Michael Adam [Thu, 8 May 2008 14:32:51 +0000 (16:32 +0200)]
registry: adapt comment of last step in regdb_store_keys().

adding number (3) ....

Michael
(This used to be commit a03a17365d64f7fe83a9f2e866c4f069a1dd1682)

16 years agoregistry: regdb_store_keys: move storing the subkey list down after removing values.
Michael Adam [Thu, 8 May 2008 12:33:02 +0000 (14:33 +0200)]
registry: regdb_store_keys: move storing the subkey list down after removing values.

Michael
(This used to be commit 986030cdda828f7f87c5464d1837324b7033e27e)

16 years agoregistry: add comment explaining workflow to make store_keys safe w/o transactions
Michael Adam [Tue, 6 May 2008 08:06:34 +0000 (10:06 +0200)]
registry: add comment explaining workflow to make store_keys safe w/o transactions

/*
 * Make the store operation as safe as possible without transactions:
 *
 * (1) For each subkey removed from ctr compared with old_subkeys:
 *
 *     (a) First delete the value db entry.
 *
 *     (b) Next delete the secdesc db record.
 *
 *     (c) Then delete the subkey list entry.
 *
 * (2) Now write the list of subkeys of the parent key,
 *     deleting removed entries and adding new ones.
 *
 * (3) Finally create the subkey list entries for the added keys.
 *
 * This way if we crash half-way in between deleting the subkeys
 * and storing the parent's list of subkeys, no old data can pop up
 * out of the blue when re-adding keys later on.
 */

The workflow is going to be modified to meet this agendain the next commits.

Michael
(This used to be commit 55dd9bdd148fc942e15aacfe9f6b38b1a5c53158)

16 years agoregistry: check for existence of non base key in regdb_store_keys() before proceeding.
Michael Adam [Wed, 7 May 2008 12:01:49 +0000 (14:01 +0200)]
registry: check for existence of non base key in regdb_store_keys() before proceeding.

Michael
(This used to be commit 52413c94fcc56c4055de4d35bea8a00646352122)

16 years agoregistry: add a function regdb_key_is_base_key() to check whether is composite.
Michael Adam [Wed, 7 May 2008 22:34:35 +0000 (00:34 +0200)]
registry: add a function regdb_key_is_base_key() to check whether is composite.

This partly duplicates code from regdb_key_exists(). Maybe refactor later.

Michael
(This used to be commit c27d03bba842ecf99f23b22dc40fa7df33392fa0)

16 years agoregistry: check for existence of key in regdb_set_secdesc() before proceeding.
Michael Adam [Wed, 7 May 2008 11:50:01 +0000 (13:50 +0200)]
registry: check for existence of key in regdb_set_secdesc() before proceeding.

Michael
(This used to be commit 347bab7f4aca7f26a88affea954a514c25735abf)

16 years agoregistry: check for existence of key in regdb_get_secdesc() before proceeding.
Michael Adam [Wed, 7 May 2008 11:48:28 +0000 (13:48 +0200)]
registry: check for existence of key in regdb_get_secdesc() before proceeding.

Michael
(This used to be commit 727e5a87c0ed3e0a2b9c2b508b1f81e6a6d26732)

16 years agoregistry: check for existence of key in regdb_store_values() before proceeding.
Michael Adam [Wed, 7 May 2008 11:45:02 +0000 (13:45 +0200)]
registry: check for existence of key in regdb_store_values() before proceeding.

Michael
(This used to be commit 8a2c9d965d332ccd290089b92e9cfbba2413067c)

16 years agoregistry: check for existence of key in regdb_fetch_keys() before proceeding.
Michael Adam [Wed, 7 May 2008 11:42:48 +0000 (13:42 +0200)]
registry: check for existence of key in regdb_fetch_keys() before proceeding.

Michael
(This used to be commit cf653e101d1b2c38b5e9de35732421a120213170)

16 years agoregistry: check for existence of key in regdb_fetch_values() first.
Michael Adam [Wed, 7 May 2008 11:27:56 +0000 (13:27 +0200)]
registry: check for existence of key in regdb_fetch_values() first.

This uses the new semantics for existence of a key.

Michael
(This used to be commit 56a58690d3ab2e01ed28388bd59424d3abc7a0d3)

16 years agoregistry: free talloc context on error path in regdb_fetch_values().
Michael Adam [Wed, 7 May 2008 11:26:13 +0000 (13:26 +0200)]
registry: free talloc context on error path in regdb_fetch_values().

Michael
(This used to be commit 978aef3a862065be856b36b38d72d581c3ac0ba1)

16 years agoregistry: Implement new semantics for existence of registry key in tdb.
Michael Adam [Tue, 6 May 2008 08:05:20 +0000 (10:05 +0200)]
registry: Implement new semantics for existence of registry key in tdb.

Existence of a key is defined as follows:
* If the key is a base key (without separator), the key exists
  iff the corresponding entry exist in the registry tdb.
* If the key is not a base key, the key exists, iff it exists
  in the list of subkeys of it's parent keyname's tdb entry.

Michael
(This used to be commit 477008367f0ac90624b4b751955cd3235b2c9cc6)

16 years agoregistry: make normalize_reg_path() strip leading and trailing '/' chars.
Michael Adam [Tue, 6 May 2008 20:20:49 +0000 (22:20 +0200)]
registry: make normalize_reg_path() strip leading and trailing '/' chars.

Michael
(This used to be commit 04762cfcdba741afa457c96cd2f24e50cf83b15a)

16 years agoregistry: free temporary data in regdb_fetch_key_internal().
Michael Adam [Tue, 6 May 2008 15:15:50 +0000 (17:15 +0200)]
registry: free temporary data in regdb_fetch_key_internal().

Michael
(This used to be commit 2b25f480ba13ae125d081bab55ee3cbd3c4f425a)

16 years agoregistry: change order of arguments of regdb_fetch_key_internal()
Michael Adam [Tue, 6 May 2008 15:09:57 +0000 (17:09 +0200)]
registry: change order of arguments of regdb_fetch_key_internal()

list talloc context first.

Michael
(This used to be commit 23d7002b22ddcd2c52650463f31b72449aecaaaa)

16 years agogencache: add some const.
Günther Deschner [Wed, 7 May 2008 19:01:46 +0000 (21:01 +0200)]
gencache: add some const.

Guenther
(This used to be commit ec9f8c4cf67c82f4665ed51e4fd0181f5f147ea0)

16 years agore-run make idl.
Günther Deschner [Wed, 7 May 2008 19:01:29 +0000 (21:01 +0200)]
re-run make idl.

Guenther
(This used to be commit 4c0805220821719ad1db1590457ab66a577d26a7)

16 years agoIDL: make nbt_cldap_netlogon_29 public.
Günther Deschner [Wed, 7 May 2008 19:01:09 +0000 (21:01 +0200)]
IDL: make nbt_cldap_netlogon_29 public.

Guenther
(This used to be commit 7159cce8055d0197cfc1a9daa08d2370527ea3bc)

16 years agonetdomjoin-gui: before prompting for creds, ask dsgetdcname for a dc.
Günther Deschner [Wed, 7 May 2008 23:07:10 +0000 (01:07 +0200)]
netdomjoin-gui: before prompting for creds, ask dsgetdcname for a dc.

Guenther
(This used to be commit 47146effc1c2bca516d4fbccf221b5b0e02737bf)

16 years agoRename server_info->was_mapped to server_info->nss_token
Volker Lendecke [Tue, 6 May 2008 15:37:00 +0000 (17:37 +0200)]
Rename server_info->was_mapped to server_info->nss_token

"nss_token" from my point of view much better reflects what this flag actually
represents
(This used to be commit b121a5acb2ef0bb3067d953b028696175432f10d)

16 years agoUse talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
Volker Lendecke [Tue, 6 May 2008 13:16:45 +0000 (15:16 +0200)]
Use talloc_tos() for a temporary getpwnam_alloc in make_connection_snum
(This used to be commit 1843ea64ab1df5ced5926aedbeb27c8320b0c70b)

16 years agoUse talloc_stackframe() in find_forced_group
Volker Lendecke [Wed, 7 May 2008 12:20:15 +0000 (14:20 +0200)]
Use talloc_stackframe() in find_forced_group
(This used to be commit 27a9bbc645416265eebdfc866925855021bd407c)

16 years agore-run make idl.
Günther Deschner [Wed, 7 May 2008 12:11:27 +0000 (14:11 +0200)]
re-run make idl.

Guenther
(This used to be commit 4bef77a4566590b3e20470f538f20848ed49f264)

16 years agoIDL: add missing case 14 and 15 to nbt_cldap_netlogon union.
Günther Deschner [Wed, 7 May 2008 12:10:34 +0000 (14:10 +0200)]
IDL: add missing case 14 and 15 to nbt_cldap_netlogon union.

Guenther
(This used to be commit 9fcda4627b1c1d2836b6cbd1141f4e843ecab115)

16 years agodsgetdcname: remove invalid assumptions when using DNS for the DC query.
Günther Deschner [Wed, 7 May 2008 12:09:41 +0000 (14:09 +0200)]
dsgetdcname: remove invalid assumptions when using DNS for the DC query.

Guenther
(This used to be commit a81818ae54159755df441cc6421e5b272035f412)

16 years agonetapi: add -f switch for DsGetDCName() example and be more verbose on output.
Günther Deschner [Tue, 6 May 2008 15:09:44 +0000 (17:09 +0200)]
netapi: add -f switch for DsGetDCName() example and be more verbose on output.

Guenther
(This used to be commit 3feaa9829cc5bdeb7a5401c3c24b3811816396ce)

16 years agowins: fix null pointer crash in nss_wins module.
Günther Deschner [Tue, 6 May 2008 15:02:31 +0000 (17:02 +0200)]
wins: fix null pointer crash in nss_wins module.

Guenther
(This used to be commit 5bf47ebf0fb9f7d94ed36bce6bcaa31b508009bd)

16 years agoEnable tests for splice on Linux. Add a static (vl, I hate this)
Jeremy Allison [Tue, 6 May 2008 22:44:39 +0000 (15:44 -0700)]
Enable tests for splice on Linux. Add a static (vl, I hate this)
so we can detect broken Linux recvfile splice and correctly fall
back.
Jeremy.
(This used to be commit ec2d301a7aac173aba41dd2074037f27d05095ce)

16 years agotestsuite: allow selection of posix_s3 subtests by env var POSIX_SUBTESTS.
Michael Adam [Tue, 6 May 2008 21:43:37 +0000 (23:43 +0200)]
testsuite: allow selection of posix_s3 subtests by env var POSIX_SUBTESTS.

This allows for calling e.g.

TESTS=posix_s3 POSIX_SUBTESTS="RPC-SAMBA3-GETUSERNAME" make test

Michael
(This used to be commit 7418d89b2941fff307e0980d1f71f106aed8cbce)

16 years agoFix a memleak introduced after refactoring "struct user_struct"
Volker Lendecke [Tue, 6 May 2008 13:41:20 +0000 (15:41 +0200)]
Fix a memleak introduced after refactoring "struct user_struct"
(This used to be commit e70b5b762234f1733f150bdfbda7b208a8139990)

16 years agoFix a memleak in construct_printer_info_7()
Volker Lendecke [Tue, 6 May 2008 13:06:12 +0000 (15:06 +0200)]
Fix a memleak in construct_printer_info_7()

Also fix a "ignoring asprintf result" warning
(This used to be commit 64d21f39636019d6a17f84efc6fb9e61e67a235e)

16 years agoRemove some unused code
Volker Lendecke [Tue, 6 May 2008 12:16:06 +0000 (14:16 +0200)]
Remove some unused code
(This used to be commit 87383a4605ab99d32fccae7793dc5292b8f3e25b)

16 years agoFix a panic in the [ug]id2sid valgrind bug fix
Volker Lendecke [Tue, 6 May 2008 11:53:45 +0000 (13:53 +0200)]
Fix a panic in the [ug]id2sid valgrind bug fix

Always, always run "make test" before pushing stuff :-)
(This used to be commit 1444db8be1de00a3e9c805f1accd8f1f4670d729)

16 years agolibreplace: check how portable utimes() and futimes() are
Stefan Metzmacher [Tue, 6 May 2008 10:38:55 +0000 (12:38 +0200)]
libreplace: check how portable utimes() and futimes() are

metze
(cherry picked from commit 8798ce3c744025b94973784dcb44d099427ef190)
(This used to be commit fa443081eaff77623653ed0390c4f9dabc4487b5)

16 years agotestsuite: make structuring output of net_s3 tests stand out more.
Michael Adam [Tue, 6 May 2008 10:09:59 +0000 (12:09 +0200)]
testsuite: make structuring output of net_s3 tests stand out more.

say "RUNNING SUBTESTS ..." instead of "Running ... tests"

Michael
(This used to be commit 0b879817ba20861c7d0b239d7f7199b0a5ed2ca1)

16 years agotestsuite: make diagnostic output more appropriate in tests_all.sh
Michael Adam [Tue, 6 May 2008 10:08:27 +0000 (12:08 +0200)]
testsuite: make diagnostic output more appropriate in tests_all.sh

Say "RUNNING TESTS ..." instead of "RUNNING SUBTESTS ..."

Michael
(This used to be commit b73821c392a23c213e4b1ad25a8a2d0c845cee3a)

16 years agotestsuite: give the testuser administrative rights in selftest.sh
Michael Adam [Fri, 4 Apr 2008 16:29:44 +0000 (18:29 +0200)]
testsuite: give the testuser administrative rights in selftest.sh

(by adding him to builtin\administrators)

Michael
(This used to be commit baea0615003cc2db8b27872e87064364f2deb079)

16 years agotestsuite: run the net rpc registry tests from the net_s3 tests.
Michael Adam [Tue, 6 May 2008 10:01:49 +0000 (12:01 +0200)]
testsuite: run the net rpc registry tests from the net_s3 tests.

Michael
(This used to be commit dcf39078cf0524a7450db3f67c8e004eb42690c2)

16 years agotestsuite: add the ability to test "net rpc registry" with the net_registry tests
Michael Adam [Fri, 4 Apr 2008 16:26:34 +0000 (18:26 +0200)]
testsuite: add the ability to test "net rpc registry" with the net_registry tests

by specifying a parameter "rpc" on the commandline.

Michael
(This used to be commit 110c26374ef3e0bdefe2e54db2b8ffd4544780ef)

16 years agotestsuite: adapt informative message to say "Running _local_ registry tests".
Michael Adam [Tue, 6 May 2008 09:43:27 +0000 (11:43 +0200)]
testsuite: adapt informative message to say "Running _local_ registry tests".

The plan is to also test remote registry  with "net rpc registry".

Michael
(This used to be commit b5507f8a95399193099a0474fb8b8bc95ba04a48)

16 years agotestsuite: use domain==workgroup in wbinfo tests now that we are PDC.
Michael Adam [Tue, 6 May 2008 09:40:05 +0000 (11:40 +0200)]
testsuite: use domain==workgroup in wbinfo tests now that we are PDC.

Previously domain==netbios name was the right thing to use.

Michael
(This used to be commit a5fc47c2457ce370a4f6150b9f2a417dac7589bf)

16 years agotests: Add a net_misc test.
Kai Blin [Fri, 2 May 2008 23:50:20 +0000 (01:50 +0200)]
tests: Add a net_misc test.
(This used to be commit 026d701aff2c035359894786ec22b4ed829cfb31)

16 years agoselftest: Advertise as PDC and time server during make test
Kai Blin [Mon, 5 May 2008 13:26:11 +0000 (15:26 +0200)]
selftest: Advertise as PDC and time server during make test
(This used to be commit 65c619b36d08ac2f24b622c71b7e05d50bdeea50)

16 years agoselftest: Use TESTS env var to specify tests to run like Samba4 does.
Kai Blin [Fri, 2 May 2008 23:45:33 +0000 (01:45 +0200)]
selftest: Use TESTS env var to specify tests to run like Samba4 does.
(This used to be commit 6fb1fe803ccbd3af2946fcbe4586c11d394d5dc2)

16 years agogitignore: Add *.swp files, *.patch files and export/libtdb.symb
Kai Blin [Fri, 2 May 2008 23:50:47 +0000 (01:50 +0200)]
gitignore: Add *.swp files, *.patch files and export/libtdb.symb
(This used to be commit 48446f0c798b07a707389404f7a064ed63110cbf)

16 years agoFix a valgrind bug in the new [ug]id2sid cache
Volker Lendecke [Sat, 3 May 2008 00:41:10 +0000 (02:41 +0200)]
Fix a valgrind bug in the new [ug]id2sid cache

When we're given a SID, it is not always padded with zeros. Only look at the
initialized parts in the SID.
(This used to be commit 8717085dba832cfe6d7b807a10f779e495adc326)

16 years agobuild: fix the build w/o ldap.
Günther Deschner [Tue, 6 May 2008 07:48:16 +0000 (09:48 +0200)]
build: fix the build w/o ldap.

Guenther
(This used to be commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)

16 years agomailslot/cldap: use nt_version bits in queries.
Günther Deschner [Mon, 5 May 2008 16:04:41 +0000 (18:04 +0200)]
mailslot/cldap: use nt_version bits in queries.

Guenther
(This used to be commit b261f063125f8454d8f4e8f6b6f8aa5bc393ea34)

16 years agodsgetdcname: use correct dc name for name cache store.
Günther Deschner [Mon, 5 May 2008 15:22:49 +0000 (17:22 +0200)]
dsgetdcname: use correct dc name for name cache store.

Guenther
(This used to be commit ce1556d0fb993b78f02ac4cc4f8a45ab7a0b5397)

16 years agoMerge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into v3-3-test
Jeremy Allison [Mon, 5 May 2008 23:29:21 +0000 (16:29 -0700)]
Merge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into v3-3-test
(This used to be commit bb8f098cdfd902bbb36426df2c4f8532881b3fcd)

16 years agoTry and fix bug #5095, "Manage Documents privilege is not functional".
Jeremy Allison [Mon, 5 May 2008 23:24:52 +0000 (16:24 -0700)]
Try and fix bug #5095, "Manage Documents privilege is not functional".
Should map the created sd to printer jobs, not printer.
Jerry please test and I'll add to 3.2 if it passes. Thanks,
Jeremy.
(This used to be commit 0a1fe8d6013d925ab6695f6b7f189b731ec42ccc)

16 years agoRemove unused dir_status_struct
Volker Lendecke [Mon, 5 May 2008 20:53:09 +0000 (22:53 +0200)]
Remove unused dir_status_struct
(This used to be commit 425ca59cce886daed0d6c63fe4382aee140c9518)

16 years agoFix a C++ warning
Volker Lendecke [Mon, 5 May 2008 15:24:17 +0000 (17:24 +0200)]
Fix a C++ warning
(This used to be commit e7a4027acf38bf5800d9d8ba477afb5daaf517ce)

16 years agoRemove "userdom_struct user" from "struct user_struct"
Volker Lendecke [Wed, 30 Apr 2008 15:42:39 +0000 (17:42 +0200)]
Remove "userdom_struct user" from "struct user_struct"
(This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)

16 years agoFix a typo
Volker Lendecke [Sat, 3 May 2008 07:52:24 +0000 (09:52 +0200)]
Fix a typo
(This used to be commit 964bd02220c04030d8cb0f97ca9b409400d1238c)

16 years agoRemove unused set_current_user_guest()
Volker Lendecke [Wed, 30 Apr 2008 15:06:45 +0000 (17:06 +0200)]
Remove unused set_current_user_guest()
(This used to be commit a33e8d2ffa4daea1deba13b3571cb0b36d521476)

16 years agoFix typo
Volker Lendecke [Wed, 30 Apr 2008 10:58:40 +0000 (12:58 +0200)]
Fix typo
(This used to be commit 8047a1991a09191fec254815f3bfc85a2c36674a)

16 years agoRemove "session_key" from "struct user_struct"
Volker Lendecke [Wed, 30 Apr 2008 12:26:16 +0000 (14:26 +0200)]
Remove "session_key" from "struct user_struct"

This one took a bit -- I hope I covered all data paths
(This used to be commit 74c88a44422f88d6e2f2cdbfdfa0bafe0dbe06c4)

16 years agoRemove "guest" from "struct user_struct"
Volker Lendecke [Tue, 29 Apr 2008 11:45:58 +0000 (13:45 +0200)]
Remove "guest" from "struct user_struct"
(This used to be commit 570a6b80feb5b0dc23213ba936c721e766cd4818)

16 years agoRemove the unix token info from "struct user_struct"
Volker Lendecke [Tue, 29 Apr 2008 11:43:10 +0000 (13:43 +0200)]
Remove the unix token info from "struct user_struct"
(This used to be commit aa2299d42adf4d27e707ac755e07be70d0af1bb4)

16 years agoRemove "nt_user_token" from "struct user_struct"
Volker Lendecke [Tue, 29 Apr 2008 11:35:00 +0000 (13:35 +0200)]
Remove "nt_user_token" from "struct user_struct"
(This used to be commit 51d5d512f28eadc74eced43e5e7f4e5bdff3ff69)

16 years agoRemove "logon_script" from "struct user_struct"
Volker Lendecke [Tue, 29 Apr 2008 11:28:40 +0000 (13:28 +0200)]
Remove "logon_script" from "struct user_struct"
(This used to be commit b36fd84186a656f86e4cfb9166fc0ecbffb422cb)

16 years agoRemove unix_homedir from struct user_struct
Volker Lendecke [Tue, 29 Apr 2008 11:23:47 +0000 (13:23 +0200)]
Remove unix_homedir from struct user_struct

This makes pdb_get_unix_homedir unused. I wonder if that was ever really used...
(This used to be commit 36bfd32f1ff878e827db91e9bf233719ecca5b01)

16 years agoRemove "homedir" from "struct user_struct"
Volker Lendecke [Tue, 29 Apr 2008 10:47:55 +0000 (12:47 +0200)]
Remove "homedir" from "struct user_struct"
(This used to be commit 41f9afd62d8cc6067582d452f3d53a5c67253b69)

16 years agopipes_struct->pipe_user_name is unused, remove it
Volker Lendecke [Mon, 28 Apr 2008 17:42:11 +0000 (19:42 +0200)]
pipes_struct->pipe_user_name is unused, remove it
(This used to be commit 32cd4bf34b614f7bb0b05a7ae5d7eb51d208a7c7)

16 years agoMake the namelist arg to set_namearray const
Volker Lendecke [Mon, 28 Apr 2008 11:35:44 +0000 (13:35 +0200)]
Make the namelist arg to set_namearray const
(This used to be commit e7ce4bce5cd7eddb14982028538e965e12ccef84)

16 years agoFix client authentication with -P switch in client tools (Bug 5435).
Günther Deschner [Mon, 5 May 2008 14:58:24 +0000 (16:58 +0200)]
Fix client authentication with -P switch in client tools (Bug 5435).

Guenther
(This used to be commit d077ef64cd1d9bbaeb936566c2c70da508de829f)

16 years agoRevert "Fix allocation of conn->vuid_cache entries"
Volker Lendecke [Mon, 5 May 2008 13:06:39 +0000 (15:06 +0200)]
Revert "Fix allocation of conn->vuid_cache entries"

This reverts commit 50c891d3dfb75c9f607f7ad2a578aa3ba5d91988.

There's more to this code -- sorry for the spam
(This used to be commit 6e0e0cb8dd6f57de36c041e2ba4b82feeb357ce8)

16 years agoRevert "Second half of 50c891d3: Correctly clear the vuid cache"
Volker Lendecke [Mon, 5 May 2008 13:06:30 +0000 (15:06 +0200)]
Revert "Second half of 50c891d3: Correctly clear the vuid cache"

This reverts commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56.
(This used to be commit fa39f47f5fc2df0f1a59705e30a799518c353b45)

16 years agoSecond half of 50c891d3: Correctly clear the vuid cache
Volker Lendecke [Mon, 5 May 2008 12:53:49 +0000 (14:53 +0200)]
Second half of 50c891d3: Correctly clear the vuid cache
(This used to be commit 0aea404b0a83736ba2884cc7cf00cd797aab1f56)

16 years agoFix allocation of conn->vuid_cache entries
Volker Lendecke [Mon, 5 May 2008 12:43:57 +0000 (14:43 +0200)]
Fix allocation of conn->vuid_cache entries

With the old code, if more than VUID_CACHE_SIZE elements were used all new
entries ended up in slot 0. With this checkin we do cycle.

Jeremy, please revert if the old behaviour was intentional
(This used to be commit 50c891d3dfb75c9f607f7ad2a578aa3ba5d91988)

16 years agoFix dfs_Enum: In form_junctions, correctly check for malloc failure
Volker Lendecke [Mon, 5 May 2008 10:45:12 +0000 (12:45 +0200)]
Fix dfs_Enum: In form_junctions, correctly check for malloc failure
(This used to be commit 1b1614c3261e1e93a2cad1f1063e28cbbb13f434)

16 years agoDeveloper's Guide: Fix typos.
Karolin Seeger [Sun, 4 May 2008 04:48:31 +0000 (06:48 +0200)]
Developer's Guide: Fix typos.

Karolin
(This used to be commit e206ffb8562c821735555c9b426d76e49986fefe)

16 years agoRemove connection_struct->mem_ctx, connection_struct is its own parent
Volker Lendecke [Mon, 28 Apr 2008 08:31:49 +0000 (10:31 +0200)]
Remove connection_struct->mem_ctx, connection_struct is its own parent
(This used to be commit 559180f7d30606d1999399d954ceedc798c669a4)

16 years agoFix two uninitialized variable warnings
Volker Lendecke [Mon, 5 May 2008 09:15:59 +0000 (11:15 +0200)]
Fix two uninitialized variable warnings
(This used to be commit 48fd7b3635137e2fe77c0b0413965869194421ff)

16 years agoRemove the "stat_open()" function, flag, and all associated code. It was only
Jeremy Allison [Sat, 3 May 2008 00:22:10 +0000 (17:22 -0700)]
Remove the "stat_open()" function, flag, and all associated code. It was only
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable
and this is more properly done using the functions in smbd/file_access.c.
Preparing to do NT access checks on all file access.
Jeremy.
(This used to be commit 6bfb06ad95963ae2acb67c4694a98282d3b29faa)

16 years agoRename inherit_access_acl() -> inherit_access_posix_acl() to make use clear.
Jeremy Allison [Fri, 2 May 2008 19:54:53 +0000 (12:54 -0700)]
Rename inherit_access_acl() -> inherit_access_posix_acl() to make use clear.
Jeremy.
(This used to be commit b739c7f1cdb2b19a380b06681b00dcf490d788a9)

16 years agoMove directory_has_default_acl() to file_access.c, belongs
Jeremy Allison [Fri, 2 May 2008 17:09:00 +0000 (10:09 -0700)]
Move directory_has_default_acl() to file_access.c, belongs
there as it no longer uses explicit POSIX ACL calls.
Jeremy.
(This used to be commit ac1eac9b0d07b7b3d341c06ef1a8fd8f3c05a618)

16 years agoStart to ensure we use the NT ACL interface, keep the POSIX
Jeremy Allison [Fri, 2 May 2008 00:01:37 +0000 (17:01 -0700)]
Start to ensure we use the NT ACL interface, keep the POSIX
ACL interface inside the VFS modules. Will help when moving
to storing NT ACLs.
Jeremy.
(This used to be commit b08ea48f883d1b000f6364c1ff8f62bc25741244)

16 years agoTidyup to ensure '\n' is treated identically in all
Jeremy Allison [Thu, 1 May 2008 15:48:52 +0000 (08:48 -0700)]
Tidyup to ensure '\n' is treated identically in all
cases.
Jeremy.
(This used to be commit 818fbc9889af8c9fb6e7978e8ed2269a78f14404)

16 years agoFix bug #5434 found by Ted Percival <ted@midg3t.net>.
Jeremy Allison [Thu, 1 May 2008 15:39:16 +0000 (08:39 -0700)]
Fix bug #5434 found by Ted Percival <ted@midg3t.net>.
Introduced by me in the strlcpy cleanup. Ensure the
loaded password doesn't contain the '\n' at the end.
Jeremy.
(This used to be commit 41984743d9e89b6568119832c35ee4c0024e43a2)

16 years agontlmssp: replace UNKNOWN_02000000 with NTLMSSP_NEGOTIATE_VERSION.
Günther Deschner [Wed, 30 Apr 2008 16:47:40 +0000 (18:47 +0200)]
ntlmssp: replace UNKNOWN_02000000 with NTLMSSP_NEGOTIATE_VERSION.

Guenther
(This used to be commit 2c41d69bcf6f0897ef9d444a8f167aff1772d562)

16 years agopam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).
Günther Deschner [Wed, 30 Apr 2008 16:23:26 +0000 (18:23 +0200)]
pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).

Guenther
(This used to be commit d8372f73b93d3f323310f5456fef204884c303bb)

16 years agoFix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6...
Jeremy Allison [Wed, 30 Apr 2008 16:28:47 +0000 (09:28 -0700)]
Fix typo noticed by David Disseldorp <ddiss@sgi.com>. AF_INET should be AF_INET6 in this case.
Jeremy.
(This used to be commit 767740a914c7ebeb88886f520380b7fa365e315d)