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

24011 Commits

Author SHA1 Message Date
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 e489f3d988)
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 fcd35232e1)
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 c4f7bee923)
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 727127f1dc)
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 dee57ad025)
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 03fd30eef8)
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 be4f8447cc)
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 17415e2dc4)
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 8118a8348f)
2008-04-22 23:46:13 +02:00
Günther Deschner
bd8cb7b564 rpcclient: Add getdispinfoidx command.
Guenther
(This used to be commit 7d8461d080)
2008-04-22 23:11:53 +02:00
Günther Deschner
071d0a4e50 IDL: rerun make idl.
Guenther
(This used to be commit c92b585cc4)
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 cb0b0fd268)
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 20ddbcaa0c)
2008-04-22 16:55:04 +02:00
Michael Adam
a376e2bf49 libsmbconf: fix comment headers in smbconf.h
Michael
(This used to be commit 54c0461679)
2008-04-22 16:32:31 +02:00
Michael Adam
03a9ee1520 libsmbconf: text backend remove comment references to "simple".
Michael
(This used to be commit 640b8ae7ad)
2008-04-22 16:11:38 +02:00
Michael Adam
b2425f88fa libsmbconf: rename smbconf_init_txt_simple() to smbconf_init_txt().
...for consistency.

Michael
(This used to be commit 3d1da73f66)
2008-04-22 16:11:37 +02:00
Michael Adam
9188c8e381 libsmbconf: rename text backend smbconf_txt_simple to smbconf_txt.
Michael
(This used to be commit dd9fe5aec4)
2008-04-22 16:11:37 +02:00
Volker Lendecke
9ffcc7966f 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.
(This used to be commit 5df75578ef)
2008-04-22 15:42:09 +02:00
Michael Adam
5a4db7eacb configure: fix a comment typo
Michael
(This used to be commit af2a1f15e6)
2008-04-22 14:13:48 +02:00
Günther Deschner
c27e661ad1 libnetjoin: identify type of domain early.
This finally enables joining AD using workgroup or realm name.

Guenther
(This used to be commit 0cf16e6b47)
2008-04-22 01:54:49 +02:00
Günther Deschner
aba7809188 build: fix the build.
Guenther
(This used to be commit 09a0001063)
2008-04-22 00:06:57 +02:00
Günther Deschner
de9186ecc6 dsgetdcname: Fix discover_dc_dns().
Guenther
(This used to be commit ec86deb349)
2008-04-22 00:05:05 +02:00
Günther Deschner
bd3991ac97 dsgetdcname: add very basic flat name support.
Guenther
(This used to be commit bb72d0b71e)
2008-04-22 00:04:25 +02:00
Volker Lendecke
b78453326b Remove the "pwd" struct from rpc_pipe_client
The only user of this was decrypt_trustdom_secret, and this only needs the NT
hash anyway.
(This used to be commit 3d8c2a47e6)
2008-04-21 23:36:05 +02:00
Günther Deschner
ba0bf87d96 net: Add libnetapi context to net's impressive list of globals.
Guenther
(This used to be commit 8a5fadf6a1)
2008-04-21 20:21:40 +02:00
Günther Deschner
e03a2ad01b IDL: rerun make idl.
Guenther
(This used to be commit 5e0ccaf0c0)
2008-04-21 20:21:40 +02:00
Günther Deschner
93e0c13626 IDL: now that we have nbt.idl, re-add it to the includes again.
Guenther
(This used to be commit d38c5f4a69)
2008-04-21 20:21:40 +02:00
Günther Deschner
bcbac69d1a cldap: avoid duplicate definitions so remove ads_cldap.h.
Guenther
(This used to be commit 538eefe22a)
2008-04-21 20:21:40 +02:00
Günther Deschner
1dd7ab38e7 cldap: add talloc context to ads_cldap_netlogon().
Guenther
(This used to be commit 4cee7b1bd5)
2008-04-21 20:21:40 +02:00
Günther Deschner
ba98dd4989 libads: Use libnbt for CLDAP reply parsing.
Guenther
(This used to be commit 751f3064a5)
2008-04-21 20:21:39 +02:00
Günther Deschner
84c87326fa IDL: re-run make idl.
Guenther
(This used to be commit f9d68ca363)
2008-04-21 20:21:39 +02:00
Günther Deschner
34762b7ece IDL: make nbt_cldap_netlogon_5 public.
Guenther
(This used to be commit f0917e8990)
2008-04-21 20:21:39 +02:00
Günther Deschner
8d87b54a9e IDL: Add NTLOGON_RESPONSE_FROM_PDC2 to nbt_logon_request.
Guenther
(This used to be commit 1724000a95)
2008-04-21 20:21:39 +02:00
Günther Deschner
1eca3f138c winbind: pass down existing talloc context.
Guenther
(This used to be commit 675bf42cff)
2008-04-21 20:21:39 +02:00
James Peach
6db1eba547 smbspool: Fix the smbspool build.
(This used to be commit a51cb3c1a9)
2008-04-21 11:19:22 -07:00
James Peach
582d813d79 smbspool: minor formatting cleanups.
(This used to be commit 831a09ae25)
2008-04-21 10:57:09 -07:00
James Peach
ab4bf4e499 smbspool: Run indent to approximate conding standards.
(This used to be commit 4244be792e)
2008-04-21 10:10:29 -07:00
James Peach
65357898ba smbspool: add my copyright.
(This used to be commit b294b2055a)
2008-04-21 09:29:07 -07:00
Mike Sweet
9fb111ba5f smbspool: Fix CUPS authentication protocol support.
There were a couple of places where we weren't checking for
authentication correctly. This chance fixes those places and properly
supports Kerberos where available.
(This used to be commit 8eff35bc4a)
2008-04-21 09:19:51 -07:00
Mike Sweet
7e166858c3 smbspool: fix Kerberos support for CUPS 1.3.
To summarize the changes, the patches remove the old (probably non-
working) Kerberos support code which is unnecessary with CUPS 1.3
and adds some checks on the NT status we get back to see whether
the connection error is related to authentication.  If so, we send
the ATTR: message to tell CUPS we need a username and password and
return exit code 2 so cupsd will do the right thing.

AUTH_USERNAME, AUTH_PASSWORD, and KRB5CCNAME are set and supported
by CUPS 1.3.  The new exit code is supported by CUPS 1.2.x and 1.3,
and it treated as a general failure in CUPS 1.1.  The ATTR: message
is only supported by CUPS 1.3, while CUPS 1.2 will assume the
"username,password" value we are setting.

The current code only uses the AUTH_* env vars if they are set.
If not, we fall back to the previous behavior.

I really can't tell whether the Kerberos code that was in there
would work at all. It did not work for Mac OS X which is why
I dropped it.
(This used to be commit 8c12c5cea0)
2008-04-21 09:16:01 -07:00
Andrew Bartlett
154f4837b3 Add in a nice big comment explaining why SamLogonEx matters.
Andrew Bartlett
(This used to be commit 87232351b5)
2008-04-21 17:48:31 +02:00
Günther Deschner
937091161b winbind: Use libnbt for NTLOGON SAMLOGON mailslot request and reply.
Guenther
(This used to be commit 2d6a1c5da6)
2008-04-21 11:03:32 +02:00
Günther Deschner
b437f09595 samlogoncache: Use data_blob_const in netsamlogon_cache_get.
Guenther
(This used to be commit f27a20f25c)
2008-04-21 10:25:28 +02:00
Michael Adam
0db7aba8af Remove redundant parameter fd from SMB_VFS_CLOSE().
Now all those redundant fd's have vanished from the VFS API.

Michael
(This used to be commit 1429453551)
2008-04-21 00:22:42 +02:00
Michael Adam
8c9060240e Slight reformatting of fd_close_posix(), while I'm at it.
Wrap lines and remove trailing space.

Michael
(This used to be commit 74ed53a115)
2008-04-21 00:21:24 +02:00
Michael Adam
2f8dde9ec8 Change fd_close_posix() to return int instead of NTSTATUS.
The errno is handed up through the VFS layer to the callers.

Michael
(This used to be commit d928e6648d)
2008-04-21 00:21:24 +02:00
Michael Adam
96e9e83ee0 Don't modify the fsp in fd_close_posix() anymore.
Now that it is inside the vfs layer, this function should
not alter the fsp (i.e. set fsp->fh->fd = -1) anymore.
That belongs above the vfs layer.

Michael
(This used to be commit df264bf3e0)
2008-04-21 00:21:24 +02:00
Michael Adam
3756467db6 Move the posix pending close functionality down into the VFS layer.
This hides the pending close fds from the outside. Call order
of SMB_VFS_CLOSE is reversed. Originally, it was:

fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close

And now it is:

fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close

This is in preparation of removing the fd parameter
from the SMB_VFS_CLOSE function. But it is also the right
place for the pending close calls anyways.

Michael
(This used to be commit 3cf56b124a)
2008-04-21 00:21:23 +02:00
Michael Adam
00210d773b loadparm: reformat - fix whitespace/tab
Michael
(This used to be commit 3acc0d84dc)
2008-04-21 00:21:23 +02:00
Michael Adam
4244655e5b loadparm: rename bNoIncludes to bAllowIncludeRegistry (inverting logic)
This is what that variable controls now...

Michael
(This used to be commit bba04a8fba)
2008-04-21 00:21:23 +02:00