1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

28373 Commits

Author SHA1 Message Date
Michael Adam
37dabf9317 registry: skip writes of existing keys in init_registry_data().
Michael
2008-04-30 12:42:33 +02:00
Michael Adam
7c5f1583cb 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
2008-04-30 12:42:32 +02:00
Michael Adam
3ab5a2f1b3 registry: check for existence of key init_registry_key and possibly save a write.
Michael
2008-04-30 12:42:32 +02:00
Michael Adam
207a0ece45 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
2008-04-30 12:42:32 +02:00
Michael Adam
3316541ac9 registry: use regdb_fetch_key_internal() in regdb_fetch_values().
Michael
2008-04-30 12:42:32 +02:00
Michael Adam
78f924ca05 registry: use regdb_fetch_key_internal() in regdb_fetch_keys().
Michael
2008-04-30 12:42:32 +02:00
Michael Adam
97bed9a236 registry: add a function for fetching a tdb record for a given keystring
regdb_fetch_key_internal()

Michael
2008-04-30 12:42:32 +02:00
Michael Adam
217233349b registry: combine talloc_strdup() and normalize_reg_path() in regdb_fetch_keys().
the talloc_strdup() call is just and extra allocation here.

Michael
2008-04-30 12:42:32 +02:00
Michael Adam
1e4d2310d0 registry: use normalize_reg_path() in regdb_fetch_keys()
instead of handcrafting normalization.

Michael
2008-04-30 12:42:31 +02:00
Michael Adam
569f9844e9 registry: use dbwrap_fetch_bystring() in regdb_fetch_values().
Michael
2008-04-30 12:42:31 +02:00
Michael Adam
87a58140f0 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
2008-04-30 12:42:31 +02:00
Günther Deschner
067a6931a2 build: fix some build dependencies.
Guenther
2008-04-30 01:11:51 +02:00
Günther Deschner
08b5758e00 Re-run make idl.
Guenther
2008-04-30 01:11:47 +02:00
Günther Deschner
5a46f34fa3 IDL: use nbt_dc_sock_addr.
Guenther
2008-04-30 01:11:46 +02:00
Günther Deschner
163f17f84b IDL: move some netlogon DS flags to NBT where they actually showup first.
Guenther
2008-04-30 00:56:31 +02:00
Günther Deschner
5f5658b3dc IDL: use samr_AcctFlags in nbt_ntlogon_sam_logon.
Guenther
2008-04-30 00:35:57 +02:00
Günther Deschner
5963bbea82 IDL: add nbt_netlogon_version.
Guenther
2008-04-30 00:34:43 +02:00
Günther Deschner
de946e6158 rpcclient: fix another srv_name_slash.
Guenther
2008-04-29 20:22:02 +02:00
Günther Deschner
7ccca9a004 _netr_LogonSamLogon: fix lm session key length.
Thanks Volker for pointing this out.

Guenther
2008-04-29 20:22:02 +02:00
Günther Deschner
8928479272 Re-run make idl.
Guenther
2008-04-29 20:22:02 +02:00
Günther Deschner
85a758c0b8 IDL: Add DFS_MANAGER_VERSION_W2K8.
Guenther
2008-04-29 20:22:02 +02:00
Günther Deschner
0e8e05d556 netapi: fix returned name buffer in NetGetJoinInformation_r().
Guenther
2008-04-29 20:22:01 +02:00
Günther Deschner
b9ac03bdfa errors: add WERR_NOT_FOUND.
Guenther
2008-04-29 20:22:01 +02:00
Günther Deschner
686d8939d9 Merge data_blob_hex_string from Samba4.
Guenther
2008-04-29 20:22:01 +02:00
Jeremy Allison
fbd99071f9 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.
2008-04-28 15:06:08 -07:00
Karolin Seeger
70f6966099 man smbcacls: Correct possible flag values.
This patch fixes bug #620.
Thanks to Satoh Fumiyasu <fumiyas@osstech.co.jp>!

Karolin
2008-04-28 15:26:57 +02:00
Steven Danneman
f1a5405409 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().
2008-04-26 08:11:20 -07:00
Jeremy Allison
7a724d78e1 Sync up client/mount.cifs.c with v3-2-test.
Jeremy.
2008-04-25 09:29:11 -07:00
Gerald W. Carter
4dd00987be Setting version to 3.3.0pre1 2008-04-25 08:35:27 -05:00
Günther Deschner
192ffa3835 IDL: Add autogenerated drsuapi files.
Guenther
2008-04-25 14:49:31 +02:00
Günther Deschner
b11a5e70d3 errors: add WERR_INVALID_DOMAINNAME.
Guenther
2008-04-25 14:49:31 +02:00
Michael Adam
a47abfa927 docs: fix the manpage output of parameters list in smb.conf.5.
There were some newlines missing in the template for samba:parameters.

Michael
2008-04-25 14:10:07 +02:00
Michael Adam
79f53a0682 docs: fix indentation in expand-smbxonfdoc.
Michael
2008-04-25 14:10:07 +02:00
Karolin Seeger
d99a31848b mount.cifs: Zero mountpassword content before freeing.
Karolin
2008-04-25 12:40:54 +02:00
Volker Lendecke
31d80a4767 Attempt to fix the non-krb build 2008-04-25 12:36:39 +02:00
Volker Lendecke
11072ccc7a Add basic ncacn_ip_tcp client infrastructure 2008-04-25 11:12:52 +02:00
Volker Lendecke
3433f430b0 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
2008-04-25 11:12:52 +02:00
Volker Lendecke
83892d51de Introduce rpccli_pipe_txt(), describing a pipe for debug messages 2008-04-25 11:12:52 +02:00
Volker Lendecke
6f08128cf2 cli_rpc_pipe_open_noauth must take the user/domain from the smb session 2008-04-25 11:12:52 +02:00
Volker Lendecke
f9bc336aff Make use of rpccli_xxx_bind_data 2008-04-25 11:12:51 +02:00
Volker Lendecke
630b9c241c Create rpccli_xxx_bind_data functions
These functions create the auth data for the later bind
2008-04-25 11:12:51 +02:00
Volker Lendecke
42de50d2cd Move user/domain from rpc_pipe_client to cli_pipe_auth_data 2008-04-25 11:12:50 +02:00
Volker Lendecke
f665afaaa3 Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client 2008-04-25 11:12:50 +02:00
Jeremy Allison
205c352cae Fix from Martin Zielinski <mz@seh.de>. Don't delete files when
they're in use by other drivers.
Jeremy.
2008-04-24 15:02:23 -07:00
Jeremy Allison
3fc1ab210b 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.
2008-04-24 14:04:47 -07:00
Günther Deschner
d8b2ff3c87 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
2008-04-24 22:01:52 +02:00
Günther Deschner
2b178dcae6 mailslot: allow to give back struct nbt_ntlogon_packet.
Guenther
2008-04-24 22:01:52 +02:00
Günther Deschner
c6ce07fdf5 mailslot: make sure we are looking at the correct reply structure.
Guenther
2008-04-24 22:01:51 +02:00
Günther Deschner
ce3728191b mailslot: allow to define nt_version in send_getdc_request().
Guenther
2008-04-24 22:01:51 +02:00
Günther Deschner
c15b5d73ba rpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().
Guenther
2008-04-24 22:01:51 +02:00