1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

29183 Commits

Author SHA1 Message Date
Volker Lendecke
62dddd04f4 Fix nonempty whitespace only lines
(This used to be commit 0da9d0d0f9662d8bd2f370f764d5a875e11b3068)
2008-07-02 14:18:15 +02:00
Volker Lendecke
69b9cffe6e Fix indentation
(This used to be commit 954556b527aa652f9a46f0d48834e92befb3c5f9)
2008-07-02 14:18:10 +02:00
Volker Lendecke
d6ab71f06c Fix a debug msg, this was probably a leftover from gencache
(This used to be commit daa171552dc00d9602a05ba199c9a3ff24c802f5)
2008-07-02 14:18:05 +02:00
Volker Lendecke
dd7691ce68 Fix typo
(This used to be commit fe58926283b51910d8587e32bb11aa681b9a27d3)
2008-07-02 14:18:01 +02:00
Volker Lendecke
1999791b7c Make idmap_init() static
This is called only from idmap_alloc_init, which feels kindof weird.

Digging deeper in the code...
(This used to be commit c8d1bbfddce41cd6bf37dd0a622ef3437a24b492)
2008-07-02 13:34:09 +02:00
Volker Lendecke
ab57861686 Fix two memory leaks in an error path in idmap.c
(This used to be commit 7cec389e19323e99b6b6258e539be9d1fd65810f)
2008-07-02 13:34:09 +02:00
Darshan Purandare
065760ede0 MSG_DEBUG now forwarded to all the winbindd children by parent.
smbcontrol winbindd debug level would only set the debug level of the
parent winbindd process and not the child processes. This patch adds
the functionality of broadcasting the debug message to all winbindd
children. Now the debug level message is propagated to all the winbindd
processes that includes parent and children.
(This used to be commit cfbcfc3ffe74f28ec874a6bf1ab93f55f405b6e6)
2008-07-01 17:52:24 -07:00
Jeremy Allison
570d5ecdbd Jim Brown <jim.brown@miami.edu> was right, this needs to be a signed int or
the loop never terminates.
Jeremy.
(This used to be commit 80e547665d104a6db376ff4c48bcc01dfd3513ee)
2008-07-01 15:51:54 -07:00
Jeremy Allison
4a09c5a09f Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
Jeremy.
(This used to be commit d85cbdbe296ec6de5bdbd66a90ca41345f55c837)
2008-07-01 15:39:41 -07:00
Jeremy Allison
4a8b39974b Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrement index,
not increment. Michael please check !
Jeremy.
(This used to be commit d89f9d404f478fc9887bb6e67ce28a61464bcf93)
2008-07-01 15:28:13 -07:00
Karolin Seeger
3b1de7f7f4 Revert "winbind cache: Don't create SN cache entries during name-to-sid queries."
This reverts commit b58e4f6b3d73294d8448c0dff4341183c52e5b7c.

Details can be found on the samba-technical mailing list.

Karolin
(This used to be commit 534a445df450c681be7da2c9dd65f7294f942b08)
2008-07-01 10:34:22 +02:00
Günther Deschner
9b0e3bb0c3 net_vampire: add code to vampire to a Kerberos keytab file using DRSUAPI.
Guenther
(This used to be commit 0ef420c3a478a8adce7483f14b45e9995bfa5e5d)
2008-07-01 10:02:01 +02:00
Günther Deschner
fc836440a5 net_vampire: keep keytab context and flush keytab only after the last query.
Guenther
(This used to be commit 48efe7dbce1cde6689f94fafe2d7756f673bc050)
2008-07-01 10:00:57 +02:00
Jeremy Allison
4aaa3a0fac Fix from Atte Peltomki - atte.peltomaki@f-secure.com to correctly check
error code in winbindd group expansion.
Jeremy.
(This used to be commit e321377174f579ba57a70f260f4d4bc234a07439)
2008-06-30 09:20:05 -07:00
Günther Deschner
16e44ee112 kerberos: allow to keep entries with old kvno's while creating keytab.
Guenther
(This used to be commit 6194244bd9fcc1fb736f3d91433f107270cac1c9)
2008-06-30 12:38:40 +02:00
Günther Deschner
52635c6f58 kerberos: rename smb_krb5_kt_add_entry to smb_krb5_kt_add_entry_ext.
Guenther
(This used to be commit 48600a0019d70d22574cf08e8fe19d44cc332a0f)
2008-06-30 12:38:32 +02:00
Volker Lendecke
7b3541f39b Fix a file descriptor leak in add_port_hook
This was probably cut&paste from add_printer_hook which further down has the
unconditional close(fd). In add_port_hook() we're not interested in the output
of 'addport command', so don't create the out fd.
(cherry picked from commit 0c5ca2127ac6e3c71e369242376d27429c3aee5e)
(This used to be commit 9fe09398b79ae7c5e78182112a8cd2c9b5f99ad3)
2008-06-28 16:10:50 +02:00
Gerald W. Carter
893e3522fc Return NULL in sitename_fetch() if gencache_init() fails. Not false
(This used to be commit 8704c2ab37479236788c0a99465d73643d3d555a)
2008-06-28 09:36:30 -04:00
Volker Lendecke
cf9665016f Let send_trans_reply work on only the inbuf
It does not really need the whole smb_request
(This used to be commit d3facf4cbdb2915168e91d64c2d8320f67524df8)
2008-06-28 10:38:51 +02:00
Volker Lendecke
5cd8a42720 Factor out create_outbuf, creating an outbuf just given an inbuf
(This used to be commit 50427cbf6345d3f671e9ea321089c4b4244df972)
2008-06-28 10:38:51 +02:00
Volker Lendecke
3353565faf Fix the build
(This used to be commit 242077f714c738642edd125449ab5c89748bcecd)
2008-06-28 10:38:51 +02:00
Jeremy Allison
f083c1f57e Fix bug #5568 net rpc trustdom add broken !
net rpc trustdom add was broken. The default 10second timeout can be too short
to create an account on a Samba DC (calling out to a script), error message
reporting was poor, and more importantly the new marshalling code for
user_info23 was broken (maps onto a user_info21 but doesn't clear the
user_info23 struct before marshalling, leaving an uninitialized size field -
give "alloc failure").
Jeremy.
(This used to be commit e072b3667e590ba6dd1d9a47fb616a53753fa83e)
2008-06-27 17:26:41 -07:00
Jeremy Allison
23e4a41362 Fix usage message for net rpc trustdom add.
Jeremy.
(This used to be commit 20e59faf6efce01887cd01f0cafb197cc2f4742e)
2008-06-27 15:28:45 -07:00
Volker Lendecke
15ac8b6bc1 Do not segfault if corepath is not set up properly
(This used to be commit 41d1b9541ccb802f01f12038b3b81853b3b7c32d)
2008-06-27 16:57:12 +02:00
Gerald W. Carter
9ff1ffcbee libads: Add API call to connect to a global catalog server.
Extends ads_connect() to a new call ads_connect_gc() which connects on port
3268 rather than port 389.  Also makes ads_try_connect() static and
only used internally to ldap.c
(This used to be commit f4c37dbe2c986fb7bfe510cdff3b4a9fbc06d079)
2008-06-27 10:26:11 -04:00
Karolin Seeger
e08943f8d8 Fix warnings on SuSE 9.0.
The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.
(This used to be commit 30d181c92463aecd6e649330d3645d86d5a17e43)
2008-06-27 15:51:35 +02:00
Karolin Seeger
006515d889 Revert "build: add symbol versioning when we build with gnu ld"
This reverts commit cb5492978b6b157f529806afb2f5fc6202888129.

For more information, please have a look at the discussion on
samba-technical starting with [1].

[1] http://lists.samba.org/archive/samba-technical/2008-June/059511.html

Karolin
(cherry picked from commit 1e5aeb96f92fef8056ec9010e125f4d0d31dd90e)
(This used to be commit d06baf0e744d779b836783f61ec97d3a6d380eb5)
2008-06-27 13:46:26 +02:00
Volker Lendecke
34dc60a74f Fix two IBM checker warnings
Steve, please check!

Thanks,

Volker
(This used to be commit 5222b8db3fb692e5071bfd1b41849a8eb0a17995)
2008-06-27 11:23:20 +02:00
Volker Lendecke
2a5dee2892 Fix an "invalid operation involving NULL pointer" found by the IBM checker
Jerry, please check!

Volker
(This used to be commit eb6096a2d488d64cfa86e01be2a97e14e5773fe3)
2008-06-27 11:23:20 +02:00
Volker Lendecke
f287cdb1f0 Remove a strlen check that will never kick in
strlen(str)<2 will be caught by the explicit tests for str[0] and str[1] in the
lines above this.

Jerry, please check!

Volker
(This used to be commit 44a9e5b713c25ff2cc7215635a516f25359b045b)
2008-06-27 11:23:20 +02:00
Jeremy Allison
799252f635 Fix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
Jeremy.
(This used to be commit 9e2ab30d3cf6950fc79152b2169e7aeae8d6a366)
2008-06-26 19:46:18 -07:00
Günther Deschner
46dd2d77ec libnet_dssync: add last_query flag to processing routine.
Guenther
(This used to be commit 22bdee7fe0cdcd95e0bade70cacb095e0b348abf)
2008-06-27 02:01:15 +02:00
Günther Deschner
e58b2db024 libnet_dssync: add output filename and dns_domain_name to dssync struct.
Guenther
(This used to be commit c16e1820f86f105853aa855eda322ba6cbff3a84)
2008-06-27 02:01:03 +02:00
Günther Deschner
92df9ae393 net_vampire: use bool for last_query information in samsync.
Guenther
(This used to be commit fa1976e23a33bd3fab17c3f6ab5573ee1fdf9e31)
2008-06-27 01:59:26 +02:00
Günther Deschner
8b52e2bc63 net_vampire: separate keytab code from samsync code.
Guenther
(This used to be commit 69d8442bf3248f97ad23def424901d7fa87bfe48)
2008-06-27 01:58:39 +02:00
Jeremy Allison
120c09b125 From Steve Danneman @ Isilon.
Attached is the companion patch to
(037b9689d9042a398cb91e4628a82fcdfa913c21), which
made handling of WINBINDD_LIST_GROUPS asynchronous.

Because most all of the list_groups code was reusable, I abstracted it,
and implemented both list_groups and list_users on top of it.

On my large test domain a "wbinfo -u" call went from 70 seconds to 30
seconds with this patch.  Plus, the parent process is no longer blocked
from receiving new requests during that time.

Steven Danneman | Software Development Engineer
Isilon Systems    P +1-206-315-7500     F +1-206-315-7501
www.isilon.com
(This used to be commit 5188f2861137ff06d5399561d55d7d00c3a08644)
2008-06-26 14:02:39 -07:00
Jeremy Allison
23cafd02d3 Fix return of uninitialized variable.
Jeremy.
(This used to be commit 384052f546af8c1c6848c03cad4f2ba618ba7209)
2008-06-26 13:19:40 -07:00
Günther Deschner
31f1ad4311 libnet_dssync: pass down drsuapi_DsReplicaOIDMapping_Ctr to callback.
Guenther
(This used to be commit cbff970facae295650742d12768f23c7f67380a6)
2008-06-26 18:36:35 +02:00
Günther Deschner
a8b8994c2d libnet_dssync: always decrypt attributes before passing them to the processing routine.
Guenther
(This used to be commit 6eedd167e77969e2ab7d5abe7311de62fc413d17)
2008-06-26 18:35:54 +02:00
Volker Lendecke
8fffa902e0 Fix valgrind errors in _spoolss_addprinterdriver
Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please
check?

Thanks,

Volker
(cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e)
(This used to be commit 8e7effd58f7790d6e71e38c990f6cb05456e47e1)
2008-06-26 16:55:48 +02:00
Volker Lendecke
5a63e1dcb6 Fix a segfault in rpcclient adddriver
(cherry picked from commit d4b5a9d67389578f531527b339f6feead62f082d)
(This used to be commit 8573032877317fe1f5c69e9ced5b19a33d8aefb0)
2008-06-26 15:35:56 +02:00
Volker Lendecke
3c516937e8 Fix a debug message
(This used to be commit 8dd94d448bc5ad067024c56c6ef498bc88a396b2)
2008-06-26 13:32:11 +02:00
Volker Lendecke
44e9a2bb9a remove unused extern current_user from nt_printing.c
(This used to be commit b34283adeffaa6e481c57926709ea80d48733ef0)
2008-06-26 13:13:23 +02:00
Volker Lendecke
c885ae01eb Remove current_user reference from printfsp.c
(This used to be commit 510f45d01a19ce1c226755ac42a328241098b2e0)
2008-06-26 13:13:23 +02:00
Volker Lendecke
e2585b73e9 remove unused extern current_user from lanman.c
(This used to be commit e2009c0b8dc229faf98ce189d2a906e58d3e1e63)
2008-06-26 13:13:23 +02:00
Volker Lendecke
a3c0be6325 Change print_access_check to take auth_serversupplied_info instead of current_user
Reason: This is the main user of p->current_user which I would like to remove
(This used to be commit fd43059b3dfa8cdac9814de1c76f963ba5de9bcb)
2008-06-26 13:13:23 +02:00
Volker Lendecke
aa02c3fcd5 Remove p->vuid
The users can use p->server_info.

Now pipes_struct is decoupled from the SMB transport.
(This used to be commit d4cf5a131919530317cd457006b4df5af2c69fa7)
2008-06-26 13:13:23 +02:00
Volker Lendecke
8a9881c30b Remove a check on p->vuid in _netr_LogonSamLogon/off
This is in preparation of removing p->vuid completely. I don't think this check
here makes any sort of sense, it only proves that the user having done the
session setup on its way to the schannel bind (ususally anonymous) did not do a
logoff in between. But this would have been caught way before this in
reply_pipe_write_and_X.
(This used to be commit fbc00460f8deaa57bfbf16b12d29acec56578b63)
2008-06-26 13:13:23 +02:00
Volker Lendecke
747a580952 Now that we have p->server_info, use p->server_info->user_session_key
(This used to be commit aefad64e3a5c86d2f988d47e6215ed2085b8fc47)
2008-06-26 13:13:23 +02:00
Volker Lendecke
cebbb2d84a Fix typo
(This used to be commit 41d2daeaa5a87da82a0debc4c9cfe14976215bd8)
2008-06-26 13:13:22 +02:00