idra/samba.git
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)

16 years agoWinbind: Prevent cycle in children list when reaping dead child processes.
Gerald W. Carter [Wed, 30 Apr 2008 15:09:43 +0000 (10:09 -0500)]
Winbind: Prevent cycle in children list when reaping dead child processes.

Thanks to Glenn Curtis and Kyle Stemen @ Likewise.  Their explanation is:

    In winbindd_dual.c, there is a list of children processes that
    is maintained using macros DTLIST_ADD and DTLIST_REMOVE. In the
    case when a scheduled_async_request fails, the particular child
    was located in the list, and its attributes were cleared out
    and it was reused for a subsequent async request. The bug was that
    the new request would queue the same node into the doubly-linked
    list and would result in list->next pointing to the same node as
    list itself. This would set up an infinite loop in the processing of
    the for loop when the list of children was referenced.

    Solution was to fully remove the child node from the list, such that
    it could be inserted without risk of being inserted twice.

Note that the child is re-added to the list in fork_domain_child() again.
(This used to be commit b379b5b5d8a6daccc69aaf2be6d9a6e276e7dd78)

16 years agoBUG 5107: Fix handling of large DNS replies on AIX and Solaris.
Gerald W. Carter [Wed, 30 Apr 2008 14:57:15 +0000 (09:57 -0500)]
BUG 5107: Fix handling of large DNS replies on AIX and Solaris.

On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8)
truncated replies never give back a resp_len > buflen
which ends up causing DNS resolve failures on large tcp DNS replies.

Also add more debug lines about processing the DNS reply.
(This used to be commit 5ed9b92097460cd8180db806a08213e97cfb8daa)

16 years agoBUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}
Gerald W. Carter [Wed, 30 Apr 2008 14:43:00 +0000 (09:43 -0500)]
BUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}

Raise the debug msgs from Lvl 0 in the create_builtin_XX() functions
to prevent unnecessary panic from people reading the logs.
(This used to be commit 2983b9dc790e0f90ec1e6add131438c6bfd361b4)

16 years agore-run make idl.
Günther Deschner [Wed, 30 Apr 2008 14:03:58 +0000 (16:03 +0200)]
re-run make idl.

Guenther
(This used to be commit 14327b11baa18f185e747a321e75abe581d153d2)

16 years agobuild: fix make everything.
Günther Deschner [Wed, 30 Apr 2008 14:02:23 +0000 (16:02 +0200)]
build: fix make everything.

Guenther
(This used to be commit d2cd011f4379ed2972c8e4c96f6757961fdceaee)

16 years agoIDL: add nbt_cldap_netlogon_29 which includes the next_closest_site.
Günther Deschner [Wed, 30 Apr 2008 13:49:20 +0000 (15:49 +0200)]
IDL: add nbt_cldap_netlogon_29 which includes the next_closest_site.

Guenther
(This used to be commit 909c9ae7ecbaa1bcc38d5c9ebc10fc5fb9a7bf59)

16 years agoIDL: use nbt_netlogon_command in cldap replies.
Günther Deschner [Wed, 30 Apr 2008 13:19:32 +0000 (15:19 +0200)]
IDL: use nbt_netlogon_command in cldap replies.

Guenther
(This used to be commit bc92507fb425ae56568c72298b9d7e964ae372d0)

16 years agoNext round fixing bug 5420, build on IRIX
Volker Lendecke [Sun, 27 Apr 2008 10:16:23 +0000 (12:16 +0200)]
Next round fixing bug 5420, build on IRIX

The IRIX make does not like lines with only whitespace. With LIBNETAPI_LIBS
evaluating to nothing this happens there.
(This used to be commit 225fbe743c34fa7658f8f2e9daf6f51ec1b6e944)

16 years agoAttempt to fix the build on IRIX: Bug 5420
Volker Lendecke [Sat, 26 Apr 2008 07:48:17 +0000 (09:48 +0200)]
Attempt to fix the build on IRIX: Bug 5420
(This used to be commit ebca5fd7625e3ff3d76ab4e6c245ba3297ca03b4)

16 years agoregistry: skip writes of existing keys in init_registry_data().
Michael Adam [Tue, 29 Apr 2008 15:41:03 +0000 (17:41 +0200)]
registry: skip writes of existing keys in init_registry_data().

Michael
(This used to be commit 37dabf931727f00569725af0e34677d36bb7df99)

16 years agoregistry: save writes in init_registry_data() if data does already exist.
Michael Adam [Tue, 29 Apr 2008 15:37:35 +0000 (17:37 +0200)]
registry: save writes in init_registry_data() if data does already exist.

This is done by first checking if all data (keys and values) exists
(using new regdb_key_exists()) and kompletely skipping all writes if it does.

Michael
(This used to be commit 7c5f1583cb43d473544f161aa9c864e1d78944e5)

16 years agoregistry: check for existence of key init_registry_key and possibly save a write.
Michael Adam [Tue, 29 Apr 2008 15:18:26 +0000 (17:18 +0200)]
registry: check for existence of key init_registry_key and possibly save a write.

Michael
(This used to be commit 3ab5a2f1b3cf37c380ff3e45a957e62a8017814a)

16 years agoregistry: add function regdb_key_exists() to check for existence of a key.
Michael Adam [Tue, 29 Apr 2008 15:17:02 +0000 (17:17 +0200)]
registry: add function regdb_key_exists() to check for existence of a key.

The existence of the registry key entry (and not the values entry!) is
taken as the criterion for existence.

Michael
(This used to be commit 207a0ece45d947608df3f764e6bd9b4525d41011)

16 years agoregistry: use regdb_fetch_key_internal() in regdb_fetch_values().
Michael Adam [Tue, 29 Apr 2008 15:11:09 +0000 (17:11 +0200)]
registry: use regdb_fetch_key_internal() in regdb_fetch_values().

Michael
(This used to be commit 3316541ac9f1441294405fdd98f0ffafdec8bc2f)

16 years agoregistry: use regdb_fetch_key_internal() in regdb_fetch_keys().
Michael Adam [Tue, 29 Apr 2008 15:09:10 +0000 (17:09 +0200)]
registry: use regdb_fetch_key_internal() in regdb_fetch_keys().

Michael
(This used to be commit 78f924ca05ecef9f586254c00908c1f12272c30c)

16 years agoregistry: add a function for fetching a tdb record for a given keystring
Michael Adam [Tue, 29 Apr 2008 15:04:41 +0000 (17:04 +0200)]
registry: add a function for fetching a tdb record for a given keystring

regdb_fetch_key_internal()

Michael
(This used to be commit 97bed9a23608248f1a590c99fe40564d2fbfa3cc)

16 years agoregistry: combine talloc_strdup() and normalize_reg_path() in regdb_fetch_keys().
Michael Adam [Tue, 29 Apr 2008 13:30:45 +0000 (15:30 +0200)]
registry: combine talloc_strdup() and normalize_reg_path() in regdb_fetch_keys().

the talloc_strdup() call is just and extra allocation here.

Michael
(This used to be commit 217233349b2d98d2506fcca47858373150e89924)

16 years agoregistry: use normalize_reg_path() in regdb_fetch_keys()
Michael Adam [Tue, 29 Apr 2008 13:28:47 +0000 (15:28 +0200)]
registry: use normalize_reg_path() in regdb_fetch_keys()

instead of handcrafting normalization.

Michael
(This used to be commit 1e4d2310d077c4d18470fd76f5ff9c010aadd3f0)

16 years agoregistry: use dbwrap_fetch_bystring() in regdb_fetch_values().
Michael Adam [Tue, 29 Apr 2008 13:17:54 +0000 (15:17 +0200)]
registry: use dbwrap_fetch_bystring() in regdb_fetch_values().

Michael
(This used to be commit 569f9844e9d35324cf9a3a3094cd9791918a1441)

16 years agoregistry: use dbwrap_fetch_bystring() in regdb_fetch_keys().
Michael Adam [Tue, 29 Apr 2008 13:16:10 +0000 (15:16 +0200)]
registry: use dbwrap_fetch_bystring() in regdb_fetch_keys().

instead of using regdb->fetch and constructing tdb data
from the registry key string by hand.

Michael
(This used to be commit 87a58140f0073dfb5b18fb43655b255aebafbd02)

16 years agobuild: fix some build dependencies.
Günther Deschner [Tue, 29 Apr 2008 22:58:49 +0000 (00:58 +0200)]
build: fix some build dependencies.

Guenther
(This used to be commit 067a6931a23631dfb902fb4a180f3c44a5455d51)

16 years agoRe-run make idl.
Günther Deschner [Tue, 29 Apr 2008 22:58:28 +0000 (00:58 +0200)]
Re-run make idl.

Guenther
(This used to be commit 08b5758e00597a4828044c4d4ac97be0741b0cf2)

16 years agoIDL: use nbt_dc_sock_addr.
Günther Deschner [Tue, 29 Apr 2008 23:10:13 +0000 (01:10 +0200)]
IDL: use nbt_dc_sock_addr.

Guenther
(This used to be commit 5a46f34fa364dfb20d7de93164b56d08dc4fb427)

16 years agoIDL: move some netlogon DS flags to NBT where they actually showup first.
Günther Deschner [Tue, 29 Apr 2008 22:56:31 +0000 (00:56 +0200)]
IDL: move some netlogon DS flags to NBT where they actually showup first.

Guenther
(This used to be commit 163f17f84bc602f9944153854e42cf643c5c4768)

16 years agoIDL: use samr_AcctFlags in nbt_ntlogon_sam_logon.
Günther Deschner [Tue, 29 Apr 2008 22:35:57 +0000 (00:35 +0200)]
IDL: use samr_AcctFlags in nbt_ntlogon_sam_logon.

Guenther
(This used to be commit 5f5658b3dc6407ca05368f657dc3296425844434)

16 years agoIDL: add nbt_netlogon_version.
Günther Deschner [Tue, 29 Apr 2008 22:34:43 +0000 (00:34 +0200)]
IDL: add nbt_netlogon_version.

Guenther
(This used to be commit 5963bbea82bf0c11158bd1db00710c3157299bcc)

16 years agorpcclient: fix another srv_name_slash.
Günther Deschner [Tue, 29 Apr 2008 18:14:17 +0000 (20:14 +0200)]
rpcclient: fix another srv_name_slash.

Guenther
(This used to be commit de946e6158526ec109b0c3381bab6e6d8e9cc1b2)

16 years ago_netr_LogonSamLogon: fix lm session key length.
Günther Deschner [Tue, 29 Apr 2008 18:13:22 +0000 (20:13 +0200)]
_netr_LogonSamLogon: fix lm session key length.

Thanks Volker for pointing this out.

Guenther
(This used to be commit 7ccca9a004c7a4794781cbd7c703c53a0481bd51)

16 years agoRe-run make idl.
Günther Deschner [Tue, 29 Apr 2008 18:12:26 +0000 (20:12 +0200)]
Re-run make idl.

Guenther
(This used to be commit 89284792722ab38d98e874e477c7a4046ee2aba0)

16 years agoIDL: Add DFS_MANAGER_VERSION_W2K8.
Günther Deschner [Tue, 29 Apr 2008 18:11:59 +0000 (20:11 +0200)]
IDL: Add DFS_MANAGER_VERSION_W2K8.

Guenther
(This used to be commit 85a758c0b8398b682450b692744f7a49c7734faf)

16 years agonetapi: fix returned name buffer in NetGetJoinInformation_r().
Günther Deschner [Tue, 29 Apr 2008 18:11:02 +0000 (20:11 +0200)]
netapi: fix returned name buffer in NetGetJoinInformation_r().

Guenther
(This used to be commit 0e8e05d556a7f84e500cca3fa858f9b4a9522a5f)

16 years agoerrors: add WERR_NOT_FOUND.
Günther Deschner [Tue, 29 Apr 2008 18:10:17 +0000 (20:10 +0200)]
errors: add WERR_NOT_FOUND.

Guenther
(This used to be commit b9ac03bdfa5763c713674acd966ab5d4371992a5)

16 years agoMerge data_blob_hex_string from Samba4.
Günther Deschner [Fri, 25 Apr 2008 18:06:19 +0000 (20:06 +0200)]
Merge data_blob_hex_string from Samba4.

Guenther
(This used to be commit 686d8939d90eab958d3a352fe53917ba7a17f39a)

16 years agoFix bug found by Igor Mammedov <niallain@gmail.com> where we are
Jeremy Allison [Mon, 28 Apr 2008 22:06:08 +0000 (15:06 -0700)]
Fix bug found by Igor Mammedov <niallain@gmail.com> where we are
not returning a directory value for a QPATHINFO on a msdfs link
with a non-dfs path. Windows does this.
Jeremy.
(This used to be commit fbd99071f99cadd21aa2b8971f745a323a9cda13)

16 years agoman smbcacls: Correct possible flag values.
Karolin Seeger [Mon, 28 Apr 2008 13:26:57 +0000 (15:26 +0200)]
man smbcacls: Correct possible flag values.

This patch fixes bug #620.
Thanks to Satoh Fumiyasu <fumiyas@osstech.co.jp>!

Karolin
(This used to be commit 70f6966099788f4bdb0298a68d4cb0b90964dd8f)

16 years agoFix bug 5419: memory leak in ads_do_search_all_args() when enumerating 1000s of entries
Steven Danneman [Sat, 26 Apr 2008 01:34:46 +0000 (18:34 -0700)]
Fix bug 5419: memory leak in ads_do_search_all_args() when enumerating 1000s of entries

The ads_do_search_all_args() function attempts to string together several
LDAPMessage structures, returned across several paged ldap requests, into a
single LDAPMessage structure.  It does this by pulling entries off the second
LDAPMessage structure and appending them to the first via the OpenLDAP specific
ldap_add_result_entry() call.

The problem with this approach is it skips non-entry messages such as the
result, and controls.  These messages are leaked.

The short term solution as suggested by Volker is to replace the ads_*_entry()
calls with ads_*_message() calls so we don't leak any messages.

This fixes the leak but doesn't remove the dependence on the OpenLDAP specific
implementation of ldap_add_result_entry().
(This used to be commit f1a5405409c396df394611e2a234522572d2860a)

16 years agoSync up client/mount.cifs.c with v3-2-test.
Jeremy Allison [Fri, 25 Apr 2008 16:29:11 +0000 (09:29 -0700)]
Sync up client/mount.cifs.c with v3-2-test.
Jeremy.
(This used to be commit 7a724d78e11f016f154c0029dc394ce133f41110)

16 years agoSetting version to 3.3.0pre1
Gerald W. Carter [Fri, 25 Apr 2008 13:35:27 +0000 (08:35 -0500)]
Setting version to 3.3.0pre1
(This used to be commit 4dd00987be6ac0dbc706d9148472846d95f3b882)

16 years agoIDL: Add autogenerated drsuapi files.
Günther Deschner [Fri, 25 Apr 2008 12:49:02 +0000 (14:49 +0200)]
IDL: Add autogenerated drsuapi files.

Guenther
(This used to be commit 192ffa3835c407d5603f47c1633a075869daae01)

16 years agoerrors: add WERR_INVALID_DOMAINNAME.
Günther Deschner [Thu, 24 Apr 2008 20:19:23 +0000 (22:19 +0200)]
errors: add WERR_INVALID_DOMAINNAME.

Guenther
(This used to be commit b11a5e70d38239fb50ba4606656e2168cc398a12)

16 years agodocs: fix the manpage output of parameters list in smb.conf.5.
Michael Adam [Fri, 25 Apr 2008 12:08:10 +0000 (14:08 +0200)]
docs: fix the manpage output of parameters list in smb.conf.5.

There were some newlines missing in the template for samba:parameters.

Michael
(This used to be commit a47abfa9276765164870bd7541798ff1201379b1)

16 years agodocs: fix indentation in expand-smbxonfdoc.
Michael Adam [Fri, 25 Apr 2008 12:01:57 +0000 (14:01 +0200)]
docs: fix indentation in expand-smbxonfdoc.

Michael
(This used to be commit 79f53a06820b226cbfbc939ae9a6d255e4a4a2d1)

16 years agomount.cifs: Zero mountpassword content before freeing.
Karolin Seeger [Fri, 25 Apr 2008 10:07:28 +0000 (12:07 +0200)]
mount.cifs: Zero mountpassword content before freeing.

Karolin
(This used to be commit d99a31848bd2172c15500dd61ce30fef963c1ac6)

16 years agoAttempt to fix the non-krb build
Volker Lendecke [Fri, 25 Apr 2008 10:36:39 +0000 (12:36 +0200)]
Attempt to fix the non-krb build
(This used to be commit 31d80a476701c89bf236997f2ab68bd2765579bd)

16 years agoAdd basic ncacn_ip_tcp client infrastructure
Volker Lendecke [Thu, 24 Apr 2008 20:24:20 +0000 (22:24 +0200)]
Add basic ncacn_ip_tcp client infrastructure
(This used to be commit 11072ccc7aeb6e087e78cea83959a2f6e0b2f837)

16 years agoIntroduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client
Volker Lendecke [Thu, 24 Apr 2008 18:42:32 +0000 (20:42 +0200)]
Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client

Should be no functional change, just a change in the data structure
(This used to be commit 3433f430b0c1f7d350a40eac783385a2d30d905c)

16 years agoIntroduce rpccli_pipe_txt(), describing a pipe for debug messages
Volker Lendecke [Thu, 24 Apr 2008 18:24:37 +0000 (20:24 +0200)]
Introduce rpccli_pipe_txt(), describing a pipe for debug messages
(This used to be commit 83892d51de0dcdaeae18bc34d03eefefc95ff601)

16 years agocli_rpc_pipe_open_noauth must take the user/domain from the smb session
Volker Lendecke [Tue, 22 Apr 2008 16:17:01 +0000 (18:17 +0200)]
cli_rpc_pipe_open_noauth must take the user/domain from the smb session
(This used to be commit 6f08128cf2722618e74b603e180e7e2a83d7d07a)

16 years agoMake use of rpccli_xxx_bind_data
Volker Lendecke [Tue, 22 Apr 2008 12:31:35 +0000 (14:31 +0200)]
Make use of rpccli_xxx_bind_data
(This used to be commit f9bc336affd2ce21a3c62880ecea2622f35653d1)

16 years agoCreate rpccli_xxx_bind_data functions
Volker Lendecke [Tue, 22 Apr 2008 11:03:06 +0000 (13:03 +0200)]
Create rpccli_xxx_bind_data functions

These functions create the auth data for the later bind
(This used to be commit 630b9c241cb6db758f8290420a38af452569e903)

16 years agoMove user/domain from rpc_pipe_client to cli_pipe_auth_data
Volker Lendecke [Mon, 21 Apr 2008 20:27:29 +0000 (22:27 +0200)]
Move user/domain from rpc_pipe_client to cli_pipe_auth_data
(This used to be commit 42de50d2cd43e760d776694f7b5f003ba51d7f84)

16 years agoRefactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
Volker Lendecke [Mon, 21 Apr 2008 08:39:37 +0000 (10:39 +0200)]
Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
(This used to be commit f665afaaa3eff9ef54112e08ed034a6e1bb30edc)

16 years agoFix from Martin Zielinski <mz@seh.de>. Don't delete files when
Jeremy Allison [Thu, 24 Apr 2008 22:02:23 +0000 (15:02 -0700)]
Fix from Martin Zielinski <mz@seh.de>. Don't delete files when
they're in use by other drivers.
Jeremy.
(This used to be commit 205c352caeb32693a02fcfaeb3f18515719ac373)

16 years agoThe first of Martin Zielinski <mz@seh.de> Vista printing patches.
Jeremy Allison [Thu, 24 Apr 2008 21:04:47 +0000 (14:04 -0700)]
The first of Martin Zielinski <mz@seh.de> Vista printing patches.
Jerry will test and should get into 3.2 final (and the next 3.0.x
release).
Jeremy.
(This used to be commit 3fc1ab210b8772ee9f867499c0b1a7bb4bcdd285)

16 years agomailslot/dsgetdcname: do what XP does and request nt_version 11.
Günther Deschner [Thu, 24 Apr 2008 19:53:55 +0000 (21:53 +0200)]
mailslot/dsgetdcname: do what XP does and request nt_version 11.

This allows dsgetdcname to query for a flat, non-dns domain name and
come back with all information about the DC (site names, guid, forest,
etc.) based on a mailslot reply. The version 11 request is downgraded
to version 1 in case we do a query against NT4.

Guenther
(This used to be commit d8b2ff3c8769e8da9c21dec483e6edb7aa2d00f3)

16 years agomailslot: allow to give back struct nbt_ntlogon_packet.
Günther Deschner [Thu, 24 Apr 2008 19:37:42 +0000 (21:37 +0200)]
mailslot: allow to give back struct nbt_ntlogon_packet.

Guenther
(This used to be commit 2b178dcae608ecc05f62593a7a0c2a127b8b7ca2)

16 years agomailslot: make sure we are looking at the correct reply structure.
Günther Deschner [Thu, 24 Apr 2008 19:29:48 +0000 (21:29 +0200)]
mailslot: make sure we are looking at the correct reply structure.

Guenther
(This used to be commit c6ce07fdf57c8b63ba6d72b622be261723cb55e3)

16 years agomailslot: allow to define nt_version in send_getdc_request().
Günther Deschner [Thu, 24 Apr 2008 19:28:03 +0000 (21:28 +0200)]
mailslot: allow to define nt_version in send_getdc_request().

Guenther
(This used to be commit ce3728191b23badfd5eb92701e4cebf84273b61e)

16 years agorpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().
Günther Deschner [Wed, 23 Apr 2008 08:55:26 +0000 (10:55 +0200)]
rpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().

Guenther
(This used to be commit c15b5d73badafdc93066197aefaaaa72e37a8b99)

16 years agoFix yet another set of documentation links
Alexander Bokovoy [Thu, 24 Apr 2008 19:46:01 +0000 (23:46 +0400)]
Fix yet another set of documentation links

Signed-off-by: Alexander Bokovoy <ab@samba.org>
(This used to be commit a132cc3c6243c049860378f56c4d415d6cb35570)

16 years agoIgnore intermediary documentation files in git
Alexander Bokovoy [Thu, 24 Apr 2008 19:41:35 +0000 (23:41 +0400)]
Ignore intermediary documentation files in git

Signed-off-by: Alexander Bokovoy <ab@samba.org>
(This used to be commit e700cf9ef4aefcb04d500136d117ff13a51e6433)

16 years agoFix documentation build: manpages, links in the HTML documents.
Alexander Bokovoy [Thu, 24 Apr 2008 19:40:51 +0000 (23:40 +0400)]
Fix documentation build: manpages, links in the HTML documents.

Fixed manpages generation to properly create handle smb.conf parameters' titles
Changed HTML generator to include links for every smb.conf parameter.
Now we have correct linking between different HTML documents.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
(This used to be commit 056935ff1f5fefc3ca42f7006182fc80c94d91ab)

16 years agoMake mount.cifs.c consistent with other Samba code usage w.r.t
Jeremy Allison [Thu, 24 Apr 2008 17:24:05 +0000 (10:24 -0700)]
Make mount.cifs.c consistent with other Samba code usage w.r.t
SAFE_FREE. Use #define constants not arbitrary numbers. Stevef
please check. Karolyn, once Steve has checked please pull for
3.2-stable.
Jeremy.
(This used to be commit cc23f91d639db61903bf8b6c9fa46ec9c1f44178)

16 years agomanpages: describe special meaning of "include = registry" in description of "include"
Michael Adam [Thu, 24 Apr 2008 09:24:23 +0000 (11:24 +0200)]
manpages: describe special meaning of "include = registry" in description of "include"

Michael
(This used to be commit 613b6dc6f833dd7ef93e107c0eddc211d42fff93)

16 years agomanpages: update the section about registry configuration in smb.conf.5
Michael Adam [Thu, 24 Apr 2008 09:23:36 +0000 (11:23 +0200)]
manpages: update the section about registry configuration in smb.conf.5

Michael
(This used to be commit 27bc3ac03f8be222814ff7b77cb3e50b3167a1ef)

16 years agoFix CLEAR_IF_FIRST handling of messages.tdb
Volker Lendecke [Wed, 23 Apr 2008 15:13:50 +0000 (17:13 +0200)]
Fix CLEAR_IF_FIRST handling of messages.tdb

We now open messages.tdb even before we do the become_daemon. become_daemon()
involves a fork and an immediate exit of the parent, thus the
parent_is_longlived argument must be set to false in this case. The parent is
not really long lived :-)
(This used to be commit 4f4781c6d17fe2db34dd5945fec52a7685448aec)

16 years agoUse wbinfo --online-status in make test rather than --sequence
Gerald W. Carter [Wed, 23 Apr 2008 16:26:35 +0000 (11:26 -0500)]
Use wbinfo --online-status in make test rather than --sequence
(This used to be commit f8c364da94fac96450116be980e38ddddd3f304a)

16 years agoMark a domain offline in the wbcDomainInfo structure using the domain_flags.
Gerald W. Carter [Tue, 22 Apr 2008 20:29:53 +0000 (15:29 -0500)]
Mark a domain offline in the wbcDomainInfo structure using the domain_flags.

Use the existing domain_flags fiueld in wbcDomainInfo to set a bit if the
domain is marked as offline by Winbind.
(This used to be commit 59cfba2c3d6d4594f08cbe3b7295ab36a7cfb044)

16 years agoRename WBC_DOMAIN_XXX domain flags to WBC_DOMINFO_DOMAIN_XXX
Gerald W. Carter [Tue, 22 Apr 2008 17:22:59 +0000 (12:22 -0500)]
Rename WBC_DOMAIN_XXX domain flags to WBC_DOMINFO_DOMAIN_XXX

Better consistency with the othre classes of WBC_DOMINDO_XXX_YYYY flags.
(This used to be commit 1cb2305fc96be0c190621f7c86c0476e4ea1fff7)

16 years agoAdding DTD from svn:externals link in samba-docs SVN repo
Gerald W. Carter [Tue, 22 Apr 2008 15:31:22 +0000 (10:31 -0500)]
Adding DTD from svn:externals link in samba-docs SVN repo
(This used to be commit 54b82bc95d4af41942949291846266d89d3e29f2)

16 years agoMoving docs tree to docs-xml to make room for generated docs in the release tarball.
Gerald W. Carter [Tue, 22 Apr 2008 15:09:40 +0000 (10:09 -0500)]
Moving docs tree to docs-xml to make room for generated docs in the release tarball.
(This used to be commit 9f672c26d63955f613088489c6efbdc08b5b2d14)

16 years agoNext update of VFS modules development guide
Alexander Bokovoy [Tue, 15 Apr 2008 14:53:18 +0000 (14:53 +0000)]
Next update of VFS modules development guide
(This used to be commit d2c86fef8ce46e6ff265d472af3de671962c1a58)

16 years agoUse title from a linked item to show up as text of the link if there is no endterm...
Alexander Bokovoy [Tue, 15 Apr 2008 07:37:36 +0000 (07:37 +0000)]
Use title from a linked item to show up as text of the link if there is no endterm or content in the link itself
(This used to be commit cbf242ab8cdec36fd24d92b6855381a355a68098)

16 years agoUse indexterm instead of term in expansion xslts
Alexander Bokovoy [Tue, 15 Apr 2008 07:35:29 +0000 (07:35 +0000)]
Use indexterm instead of term in expansion xslts
(This used to be commit dfa2f5defa42070f46277441caf1cc038c73937a)

16 years agoFix numbering in the Samba3 developer's guide
Alexander Bokovoy [Tue, 15 Apr 2008 07:26:30 +0000 (07:26 +0000)]
Fix numbering in the Samba3 developer's guide
(This used to be commit 1b8d80f7ae36e049588f4e4fe767214ea0171af7)

16 years agoSwitch to SVG and Inkscape to generate pictures instead of Dia.
Alexander Bokovoy [Mon, 14 Apr 2008 15:39:30 +0000 (15:39 +0000)]
Switch to SVG and Inkscape to generate pictures instead of Dia.
This was discussed months ago and with Inkscape getting better and more clear in SVG processing
it is now a preffered tool to create and process vector images.
(This used to be commit 2575ceec2a817156832ce84e80a97923f10ecbe9)

16 years agoRemove smbconfexample check from test index.xml, it is not used anymore
Alexander Bokovoy [Mon, 14 Apr 2008 15:37:20 +0000 (15:37 +0000)]
Remove smbconfexample check from test index.xml, it is not used anymore
(This used to be commit e392bbacb19b653bd567f1cb7e0bf10cc3957d0e)

16 years agoPrettify attributions
Alexander Bokovoy [Mon, 14 Apr 2008 15:36:39 +0000 (15:36 +0000)]
Prettify attributions
(This used to be commit e42baa19dc0b472a8a2d39a299a478726687d402)

16 years agoAdd small preface to a VFS guide. More to come.
Alexander Bokovoy [Mon, 14 Apr 2008 15:35:45 +0000 (15:35 +0000)]
Add small preface to a VFS guide. More to come.
(This used to be commit 9de9b5852c925a91e90651f28837a86ecd2e9e21)

16 years agoAdd first cut at networkless build instructions for samba-docs
Alexander Bokovoy [Sun, 13 Apr 2008 20:11:27 +0000 (20:11 +0000)]
Add first cut at networkless build instructions for samba-docs
(This used to be commit 86bfaa5a1ccc1feff567e3ce5a5374a7b58d65d8)

16 years agoAttempt to add DTDs as svn external repository for build
Alexander Bokovoy [Sun, 13 Apr 2008 19:54:15 +0000 (19:54 +0000)]
Attempt to add DTDs as svn external repository for build
(This used to be commit 850cf98b5a6fa810a744e273cb8482e145c888f2)

16 years agoCorrect usage of multiple LDAP servers as passdb backend. Patch from Björn Jacke...
Karolin Seeger [Mon, 7 Apr 2008 15:36:23 +0000 (15:36 +0000)]
Correct usage of multiple LDAP servers as passdb backend. Patch from Björn Jacke <bj@sernet.de>
(This used to be commit 9b9c86c3a4a63a254b45db75b9bbc69ef8896c2f)

16 years agoCorrect description of cups options. Patch from Björn Jacke <bj@sernet.de>.
Karolin Seeger [Mon, 7 Apr 2008 15:10:14 +0000 (15:10 +0000)]
Correct description of cups options. Patch from Björn Jacke <bj@sernet.de>.
(This used to be commit d415df59b3084d1463dbc3b8079cb3c9323b3304)

16 years agoForgot to add these macros to a samba-docs repository
Alexander Bokovoy [Mon, 7 Apr 2008 11:08:19 +0000 (11:08 +0000)]
Forgot to add these macros to a samba-docs repository
(This used to be commit b0df61bb4d184eb2b20ff5e9c7876721e44832dd)

16 years agoFix more entries with back slashes that need to use literal formatting
Alexander Bokovoy [Mon, 7 Apr 2008 05:43:55 +0000 (05:43 +0000)]
Fix more entries with back slashes that need to use literal formatting
(This used to be commit 0dd087ade47d3dc7e916e5c661ea99b6a0ac343d)

16 years agoFix typo
Alexander Bokovoy [Sun, 6 Apr 2008 20:55:25 +0000 (20:55 +0000)]
Fix typo
(This used to be commit 042dc3be948529a411570d3f6073264ea8d3c880)

16 years agoInsert space inside this very long string. It is arguable how to fix it properly...
Alexander Bokovoy [Sun, 6 Apr 2008 20:54:09 +0000 (20:54 +0000)]
Insert space inside this very long string. It is arguable how to fix it properly but at least man pages good now
(This used to be commit 9303a7ba860f480e1bfca2f23f1319993762f177)

16 years agoRefresh our XSL templates to work with current docbook xslt for manpages
Alexander Bokovoy [Sun, 6 Apr 2008 20:29:06 +0000 (20:29 +0000)]
Refresh our XSL templates to work with current docbook xslt for manpages
(This used to be commit fa20959680ce87b549e4534023ecec399d158b84)

16 years agoAdd man page metadata fields that are used by temprorary manpages XSLT
Alexander Bokovoy [Sun, 6 Apr 2008 20:26:45 +0000 (20:26 +0000)]
Add man page metadata fields that are used by temprorary manpages XSLT
(This used to be commit b2f3f38e57d96132f2befb13359306848c998ffc)