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

24040 Commits

Author SHA1 Message Date
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
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
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
Jeremy Allison
cc23f91d63 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.
2008-04-24 10:24:05 -07:00
Volker Lendecke
4f4781c6d1 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 :-)
2008-04-23 22:18:26 +02:00
Gerald W. Carter
f8c364da94 Use wbinfo --online-status in make test rather than --sequence 2008-04-23 11:26:35 -05:00
Gerald W. Carter
59cfba2c3d 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.
2008-04-23 08:47:50 -05:00
Gerald W. Carter
1cb2305fc9 Rename WBC_DOMAIN_XXX domain flags to WBC_DOMINFO_DOMAIN_XXX
Better consistency with the othre classes of WBC_DOMINDO_XXX_YYYY flags.
2008-04-23 08:47:50 -05:00
Michael Adam
e489f3d988 winbindd_cache: simplify logic in new key length check for UA keys.
This reduces indentation by combining common code paths,
and wraps long lines.

Holger: sorry, I could not resist. I think it is much easier to
understand what is going on when we only have one check and
determine the max allowed key length in advance.

Michael
2008-04-23 14:55:51 +02:00
Holger Hetterich
fcd35232e1 winbindd_cache: recognize and allow longer UA keys
UA keys consist of a potientally large number of concatenated SID strings which
can grow much larger than 1024 bytes in complex environments. We catch those keys
and allow them exclusivly to be larger.
2008-04-23 13:57:14 +02:00
Volker Lendecke
c4f7bee923 Correctly initialize lp_load in smbstatus in the presence of registry on tdb2 2008-04-23 11:35:51 +02:00
Volker Lendecke
727127f1dc Increase level of debug msg when a regkey is not found
This is a pretty normal situation if you have "include=registry" set but no
configuration options have been set there yet.
2008-04-23 11:12:25 +02:00
Michael Adam
dee57ad025 libsmbconf: remove unnecessary talloc success check from smbconf_txt.c
talloc_stackframe() panics on NOMEM.

Michael
2008-04-23 01:49:11 +02:00
Michael Adam
03fd30eef8 libsmbconf: remove unnecessary talloc success checks from smbconf_reg.c
talloc_stackframe panics on NOMEM.

Michael
2008-04-23 01:48:26 +02:00
Michael Adam
be4f8447cc libsmbconf: remove unnecessary talloc success checks from smbconf.c
talloc_stackframe() panics on NOMEM.

Michael
2008-04-23 01:47:33 +02:00
Michael Adam
17415e2dc4 libsmbconf: rewrite API to use smbconf_service struct
instead of lists of strings and counters directly...

Michael
2008-04-23 01:43:31 +02:00
Michael Adam
8118a8348f libsmbconf: add a struct smbconf_service to hold the parameter names + values.
Michael
2008-04-22 23:46:13 +02:00
Günther Deschner
7d8461d080 rpcclient: Add getdispinfoidx command.
Guenther
2008-04-22 23:11:53 +02:00
Günther Deschner
c92b585cc4 IDL: rerun make idl.
Guenther
2008-04-22 23:11:21 +02:00
Günther Deschner
cb0b0fd268 IDL: Fix IDL for samr_GetDisplayEnumerationIndex{2}.
Guenther
2008-04-22 23:10:35 +02:00
Volker Lendecke
20ddbcaa0c Make nsstest valgrind-clean: buf is referred to by the parsed grp struct 2008-04-22 16:55:04 +02:00
Michael Adam
54c0461679 libsmbconf: fix comment headers in smbconf.h
Michael
2008-04-22 16:32:31 +02:00
Michael Adam
640b8ae7ad libsmbconf: text backend remove comment references to "simple".
Michael
2008-04-22 16:11:38 +02:00
Michael Adam
3d1da73f66 libsmbconf: rename smbconf_init_txt_simple() to smbconf_init_txt().
...for consistency.

Michael
2008-04-22 16:11:37 +02:00
Michael Adam
dd9fe5aec4 libsmbconf: rename text backend smbconf_txt_simple to smbconf_txt.
Michael
2008-04-22 16:11:37 +02:00
Volker Lendecke
5df75578ef Fix wbinfo --group-info if the winbind separator set to non \
In getgrsid_lookupsid_recv() we use parse_domain_user which itself looks at
lp_winbind_separator(). Thus when building up that group name we should better
use it as well.
2008-04-22 15:42:09 +02:00
Michael Adam
af2a1f15e6 configure: fix a comment typo
Michael
2008-04-22 14:13:48 +02:00
Günther Deschner
0cf16e6b47 libnetjoin: identify type of domain early.
This finally enables joining AD using workgroup or realm name.

Guenther
2008-04-22 01:54:49 +02:00
Günther Deschner
09a0001063 build: fix the build.
Guenther
2008-04-22 00:06:57 +02:00