]>
git.ipfire.org Git - thirdparty/samba.git/log
Günther Deschner [Thu, 3 Jul 2008 10:01:36 +0000 (12:01 +0200)]
libnetjoin: fix Bug #5570.
Thanks to Atte Peltomäki.
Guenther
Günther Deschner [Thu, 3 Jul 2008 09:09:32 +0000 (11:09 +0200)]
Fix build warning.
Thanks to Thorkil Olesen.
Guenther
Volker Lendecke [Thu, 3 Jul 2008 00:32:18 +0000 (02:32 +0200)]
Don't scream, better explain a bit in comments
Volker Lendecke [Thu, 3 Jul 2008 00:26:43 +0000 (02:26 +0200)]
Make use of sid_check_is_in_unix_users/groups
Don't replicate code unnecessarily
Jeremy Allison [Wed, 2 Jul 2008 23:31:16 +0000 (16:31 -0700)]
Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface
name that's too long. Reported by James Kosin <JKosin@intcomgrp.com>.
Jeremy.
Jeremy Allison [Wed, 2 Jul 2008 23:11:59 +0000 (16:11 -0700)]
Canonicalize servername in the printer functions to remove leading '\\' characters. Ensure we always return consistent names.
Jeremy.
Jeremy Allison [Wed, 2 Jul 2008 18:57:13 +0000 (11:57 -0700)]
Fix bug #5578, reported by sendel2000@hotbox.ru. Bad (non-Samba) use of strlcat gives error.
Jeremy.
Jeremy Allison [Wed, 2 Jul 2008 17:51:45 +0000 (10:51 -0700)]
Ensure consistent use of pdb_get_nt_passwd instead of pdb_get_lanman_passwd.
Reported by hongbing Zhang <hongbing.zhang@gmail.com>.
Jeremy.
Volker Lendecke [Wed, 2 Jul 2008 13:13:14 +0000 (15:13 +0200)]
Fix typo
Volker Lendecke [Wed, 2 Jul 2008 13:13:01 +0000 (15:13 +0200)]
Tiny logic simplification: Remove an unnecessary else branch
Volker Lendecke [Wed, 2 Jul 2008 13:04:46 +0000 (15:04 +0200)]
Fix nonempty whitespace only lines
Volker Lendecke [Wed, 2 Jul 2008 12:53:57 +0000 (14:53 +0200)]
fix typos
Volker Lendecke [Wed, 2 Jul 2008 12:06:49 +0000 (14:06 +0200)]
Fix nonempty whitespace only lines
Volker Lendecke [Wed, 2 Jul 2008 12:06:09 +0000 (14:06 +0200)]
Fix indentation
Volker Lendecke [Wed, 2 Jul 2008 12:04:52 +0000 (14:04 +0200)]
Fix a debug msg, this was probably a leftover from gencache
Volker Lendecke [Wed, 2 Jul 2008 12:03:25 +0000 (14:03 +0200)]
Fix typo
Volker Lendecke [Wed, 2 Jul 2008 11:33:25 +0000 (13:33 +0200)]
Make idmap_init() static
This is called only from idmap_alloc_init, which feels kindof weird.
Digging deeper in the code...
Volker Lendecke [Wed, 2 Jul 2008 10:22:15 +0000 (12:22 +0200)]
Fix two memory leaks in an error path in idmap.c
Darshan Purandare [Tue, 1 Jul 2008 18:37:13 +0000 (11:37 -0700)]
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.
Jeremy Allison [Tue, 1 Jul 2008 22:51:54 +0000 (15:51 -0700)]
Jim Brown <jim.brown@miami.edu> was right, this needs to be a signed int or
the loop never terminates.
Jeremy.
Jeremy Allison [Tue, 1 Jul 2008 22:39:41 +0000 (15:39 -0700)]
Two more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
Jeremy.
Jeremy Allison [Tue, 1 Jul 2008 22:28:13 +0000 (15:28 -0700)]
Fix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrement index,
not increment. Michael please check !
Jeremy.
Karolin Seeger [Tue, 1 Jul 2008 08:34:22 +0000 (10:34 +0200)]
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
Günther Deschner [Fri, 27 Jun 2008 13:36:19 +0000 (15:36 +0200)]
net_vampire: add code to vampire to a Kerberos keytab file using DRSUAPI.
Guenther
Günther Deschner [Fri, 27 Jun 2008 13:54:01 +0000 (15:54 +0200)]
net_vampire: keep keytab context and flush keytab only after the last query.
Guenther
Jeremy Allison [Mon, 30 Jun 2008 16:20:05 +0000 (09:20 -0700)]
Fix from Atte Peltomäki - atte.peltomaki@f-secure.com to correctly check
error code in winbindd group expansion.
Jeremy.
Günther Deschner [Mon, 30 Jun 2008 08:32:15 +0000 (10:32 +0200)]
kerberos: allow to keep entries with old kvno's while creating keytab.
Guenther
Günther Deschner [Mon, 30 Jun 2008 08:29:15 +0000 (10:29 +0200)]
kerberos: rename smb_krb5_kt_add_entry to smb_krb5_kt_add_entry_ext.
Guenther
Volker Lendecke [Sat, 28 Jun 2008 14:09:34 +0000 (16:09 +0200)]
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 )
Gerald W. Carter [Sat, 28 Jun 2008 13:35:07 +0000 (09:35 -0400)]
Return NULL in sitename_fetch() if gencache_init() fails. Not false
Volker Lendecke [Wed, 2 Apr 2008 13:55:10 +0000 (15:55 +0200)]
Let send_trans_reply work on only the inbuf
It does not really need the whole smb_request
Volker Lendecke [Wed, 2 Apr 2008 13:34:29 +0000 (15:34 +0200)]
Factor out create_outbuf, creating an outbuf just given an inbuf
Volker Lendecke [Sat, 28 Jun 2008 08:38:33 +0000 (10:38 +0200)]
Fix the build
Jeremy Allison [Sat, 28 Jun 2008 00:26:41 +0000 (17:26 -0700)]
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.
Jeremy Allison [Fri, 27 Jun 2008 22:28:45 +0000 (15:28 -0700)]
Fix usage message for net rpc trustdom add.
Jeremy.
Volker Lendecke [Fri, 13 Jun 2008 09:56:40 +0000 (11:56 +0200)]
Do not segfault if corepath is not set up properly
Gerald W. Carter [Fri, 27 Jun 2008 14:22:39 +0000 (10:22 -0400)]
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
Karolin Seeger [Fri, 27 Jun 2008 13:51:35 +0000 (15:51 +0200)]
Fix warnings on SuSE 9.0.
The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.
Karolin Seeger [Mon, 9 Jun 2008 06:39:12 +0000 (08:39 +0200)]
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 )
Volker Lendecke [Fri, 27 Jun 2008 09:22:23 +0000 (11:22 +0200)]
Fix two IBM checker warnings
Steve, please check!
Thanks,
Volker
Volker Lendecke [Fri, 27 Jun 2008 09:19:26 +0000 (11:19 +0200)]
Fix an "invalid operation involving NULL pointer" found by the IBM checker
Jerry, please check!
Volker
Volker Lendecke [Fri, 27 Jun 2008 09:13:07 +0000 (11:13 +0200)]
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
Jeremy Allison [Fri, 27 Jun 2008 02:46:18 +0000 (19:46 -0700)]
Fix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
Jeremy.
Günther Deschner [Thu, 26 Jun 2008 23:41:26 +0000 (01:41 +0200)]
libnet_dssync: add last_query flag to processing routine.
Guenther
Günther Deschner [Thu, 26 Jun 2008 21:24:25 +0000 (23:24 +0200)]
libnet_dssync: add output filename and dns_domain_name to dssync struct.
Guenther
Günther Deschner [Thu, 26 Jun 2008 22:46:38 +0000 (00:46 +0200)]
net_vampire: use bool for last_query information in samsync.
Guenther
Günther Deschner [Thu, 26 Jun 2008 19:48:41 +0000 (21:48 +0200)]
net_vampire: separate keytab code from samsync code.
Guenther
Jeremy Allison [Thu, 26 Jun 2008 21:02:39 +0000 (14:02 -0700)]
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
Jeremy Allison [Thu, 26 Jun 2008 20:19:40 +0000 (13:19 -0700)]
Fix return of uninitialized variable.
Jeremy.
Günther Deschner [Thu, 26 Jun 2008 13:10:00 +0000 (15:10 +0200)]
libnet_dssync: pass down drsuapi_DsReplicaOIDMapping_Ctr to callback.
Guenther
Günther Deschner [Thu, 26 Jun 2008 13:06:58 +0000 (15:06 +0200)]
libnet_dssync: always decrypt attributes before passing them to the processing routine.
Guenther
Volker Lendecke [Thu, 26 Jun 2008 14:51:45 +0000 (16:51 +0200)]
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 )
Volker Lendecke [Thu, 26 Jun 2008 13:32:27 +0000 (15:32 +0200)]
Fix a segfault in rpcclient adddriver
(cherry picked from commit
d4b5a9d67389578f531527b339f6feead62f082d )
Volker Lendecke [Thu, 26 Jun 2008 11:32:11 +0000 (13:32 +0200)]
Fix a debug message
Volker Lendecke [Tue, 24 Jun 2008 15:04:02 +0000 (17:04 +0200)]
remove unused extern current_user from nt_printing.c
Volker Lendecke [Tue, 24 Jun 2008 14:58:29 +0000 (16:58 +0200)]
Remove current_user reference from printfsp.c
Volker Lendecke [Tue, 24 Jun 2008 14:58:12 +0000 (16:58 +0200)]
remove unused extern current_user from lanman.c
Volker Lendecke [Tue, 24 Jun 2008 14:03:28 +0000 (16:03 +0200)]
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
Volker Lendecke [Tue, 24 Jun 2008 13:24:08 +0000 (15:24 +0200)]
Remove p->vuid
The users can use p->server_info.
Now pipes_struct is decoupled from the SMB transport.
Volker Lendecke [Tue, 24 Jun 2008 13:21:46 +0000 (15:21 +0200)]
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.
Volker Lendecke [Tue, 24 Jun 2008 12:33:31 +0000 (14:33 +0200)]
Now that we have p->server_info, use p->server_info->user_session_key
Volker Lendecke [Tue, 24 Jun 2008 12:25:23 +0000 (14:25 +0200)]
Fix typo
Volker Lendecke [Tue, 24 Jun 2008 12:18:55 +0000 (14:18 +0200)]
Add server_info to pipes_struct
Michael Adam [Tue, 24 Jun 2008 13:09:37 +0000 (15:09 +0200)]
ctdbd_connect: bump debug level to 1 for "connect failed" message.
Leave level 0 message for higher level callers.
Michael
Michael Adam [Tue, 24 Jun 2008 13:08:21 +0000 (15:08 +0200)]
messages: bump debug level to 1 for "messaging_ctdb_init failed".
Leave level 0 messages to higher level callers.
Michael
Michael Adam [Tue, 24 Jun 2008 10:46:13 +0000 (12:46 +0200)]
nmbd: untangle logic in nmbd_messaging_context() slightly.
Michael
Michael Adam [Tue, 24 Jun 2008 10:44:50 +0000 (12:44 +0200)]
nmbd: don't panic if messaging_init() fails - return NULL instead.
Michael
Michael Adam [Tue, 24 Jun 2008 10:34:49 +0000 (12:34 +0200)]
winbind: remove duplicate debug message for failing messaging_init().
Leave the message inside winbind_messaging_context() for now.
There might be callers, where this debug message could prove useful...
Michael
Michael Adam [Tue, 24 Jun 2008 10:30:38 +0000 (12:30 +0200)]
winbind: untangle logic in winbind_messaging_context() slightly.
Michael
Michael Adam [Tue, 24 Jun 2008 10:29:05 +0000 (12:29 +0200)]
winbindd: don't panic if messaging_init() fails - return NULL instead.
Leave appropriate handling to the callers.
Michael
Michael Adam [Mon, 23 Jun 2008 15:35:08 +0000 (17:35 +0200)]
smbd: untangle logic in smbd_messaging_context() slightly.
Michael
Michael Adam [Mon, 23 Jun 2008 15:32:32 +0000 (17:32 +0200)]
smbd: don't panic if messaging_init() fails but return NULL
leaving panic or more appropriate action to callers.
This can for instance happen in a clustered setup, when
ctdb is not running. This allows for a more defined behaviour,
reducing chicken-egg-problems.
Michael
Günther Deschner [Thu, 26 Jun 2008 10:07:07 +0000 (12:07 +0200)]
drsuapi: rerun make idl and add drsblobs generated files.
Guenther
Günther Deschner [Thu, 26 Jun 2008 09:57:37 +0000 (11:57 +0200)]
drsuapi: add drsblobs.idl from samba4.
Guenther
Günther Deschner [Thu, 26 Jun 2008 08:22:40 +0000 (10:22 +0200)]
net_vampire: add some error output to libnet_dssync.
Guenther
Günther Deschner [Thu, 26 Jun 2008 07:49:13 +0000 (09:49 +0200)]
errors: add WERR_DS_DRA_BAD_NC and WERR_DS_DRA_BAD_DN.
Guenther
Jeremy Allison [Wed, 25 Jun 2008 22:24:18 +0000 (15:24 -0700)]
Merge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into v3-3-test
Jeremy Allison [Wed, 25 Jun 2008 22:23:32 +0000 (15:23 -0700)]
Part of fix for #5551. Split out the group enumeration functions to a BUILTIN and a Domain
specific version. Stops the domain groups appearing twice.
Jeremy.
Günther Deschner [Wed, 25 Jun 2008 09:50:50 +0000 (11:50 +0200)]
rpcclient: add samr chgpasswd command.
Guenther
Günther Deschner [Wed, 25 Jun 2008 09:50:17 +0000 (11:50 +0200)]
rpc_client: add rpccli_samr_chgpasswd_user() call.
Guenther
Günther Deschner [Wed, 25 Jun 2008 19:49:57 +0000 (21:49 +0200)]
rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
Guenther
Günther Deschner [Wed, 25 Jun 2008 08:35:59 +0000 (10:35 +0200)]
rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
Guenther
Jeremy Allison [Wed, 25 Jun 2008 19:44:18 +0000 (12:44 -0700)]
Final (hopefully :-) part of fix for bug #5551. Allow passdb backend to enumerate domain groups.
Jeremy
Volker Lendecke [Wed, 25 Jun 2008 14:24:33 +0000 (16:24 +0200)]
Fix the build
Andrew Tridgell [Wed, 25 Jun 2008 11:27:17 +0000 (21:27 +1000)]
make parametic options case insensitive
This is needed as some options are uppercased internally in Samba, such as the idmap config option
Without this change it is not possible to set these options via net conf which lowercases options
Günther Deschner [Tue, 24 Jun 2008 22:47:17 +0000 (00:47 +0200)]
netapi: add NetUserChangePassword() example code.
Guenther
Günther Deschner [Tue, 24 Jun 2008 22:47:41 +0000 (00:47 +0200)]
netapi: add NetUserChangePassword() to public headers.
Guenther
Günther Deschner [Tue, 24 Jun 2008 22:32:02 +0000 (00:32 +0200)]
netapi: add NetUserChangePassword skeleton.
Guenther
Günther Deschner [Tue, 24 Jun 2008 22:29:25 +0000 (00:29 +0200)]
re-run make idl.
Guenther
Günther Deschner [Tue, 24 Jun 2008 22:29:06 +0000 (00:29 +0200)]
netapi: add NetUserChangePassword() to IDL.
Guenther
Günther Deschner [Tue, 24 Jun 2008 22:21:37 +0000 (00:21 +0200)]
rpc_client: let cli_get_session_key() return talloced session key.
Thanks, Volker, for pointing this out.
Guenther
Jeremy Allison [Wed, 25 Jun 2008 01:01:59 +0000 (18:01 -0700)]
Fix for bug #5551, smbd recursing back into winbindd from a winbindd call.
Jeremy.
Jeremy Allison [Tue, 24 Jun 2008 23:37:15 +0000 (16:37 -0700)]
Fix bug #5555. Don't return NT_STATUS_PASSWORD_MUST_CHANGE error on machine account logon.
Jeremy.
Günther Deschner [Mon, 23 Jun 2008 21:13:21 +0000 (23:13 +0200)]
net_vampire: add basic libnet_dssync() infrastructure.
Guenther
Günther Deschner [Tue, 10 Jun 2008 19:35:34 +0000 (21:35 +0200)]
rpc_client: add cli_get_session_key().
Guenther
Günther Deschner [Tue, 24 Jun 2008 08:34:16 +0000 (10:34 +0200)]
net: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).
Guenther
Günther Deschner [Mon, 23 Jun 2008 14:02:04 +0000 (16:02 +0200)]
crypto: add decrypt_drsuapi_blob from samba4.
Guenther
Günther Deschner [Tue, 24 Jun 2008 18:57:17 +0000 (20:57 +0200)]
re-run make idl.
Guenther
Günther Deschner [Tue, 24 Jun 2008 18:57:03 +0000 (20:57 +0200)]
drsuapi: add some more attribute IDs.
Guenther
Günther Deschner [Wed, 18 Jun 2008 10:52:00 +0000 (12:52 +0200)]
net_vampire: add code to vampire a SAM database to a keytab file.
Guenther