1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

17895 Commits

Author SHA1 Message Date
Jeremy Allison
9421a0a9cd r19207: Properly canonicalize incoming names to the
NSS protocols auth, chauthtok, logoff, ccache_ntlm_auth.
That way we ensure winbindd only deals with fully
qualified names internally. The NSS protocols
auth_crap and chng_pswd_auth_crap should be fixed
to do the same thing.
Jeremy.
(This used to be commit dbd2454d3337f64cddbdaf39e9efd6505e6b2590)
2007-10-10 12:15:21 -05:00
Günther Deschner
b405a39714 r19206: Jeremy, for some reason storing a value-less entry in TDB does not work
anymore in 3_0. I'm just adding a time(NULL) as value for the
WINBINDD_OFFLINE key.

Guenther
(This used to be commit 2bdf9f140f76d6eb73b34148c47f7d3447e2e563)
2007-10-10 12:15:21 -05:00
Volker Lendecke
9d20474a48 r19203: Part two of returning our real name. This code is a bit ancient... :-)
(This used to be commit 370c24ba2ad3bce29929886f96d626e698da0238)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
442f5526a0 r19193: merge from samba4:
fixed another checker warning and a possible error on allocation
failure

metze
(This used to be commit d64583a763ffcff27f0bd6761196f7d554d44849)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
c9b797b3ba r19192: merge from samba4:
ensure that data values from ldap libs are null terminated, to allow
ldb_msg_find_attr_as_string() to work correctly.

Thanks to Jim Myers for spotting this!

metze
(This used to be commit a5ea82bb05fb9d5c1842f9a105f6a10e39141c89)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
85281ec526 r19191: merge from samba4:
fix checker warnings

metze
(This used to be commit 93a0fe093b4614a18e99d0c3a71c5c8af2e57e4f)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
25e233db57 r19190: merge from samba4:
remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.

metze
(This used to be commit b81cae4180452d2a14c445392fd828032e6eddec)
2007-10-10 12:15:21 -05:00
Günther Deschner
046a4756d4 r19189: No display name is normal for some GPOs.
Guenther
(This used to be commit 1ec1c5dd17c498d5a8a9804ad2ef114fb7603c31)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
ca79df9061 r19185: merge comment from samba4
metze
(This used to be commit 256b83820168d14df2b15a75d8681be5f418ddf8)
2007-10-10 12:15:20 -05:00
Volker Lendecke
cfed7a5a71 r19184: W2k3 returns its name for the GetServerInfo RAP call. Do the same.
Implement 'net rap server name'.

Volker
(This used to be commit 919385ed2a2a07e848bc0baaac9ed3d1964d4386)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
d63a3e05a2 r19183: merge from samba4:
don't crash on invalid utf8 chars

metze
(This used to be commit 71e1f8550f96eaaae7e4fc4d02eb36f1d894abc8)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
617c39ab5f r19182: merge from samba4:
add ldb_set_create_perms() function to set the create_perms after
ldb_init() and before ldb_connect()

metze
(This used to be commit dd9d469eef337954b6aee4c86ac0691f52812456)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
6c6842ee94 r19181: merge from samba4:
with "export MAKE_TEST_KEEP_PCAP=yes" make test
doesn't delete the generated pcap files

metze
(This used to be commit 74212c30563826e2248c1cb16e4c953a28a25488)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
354ddf6c57 r19179: remove difference with samba4
metze
(This used to be commit e97e1ffea8e124c8001cf33ecac7500ae875f42f)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
ebc2f440e7 r19177: merge from samba4:
fix the standalone build of socket_wrapper by not using
samba's DLIST_ macros

metze
(This used to be commit bc7b2e8db8fb34d6f321cd6b13b74e58945d7124)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
e4e3dc064d r19172: merge from samba4:
change the socket wrapper license to
what heimdal uses...

metze
(This used to be commit d19c19ae4be3f3ad349b72ba3181051bb4da335e)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
4a83c77c95 r19170: use a very clever trick to pass the binary name to the
gdb_backtrace script, I never noticed that %$(envvar)
exists...

Thanks to Bjoern Jacke for the suggestion!

metze
(This used to be commit 12a37bab3eafdabeb4f0dc23254bdec41860cd87)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
0e66bafd47 r19169: port the trick to only display the smbd and nmbd log output
of the current test

metze
(This used to be commit f668d4839de0ec98fcacf2efb6a69970757bebdd)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
e739baf3a1 r19168: use the correct configuration
metze
(This used to be commit bf90ac567fc809bb8949b066e822a88170b73ac5)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
78d21c7785 r19164: merge the gdb_backtrace script from samba4
this more portable and try to make use of ladebug on Tru64,
but that only works when the binary is passed as 2nd arg to gdb_backtrace
as Tru64 doesn't know /proc/${PID}/exe

we need to find a way to pass the progname in 'panic action'
in samba3

metze
(This used to be commit 2f55fd82ff5db82974f91648cc386daa423e38be)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
628fc4b53a r19163: pass always a mem_ctx to functions and a ldb_context where needed
It would be nice if someone can merge that to samba4,
otherwise I'll merge that to samba4 on monday

metze
(This used to be commit 6bc42f31ce294f2bd50ffbd536e1ee42607ef799)
2007-10-10 12:15:19 -05:00
Günther Deschner
7b84b133fe r19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
gives just any DC), also make sure to set timeouts in rpcclient
accordingly so that we actually get the DC's reply.

Guenther
(This used to be commit 6091c8152a3998d2503cb0911a217ee904509633)
2007-10-10 12:15:18 -05:00
Günther Deschner
e0b6961ac5 r19160: Add new WERR codes seen by working with NETLOGON getdcname.
Guenther
(This used to be commit 78b0124a6e7051da2df3157f02593f06f7f31a1b)
2007-10-10 12:15:18 -05:00
Jeremy Allison
00056ab431 r19159: The getdc call can take a long time. Allow for timeouts.
Jeremy.
(This used to be commit 99bebb65273c78d9867254c47438577bb21af4ee)
2007-10-10 12:15:18 -05:00
Jim McDonough
2395cd57f8 r19158: Remove root and nobody users from ldif, from Björn Jacke
(This used to be commit 17880d6cadbb0b1b428430c26bb4b4545eb834ff)
2007-10-10 12:15:18 -05:00
Volker Lendecke
9e69c4fbea r19157: Fix the build
(This used to be commit 3fc328dadeb5b4b35c6d58ba26c3ac9d1fcf4015)
2007-10-10 12:15:18 -05:00
Volker Lendecke
9d8d4f24b1 r19156: Make enumprinters use the share iterators.
Volker
(This used to be commit 9b1759617ce7841a78d9f792254a9e4fa814858f)
2007-10-10 12:15:18 -05:00
Jeremy Allison
80b4e7ae7d r19155: Fix debug message.
Jeremy.
(This used to be commit 42e5481ce4bebc65040d466b49e3c45cd4e79f5d)
2007-10-10 12:15:17 -05:00
Volker Lendecke
e918cf3abf r19154: Trivial logic simplification: Get rid of two indentation levels. Survives the
consistency checks just checked into Samba4.

Volker
(This used to be commit c48bb4b37b32fac9d01d243290532641d3701ec7)
2007-10-10 12:15:17 -05:00
Volker Lendecke
9315bcd1e3 r19151: Create some dummy printers in the build farm
(This used to be commit c26a20e6d5ac36be137fa63f477155a9613f050f)
2007-10-10 12:15:16 -05:00
Jeremy Allison
10ada62bed r19148: Finish last nights patch - make offline
work again. Still under test.
Jeremy.
(This used to be commit 40a455db78f805daa6bfeb9e78fb78dcc12fd9a7)
2007-10-10 12:15:16 -05:00
Volker Lendecke
1362fd0b68 r19147: This is WRONG, but the way the VFS works this is the only fix to get rid of
this type-punned warning.

Volker
(This used to be commit d815b1a7e9609a760f93433bf022826f58f256db)
2007-10-10 12:15:16 -05:00
Stefan Metzmacher
b61d1e665e r19145: talloc_reference() can fail!
metze
(This used to be commit e4f2183684da90a67bc6a635d008b72a6dd3d0dd)
2007-10-10 12:15:16 -05:00
Günther Deschner
adc299bd08 r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Guenther
(This used to be commit 44e228ac796fca2db8509915067511ed705032bf)
2007-10-10 12:15:16 -05:00
Stefan Metzmacher
a6e45f0da5 r19137: that looks nicer:-)
metze
(This used to be commit db40552d9471f4a8ce2c5c724319a4eb242ed24a)
2007-10-10 12:15:16 -05:00
Stefan Metzmacher
3652a2360f r19135: fix bugs...
- passing mem_ctx as ldb_context is a bad idea!
- naming a static function talloc_ is also bad and misleading

metze
(This used to be commit 0523ad249335c6094854bc9cefb46e2095f4c0ba)
2007-10-10 12:15:15 -05:00
Volker Lendecke
695c6fbe00 r19133: More C++ warnings -- Merge across?
(This used to be commit c879ed3d1edffeda629dc1e05031dca91c1a1e30)
2007-10-10 12:15:15 -05:00
Volker Lendecke
fd1cf23567 r19132: Fix some C++ warnings. Is there interest to have them in Samba4 as well?
I have some problems resolving the last 3 ones in attrib_handlers.c. In line
251 the function ldb_dn_explode_casefold is called with mem_ctx as the first
argument. Looking at ldb_dn_explode_casefold I see that the first argument it
expects is a struct ldb_context. I could certainly add a cast to (struct
ldb_context *) to that call, but I would assume that this is the wrong fix. Is
it possible that attrib_handlers.c:251 and :254 should have ldb and not
mem_ctx as the first argument?

Can anybody from Samba4 clarify this for me and apply the correct fix?

Thanks a lot.

Volker
(This used to be commit 26f2cb71ebf00b2c6f356da5f32384f7fa083521)
2007-10-10 12:15:15 -05:00
Stefan Metzmacher
d898cbce90 r19130: fix the logic for the AC_PROG_CC_C99 check
metze
(This used to be commit 21516dc5ac95e7e5d6a7d7f890d42742b36f2454)
2007-10-10 12:15:14 -05:00
Volker Lendecke
2941d46b82 r19127: Fix bug 4152
(This used to be commit 70038e8f7b3042c2732e7f8267cab0499972a819)
2007-10-10 12:15:14 -05:00
Volker Lendecke
43141d64ca r19126: Fix some uninitialized variable warnings
(This used to be commit 90bfa3461038f5d179525dec0cf5b3f137e927e0)
2007-10-10 12:15:14 -05:00
Andrew Tridgell
803d33a326 r19125: merge from samba4
(This used to be commit 65e1500ae6b5ca6334a63f4a18272568202bc048)
2007-10-10 12:15:14 -05:00
Stefan Metzmacher
a0a47d8149 r19124: merge from samba4:
pass LDFLAGS from configure to Makefile

metze
(This used to be commit 7ba9fddacb97153405bf0bec16b3a868e4e323e0)
2007-10-10 12:15:14 -05:00
Stefan Metzmacher
1b80624c57 r19121: try to get rid of the difference between in system/iconv.h
between samba 3 and 4.

metze
(This used to be commit 04031a9fca037ad77cca0ba0da6801d5017521ba)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
a856a88ba4 r19119: try to be more portable...
metze
(This used to be commit 380e647534730313ee57d1acf2756708b7c9676d)
2007-10-10 12:15:13 -05:00
Jeremy Allison
4be3f7665c r19105: Ok - this is currently untested (but I'm testing it at
the moment) but winbindd isn't run in the build farm
so hopefully won't break anything too badly - I don't
want to lose this.

If winbindd starts offline then it falls back to using
MS-RPC backend. On going online it needs to reset the
backend and try and go to using the AD backend code if
possible, as the MS-RPC sequence number fetch just returns
1 as the sequence number if run against an AD DC.

In addition, the winbindd async child may end up
with the AD backend whilst the main winbindd - which
still contacts the DC for some non-async calls, is
left using MS-RPC. This can cause some trouble (as
you can imagine :-).

Attempt to ensure both main winbindd and async children
us AD backends on going online.

Jeremy.
(This used to be commit 5efd4b04b89ace4b264e9ac37a90e202749792be)
2007-10-10 12:15:13 -05:00
Jeremy Allison
06e36b4e18 r19104: Fix from Björn JACKE <bjoern@j3e.de>
"here's a small fix for gdb_backtrace."
Jeremy.
(This used to be commit a0b4e5d11857cd067c60dd99dc5f00ee62a1354d)
2007-10-10 12:15:13 -05:00
Jeremy Allison
05109131b0 r19103: From "Björn JACKE <bjoern@j3e.DE>":
The attached patch cleans up pam_winbind a tiny bit. Instead of making
exceptions for all pam implementations except for Linux' it's better
to make an exception for the only pam implementation which is
different from all the others. This is equivalent to what pam_smb_auth
does already.
-----------------
Jeremy
(This used to be commit 8e5596470822d20740f86585a6cf67240f2face4)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
b25c065786 r19102: fix typo, thanks derrell!
metze
(This used to be commit 0a516c3026114a32092f4a62fcbbfc4c410c0dea)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
0a32e31cbe r19101: add sys_recv() wrapper
metze
(This used to be commit 2f146ec68344c4bc11e1a9d174bdf548e1a22d5a)
2007-10-10 12:15:12 -05:00