1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

24047 Commits

Author SHA1 Message Date
Günther Deschner
754e646bec IDL: add nbt_netlogon_version.
Guenther
(This used to be commit 5963bbea82bf0c11158bd1db00710c3157299bcc)
2008-04-30 00:34:43 +02:00
Günther Deschner
fe2c8e38d3 rpcclient: fix another srv_name_slash.
Guenther
(This used to be commit de946e6158526ec109b0c3381bab6e6d8e9cc1b2)
2008-04-29 20:22:02 +02:00
Günther Deschner
7a6f33e3d8 _netr_LogonSamLogon: fix lm session key length.
Thanks Volker for pointing this out.

Guenther
(This used to be commit 7ccca9a004c7a4794781cbd7c703c53a0481bd51)
2008-04-29 20:22:02 +02:00
Günther Deschner
ecab49a4d3 Re-run make idl.
Guenther
(This used to be commit 89284792722ab38d98e874e477c7a4046ee2aba0)
2008-04-29 20:22:02 +02:00
Günther Deschner
aede77b258 IDL: Add DFS_MANAGER_VERSION_W2K8.
Guenther
(This used to be commit 85a758c0b8398b682450b692744f7a49c7734faf)
2008-04-29 20:22:02 +02:00
Günther Deschner
1223574c7b netapi: fix returned name buffer in NetGetJoinInformation_r().
Guenther
(This used to be commit 0e8e05d556a7f84e500cca3fa858f9b4a9522a5f)
2008-04-29 20:22:01 +02:00
Günther Deschner
d0411c19dc errors: add WERR_NOT_FOUND.
Guenther
(This used to be commit b9ac03bdfa5763c713674acd966ab5d4371992a5)
2008-04-29 20:22:01 +02:00
Günther Deschner
ad73cb11a2 Merge data_blob_hex_string from Samba4.
Guenther
(This used to be commit 686d8939d90eab958d3a352fe53917ba7a17f39a)
2008-04-29 20:22:01 +02:00
Jeremy Allison
0173eeb3b5 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)
2008-04-28 15:06:08 -07:00
Steven Danneman
778a5414b1 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)
2008-04-26 08:11:20 -07:00
Jeremy Allison
17ade782b9 Sync up client/mount.cifs.c with v3-2-test.
Jeremy.
(This used to be commit 7a724d78e11f016f154c0029dc394ce133f41110)
2008-04-25 09:29:11 -07:00
Gerald W. Carter
c7a42797c8 Setting version to 3.3.0pre1
(This used to be commit 4dd00987be6ac0dbc706d9148472846d95f3b882)
2008-04-25 08:35:27 -05:00
Günther Deschner
53672f196f IDL: Add autogenerated drsuapi files.
Guenther
(This used to be commit 192ffa3835c407d5603f47c1633a075869daae01)
2008-04-25 14:49:31 +02:00
Günther Deschner
dddac2bc8f errors: add WERR_INVALID_DOMAINNAME.
Guenther
(This used to be commit b11a5e70d38239fb50ba4606656e2168cc398a12)
2008-04-25 14:49:31 +02:00
Karolin Seeger
ea56d4a234 mount.cifs: Zero mountpassword content before freeing.
Karolin
(This used to be commit d99a31848bd2172c15500dd61ce30fef963c1ac6)
2008-04-25 12:40:54 +02:00
Volker Lendecke
9de291e671 Attempt to fix the non-krb build
(This used to be commit 31d80a476701c89bf236997f2ab68bd2765579bd)
2008-04-25 12:36:39 +02:00
Volker Lendecke
79fae5082a Add basic ncacn_ip_tcp client infrastructure
(This used to be commit 11072ccc7aeb6e087e78cea83959a2f6e0b2f837)
2008-04-25 11:12:52 +02:00
Volker Lendecke
63e0884df5 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)
2008-04-25 11:12:52 +02:00
Volker Lendecke
cf182c0a76 Introduce rpccli_pipe_txt(), describing a pipe for debug messages
(This used to be commit 83892d51de0dcdaeae18bc34d03eefefc95ff601)
2008-04-25 11:12:52 +02:00
Volker Lendecke
eb5582d28a cli_rpc_pipe_open_noauth must take the user/domain from the smb session
(This used to be commit 6f08128cf2722618e74b603e180e7e2a83d7d07a)
2008-04-25 11:12:52 +02:00
Volker Lendecke
324e92ea67 Make use of rpccli_xxx_bind_data
(This used to be commit f9bc336affd2ce21a3c62880ecea2622f35653d1)
2008-04-25 11:12:51 +02:00
Volker Lendecke
253b0b8868 Create rpccli_xxx_bind_data functions
These functions create the auth data for the later bind
(This used to be commit 630b9c241cb6db758f8290420a38af452569e903)
2008-04-25 11:12:51 +02:00
Volker Lendecke
862d7e32b9 Move user/domain from rpc_pipe_client to cli_pipe_auth_data
(This used to be commit 42de50d2cd43e760d776694f7b5f003ba51d7f84)
2008-04-25 11:12:50 +02:00
Volker Lendecke
9e9d40d097 Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
(This used to be commit f665afaaa3eff9ef54112e08ed034a6e1bb30edc)
2008-04-25 11:12:50 +02:00
Jeremy Allison
501562f15c 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)
2008-04-24 15:02:23 -07:00
Jeremy Allison
189eb93b73 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)
2008-04-24 14:04:47 -07:00
Günther Deschner
051ff45c60 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)
2008-04-24 22:01:52 +02:00
Günther Deschner
b77601a4b7 mailslot: allow to give back struct nbt_ntlogon_packet.
Guenther
(This used to be commit 2b178dcae608ecc05f62593a7a0c2a127b8b7ca2)
2008-04-24 22:01:52 +02:00
Günther Deschner
012d678211 mailslot: make sure we are looking at the correct reply structure.
Guenther
(This used to be commit c6ce07fdf57c8b63ba6d72b622be261723cb55e3)
2008-04-24 22:01:51 +02:00
Günther Deschner
e66d452466 mailslot: allow to define nt_version in send_getdc_request().
Guenther
(This used to be commit ce3728191b23badfd5eb92701e4cebf84273b61e)
2008-04-24 22:01:51 +02:00
Günther Deschner
12b9be6d5e rpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().
Guenther
(This used to be commit c15b5d73badafdc93066197aefaaaa72e37a8b99)
2008-04-24 22:01:51 +02:00
Jeremy Allison
9174e864fe 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)
2008-04-24 10:24:05 -07:00
Volker Lendecke
0c4093a234 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)
2008-04-23 22:18:26 +02:00
Gerald W. Carter
5c3b9a38f5 Use wbinfo --online-status in make test rather than --sequence
(This used to be commit f8c364da94fac96450116be980e38ddddd3f304a)
2008-04-23 11:26:35 -05:00
Gerald W. Carter
de154dcf92 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)
2008-04-23 08:47:50 -05:00
Gerald W. Carter
5984097e09 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)
2008-04-23 08:47:50 -05:00
Michael Adam
65c0fd5920 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
(This used to be commit e489f3d988feafe35b486b31a9e60c2399e6a6e7)
2008-04-23 14:55:51 +02:00
Holger Hetterich
7a407d5927 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.
(This used to be commit fcd35232e111f9b046ae35d939d08c29d0d43438)
2008-04-23 13:57:14 +02:00
Volker Lendecke
c02fd606e3 Correctly initialize lp_load in smbstatus in the presence of registry on tdb2
(This used to be commit c4f7bee9238db536a7d5215cebb0bf37f757dfad)
2008-04-23 11:35:51 +02:00
Volker Lendecke
82e36e083d 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.
(This used to be commit 727127f1dcd49b31b5a48cc3f9314aa2380d60e1)
2008-04-23 11:12:25 +02:00
Michael Adam
0ff2168bb6 libsmbconf: remove unnecessary talloc success check from smbconf_txt.c
talloc_stackframe() panics on NOMEM.

Michael
(This used to be commit dee57ad025e7ad9971e44ea30b6aab3806c06fc6)
2008-04-23 01:49:11 +02:00
Michael Adam
21e82d7afc libsmbconf: remove unnecessary talloc success checks from smbconf_reg.c
talloc_stackframe panics on NOMEM.

Michael
(This used to be commit 03fd30eef803ff2718e7af618d38944d56ccd329)
2008-04-23 01:48:26 +02:00
Michael Adam
8cf78fd594 libsmbconf: remove unnecessary talloc success checks from smbconf.c
talloc_stackframe() panics on NOMEM.

Michael
(This used to be commit be4f8447ccd044563f6b12793ea64d9f38741861)
2008-04-23 01:47:33 +02:00
Michael Adam
fb9232c0a9 libsmbconf: rewrite API to use smbconf_service struct
instead of lists of strings and counters directly...

Michael
(This used to be commit 17415e2dc457ce41793a7e28e71f72c538c19c61)
2008-04-23 01:43:31 +02:00
Michael Adam
5dd54c58b4 libsmbconf: add a struct smbconf_service to hold the parameter names + values.
Michael
(This used to be commit 8118a8348f36b28fa4d46b42a104097cefa33a4d)
2008-04-22 23:46:13 +02:00
Günther Deschner
bd8cb7b564 rpcclient: Add getdispinfoidx command.
Guenther
(This used to be commit 7d8461d080c92a83bd7a8d168fdf1fe98e8bec9a)
2008-04-22 23:11:53 +02:00
Günther Deschner
071d0a4e50 IDL: rerun make idl.
Guenther
(This used to be commit c92b585cc42ba9f42727512c08c896ee40e5e319)
2008-04-22 23:11:21 +02:00
Günther Deschner
15908821ba IDL: Fix IDL for samr_GetDisplayEnumerationIndex{2}.
Guenther
(This used to be commit cb0b0fd2684b63257421aba599f9d2111c0438bf)
2008-04-22 23:10:35 +02:00
Volker Lendecke
95c84dd791 Make nsstest valgrind-clean: buf is referred to by the parsed grp struct
(This used to be commit 20ddbcaa0c113646cea774c36209f382cada50b0)
2008-04-22 16:55:04 +02:00
Michael Adam
a376e2bf49 libsmbconf: fix comment headers in smbconf.h
Michael
(This used to be commit 54c0461679642b38653f803e7b21d865472f3f91)
2008-04-22 16:32:31 +02:00