kai/samba.git
15 years agoFix typo
Volker Lendecke [Wed, 2 Jul 2008 13:13:14 +0000 (15:13 +0200)]
Fix typo
(This used to be commit fe79c8a5b726754703626ca0bff57074274c98c7)

15 years agoTiny logic simplification: Remove an unnecessary else branch
Volker Lendecke [Wed, 2 Jul 2008 13:13:01 +0000 (15:13 +0200)]
Tiny logic simplification: Remove an unnecessary else branch
(This used to be commit 6009ae329375b1c40e3d00df977ddccc8b5cc176)

15 years agoFix nonempty whitespace only lines
Volker Lendecke [Wed, 2 Jul 2008 13:04:46 +0000 (15:04 +0200)]
Fix nonempty whitespace only lines
(This used to be commit cc77db2acbc35cea58576f1e28c7a760a5e31609)

15 years agofix typos
Volker Lendecke [Wed, 2 Jul 2008 12:53:57 +0000 (14:53 +0200)]
fix typos
(This used to be commit e0957c6f4b1e81c27fda1de7fb7cbc9c585f5ac9)

15 years agoFix nonempty whitespace only lines
Volker Lendecke [Wed, 2 Jul 2008 12:06:49 +0000 (14:06 +0200)]
Fix nonempty whitespace only lines
(This used to be commit 0da9d0d0f9662d8bd2f370f764d5a875e11b3068)

15 years agoFix indentation
Volker Lendecke [Wed, 2 Jul 2008 12:06:09 +0000 (14:06 +0200)]
Fix indentation
(This used to be commit 954556b527aa652f9a46f0d48834e92befb3c5f9)

15 years agoFix a debug msg, this was probably a leftover from gencache
Volker Lendecke [Wed, 2 Jul 2008 12:04:52 +0000 (14:04 +0200)]
Fix a debug msg, this was probably a leftover from gencache
(This used to be commit daa171552dc00d9602a05ba199c9a3ff24c802f5)

15 years agoFix typo
Volker Lendecke [Wed, 2 Jul 2008 12:03:25 +0000 (14:03 +0200)]
Fix typo
(This used to be commit fe58926283b51910d8587e32bb11aa681b9a27d3)

15 years agoMake idmap_init() static
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...
(This used to be commit c8d1bbfddce41cd6bf37dd0a622ef3437a24b492)

15 years agoFix two memory leaks in an error path in idmap.c
Volker Lendecke [Wed, 2 Jul 2008 10:22:15 +0000 (12:22 +0200)]
Fix two memory leaks in an error path in idmap.c
(This used to be commit 7cec389e19323e99b6b6258e539be9d1fd65810f)

15 years agoMSG_DEBUG now forwarded to all the winbindd children by parent.
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.
(This used to be commit cfbcfc3ffe74f28ec874a6bf1ab93f55f405b6e6)

15 years agoJim Brown <jim.brown@miami.edu> was right, this needs to be a signed int or
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.
(This used to be commit 80e547665d104a6db376ff4c48bcc01dfd3513ee)

15 years agoTwo more fixes from Jim Brown <jim.brown@miami.edu> for SGI compiler warnings.
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.
(This used to be commit d85cbdbe296ec6de5bdbd66a90ca41345f55c837)

15 years agoFix problem noticed by Jim Brown <jim.brown@miami.edu>. When reverse searching decrem...
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.
(This used to be commit d89f9d404f478fc9887bb6e67ce28a61464bcf93)

15 years agoRevert "winbind cache: Don't create SN cache entries during name-to-sid queries."
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
(This used to be commit 534a445df450c681be7da2c9dd65f7294f942b08)

15 years agonet_vampire: add code to vampire to a Kerberos keytab file using DRSUAPI.
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
(This used to be commit 0ef420c3a478a8adce7483f14b45e9995bfa5e5d)

15 years agonet_vampire: keep keytab context and flush keytab only after the last query.
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
(This used to be commit 48efe7dbce1cde6689f94fafe2d7756f673bc050)

15 years agoFix from Atte Peltomäki - atte.peltomaki@f-secure.com to correctly check
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.
(This used to be commit e321377174f579ba57a70f260f4d4bc234a07439)

15 years agokerberos: allow to keep entries with old kvno's while creating keytab.
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
(This used to be commit 6194244bd9fcc1fb736f3d91433f107270cac1c9)

15 years agokerberos: rename smb_krb5_kt_add_entry to smb_krb5_kt_add_entry_ext.
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
(This used to be commit 48600a0019d70d22574cf08e8fe19d44cc332a0f)

15 years agoFix a file descriptor leak in add_port_hook
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)
(This used to be commit 9fe09398b79ae7c5e78182112a8cd2c9b5f99ad3)

15 years agoReturn NULL in sitename_fetch() if gencache_init() fails. Not false
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
(This used to be commit 8704c2ab37479236788c0a99465d73643d3d555a)

15 years agoLet send_trans_reply work on only the inbuf
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
(This used to be commit d3facf4cbdb2915168e91d64c2d8320f67524df8)

15 years agoFactor out create_outbuf, creating an outbuf just given an inbuf
Volker Lendecke [Wed, 2 Apr 2008 13:34:29 +0000 (15:34 +0200)]
Factor out create_outbuf, creating an outbuf just given an inbuf
(This used to be commit 50427cbf6345d3f671e9ea321089c4b4244df972)

15 years agoFix the build
Volker Lendecke [Sat, 28 Jun 2008 08:38:33 +0000 (10:38 +0200)]
Fix the build
(This used to be commit 242077f714c738642edd125449ab5c89748bcecd)

15 years agoFix bug #5568 net rpc trustdom add broken !
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.
(This used to be commit e072b3667e590ba6dd1d9a47fb616a53753fa83e)

15 years agoFix usage message for net rpc trustdom add.
Jeremy Allison [Fri, 27 Jun 2008 22:28:45 +0000 (15:28 -0700)]
Fix usage message for net rpc trustdom add.
Jeremy.
(This used to be commit 20e59faf6efce01887cd01f0cafb197cc2f4742e)

15 years agoDo not segfault if corepath is not set up properly
Volker Lendecke [Fri, 13 Jun 2008 09:56:40 +0000 (11:56 +0200)]
Do not segfault if corepath is not set up properly
(This used to be commit 41d1b9541ccb802f01f12038b3b81853b3b7c32d)

15 years agolibads: Add API call to connect to a global catalog server.
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
(This used to be commit f4c37dbe2c986fb7bfe510cdff3b4a9fbc06d079)

15 years agoFix warnings on SuSE 9.0.
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.
(This used to be commit 30d181c92463aecd6e649330d3645d86d5a17e43)

15 years agoRevert "build: add symbol versioning when we build with gnu ld"
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)
(This used to be commit d06baf0e744d779b836783f61ec97d3a6d380eb5)

15 years agoFix two IBM checker warnings
Volker Lendecke [Fri, 27 Jun 2008 09:22:23 +0000 (11:22 +0200)]
Fix two IBM checker warnings

Steve, please check!

Thanks,

Volker
(This used to be commit 5222b8db3fb692e5071bfd1b41849a8eb0a17995)

15 years agoFix an "invalid operation involving NULL pointer" found by the IBM checker
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
(This used to be commit eb6096a2d488d64cfa86e01be2a97e14e5773fe3)

15 years agoRemove a strlen check that will never kick in
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
(This used to be commit 44a9e5b713c25ff2cc7215635a516f25359b045b)

15 years agoFix the non-LDAP, non-krb5 build, fix gcc -O3 warnings.
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.
(This used to be commit 9e2ab30d3cf6950fc79152b2169e7aeae8d6a366)

15 years agolibnet_dssync: add last_query flag to processing routine.
Günther Deschner [Thu, 26 Jun 2008 23:41:26 +0000 (01:41 +0200)]
libnet_dssync: add last_query flag to processing routine.

Guenther
(This used to be commit 22bdee7fe0cdcd95e0bade70cacb095e0b348abf)

15 years agolibnet_dssync: add output filename and dns_domain_name to dssync struct.
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
(This used to be commit c16e1820f86f105853aa855eda322ba6cbff3a84)

15 years agonet_vampire: use bool for last_query information in samsync.
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
(This used to be commit fa1976e23a33bd3fab17c3f6ab5573ee1fdf9e31)

15 years agonet_vampire: separate keytab code from samsync code.
Günther Deschner [Thu, 26 Jun 2008 19:48:41 +0000 (21:48 +0200)]
net_vampire: separate keytab code from samsync code.

Guenther
(This used to be commit 69d8442bf3248f97ad23def424901d7fa87bfe48)

15 years agoFrom Steve Danneman @ Isilon.
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
(This used to be commit 5188f2861137ff06d5399561d55d7d00c3a08644)

15 years agoFix return of uninitialized variable.
Jeremy Allison [Thu, 26 Jun 2008 20:19:40 +0000 (13:19 -0700)]
Fix return of uninitialized variable.
Jeremy.
(This used to be commit 384052f546af8c1c6848c03cad4f2ba618ba7209)

15 years agolibnet_dssync: pass down drsuapi_DsReplicaOIDMapping_Ctr to callback.
Günther Deschner [Thu, 26 Jun 2008 13:10:00 +0000 (15:10 +0200)]
libnet_dssync: pass down drsuapi_DsReplicaOIDMapping_Ctr to callback.

Guenther
(This used to be commit cbff970facae295650742d12768f23c7f67380a6)

15 years agolibnet_dssync: always decrypt attributes before passing them to the processing routine.
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
(This used to be commit 6eedd167e77969e2ab7d5abe7311de62fc413d17)

15 years agoFix valgrind errors in _spoolss_addprinterdriver
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)
(This used to be commit 8e7effd58f7790d6e71e38c990f6cb05456e47e1)

15 years agoFix a segfault in rpcclient adddriver
Volker Lendecke [Thu, 26 Jun 2008 13:32:27 +0000 (15:32 +0200)]
Fix a segfault in rpcclient adddriver
(cherry picked from commit d4b5a9d67389578f531527b339f6feead62f082d)
(This used to be commit 8573032877317fe1f5c69e9ced5b19a33d8aefb0)

15 years agoFix a debug message
Volker Lendecke [Thu, 26 Jun 2008 11:32:11 +0000 (13:32 +0200)]
Fix a debug message
(This used to be commit 8dd94d448bc5ad067024c56c6ef498bc88a396b2)

15 years agoremove unused extern current_user from nt_printing.c
Volker Lendecke [Tue, 24 Jun 2008 15:04:02 +0000 (17:04 +0200)]
remove unused extern current_user from nt_printing.c
(This used to be commit b34283adeffaa6e481c57926709ea80d48733ef0)

15 years agoRemove current_user reference from printfsp.c
Volker Lendecke [Tue, 24 Jun 2008 14:58:29 +0000 (16:58 +0200)]
Remove current_user reference from printfsp.c
(This used to be commit 510f45d01a19ce1c226755ac42a328241098b2e0)

15 years agoremove unused extern current_user from lanman.c
Volker Lendecke [Tue, 24 Jun 2008 14:58:12 +0000 (16:58 +0200)]
remove unused extern current_user from lanman.c
(This used to be commit e2009c0b8dc229faf98ce189d2a906e58d3e1e63)

15 years agoChange print_access_check to take auth_serversupplied_info instead of current_user
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
(This used to be commit fd43059b3dfa8cdac9814de1c76f963ba5de9bcb)

15 years agoRemove p->vuid
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.
(This used to be commit d4cf5a131919530317cd457006b4df5af2c69fa7)

15 years agoRemove a check on p->vuid in _netr_LogonSamLogon/off
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.
(This used to be commit fbc00460f8deaa57bfbf16b12d29acec56578b63)

15 years agoNow that we have p->server_info, use p->server_info->user_session_key
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
(This used to be commit aefad64e3a5c86d2f988d47e6215ed2085b8fc47)

15 years agoFix typo
Volker Lendecke [Tue, 24 Jun 2008 12:25:23 +0000 (14:25 +0200)]
Fix typo
(This used to be commit 41d2daeaa5a87da82a0debc4c9cfe14976215bd8)

15 years agoAdd server_info to pipes_struct
Volker Lendecke [Tue, 24 Jun 2008 12:18:55 +0000 (14:18 +0200)]
Add server_info to pipes_struct
(This used to be commit d621867bb8767e1c4236d28dd9294a61db6cbb10)

15 years agoctdbd_connect: bump debug level to 1 for "connect failed" message.
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
(This used to be commit fee770e5d080b0513418e61e469f2824a1d771ec)

15 years agomessages: bump debug level to 1 for "messaging_ctdb_init failed".
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
(This used to be commit 7bbf29137bf051044cbf0db8d9fe564a7c9d7a29)

15 years agonmbd: untangle logic in nmbd_messaging_context() slightly.
Michael Adam [Tue, 24 Jun 2008 10:46:13 +0000 (12:46 +0200)]
nmbd: untangle logic in nmbd_messaging_context() slightly.

Michael
(This used to be commit 3baf9eb6a2cc6a4a153303b457d3a7067948495e)

15 years agonmbd: don't panic if messaging_init() fails - return NULL instead.
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
(This used to be commit e6a403209c29bd2ec2242d654ad45276de02cb44)

15 years agowinbind: remove duplicate debug message for failing messaging_init().
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
(This used to be commit e9177ec56a8fe596d6fcfc4a95df87e39f757818)

15 years agowinbind: untangle logic in winbind_messaging_context() slightly.
Michael Adam [Tue, 24 Jun 2008 10:30:38 +0000 (12:30 +0200)]
winbind: untangle logic in winbind_messaging_context() slightly.

Michael
(This used to be commit e710a9b73ea2fd176de7093125bc5f3f3f3a9404)

15 years agowinbindd: don't panic if messaging_init() fails - return NULL instead.
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
(This used to be commit 3e0c24323af5f10fa68ae8aad552b7346536c908)

15 years agosmbd: untangle logic in smbd_messaging_context() slightly.
Michael Adam [Mon, 23 Jun 2008 15:35:08 +0000 (17:35 +0200)]
smbd: untangle logic in smbd_messaging_context() slightly.

Michael
(This used to be commit fae4c21b14b9d288e06f6b4b4e1527e2c6d58dca)

15 years agosmbd: don't panic if messaging_init() fails but return NULL
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
(This used to be commit 3b6541ff483d5fea4fd30bb6a01a560c05028d4e)

15 years agodrsuapi: rerun make idl and add drsblobs generated files.
Günther Deschner [Thu, 26 Jun 2008 10:07:07 +0000 (12:07 +0200)]
drsuapi: rerun make idl and add drsblobs generated files.

Guenther
(This used to be commit 6725b751d88b4bacac5171efe4f5193bc1125f19)

15 years agodrsuapi: add drsblobs.idl from samba4.
Günther Deschner [Thu, 26 Jun 2008 09:57:37 +0000 (11:57 +0200)]
drsuapi: add drsblobs.idl from samba4.

Guenther
(This used to be commit 58dc161ac91d018dfb02acac2aa2a45841478412)

15 years agonet_vampire: add some error output to libnet_dssync.
Günther Deschner [Thu, 26 Jun 2008 08:22:40 +0000 (10:22 +0200)]
net_vampire: add some error output to libnet_dssync.

Guenther
(This used to be commit 891d4cca0ca5ccb075940517af25f3760a315219)

15 years agoerrors: add WERR_DS_DRA_BAD_NC and WERR_DS_DRA_BAD_DN.
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
(This used to be commit 2efe18f7c96d8d122943342b9af1db62a1432771)

15 years agoMerge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into v3-3-test
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
(This used to be commit 9075c5f2ada8f96ae8d6cbcfc36663969e9bf34f)

15 years agoPart of fix for #5551. Split out the group enumeration functions to a BUILTIN and...
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.
(This used to be commit 77b99530e0ce0ab0f335d8b22774548d30690550)

15 years agorpcclient: add samr chgpasswd command.
Günther Deschner [Wed, 25 Jun 2008 09:50:50 +0000 (11:50 +0200)]
rpcclient: add samr chgpasswd command.

Guenther
(This used to be commit b90ae343722eb73c5874d875aa439e4ef92ed06a)

15 years agorpc_client: add rpccli_samr_chgpasswd_user() call.
Günther Deschner [Wed, 25 Jun 2008 09:50:17 +0000 (11:50 +0200)]
rpc_client: add rpccli_samr_chgpasswd_user() call.

Guenther
(This used to be commit 10fd2baa8320f96286d53b677cf38f3ca3aa88a7)

15 years agorename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
Günther Deschner [Wed, 25 Jun 2008 19:49:57 +0000 (21:49 +0200)]
rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.

Guenther
(This used to be commit b1209a039b45985e0b28777e04cba5bcc3de061e)

15 years agorename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
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
(This used to be commit 5b4650d56c04be0c498413f17afb2cf6d0e7d548)

15 years agoFinal (hopefully :-) part of fix for bug #5551. Allow passdb backend to enumerate...
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
(This used to be commit 2181770e4589d475b95b4103a8f95a58787f1f86)

15 years agoFix the build
Volker Lendecke [Wed, 25 Jun 2008 14:24:33 +0000 (16:24 +0200)]
Fix the build
(This used to be commit 3bfeae651ff4bd0d777e7bc5980008960d8e5a44)

15 years agomake parametic options case insensitive
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
(This used to be commit c10aad9f136b7c2ef4809fd8558013ab2ee40cf6)

15 years agonetapi: add NetUserChangePassword() example code.
Günther Deschner [Tue, 24 Jun 2008 22:47:17 +0000 (00:47 +0200)]
netapi: add NetUserChangePassword() example code.

Guenther
(This used to be commit ac5aaf29004584d0f1821689eb985d837cda1aa1)

15 years agonetapi: add NetUserChangePassword() to public headers.
Günther Deschner [Tue, 24 Jun 2008 22:47:41 +0000 (00:47 +0200)]
netapi: add NetUserChangePassword() to public headers.

Guenther
(This used to be commit 5d06891238d7dddedeb6fe2aca677c765b90c74a)

15 years agonetapi: add NetUserChangePassword skeleton.
Günther Deschner [Tue, 24 Jun 2008 22:32:02 +0000 (00:32 +0200)]
netapi: add NetUserChangePassword skeleton.

Guenther
(This used to be commit f4ce6887103d0f50bf9a91251e2aceb77674604f)

15 years agore-run make idl.
Günther Deschner [Tue, 24 Jun 2008 22:29:25 +0000 (00:29 +0200)]
re-run make idl.

Guenther
(This used to be commit 397d305e90e90f475b6de0efac7dd9630d698efd)

15 years agonetapi: add NetUserChangePassword() to IDL.
Günther Deschner [Tue, 24 Jun 2008 22:29:06 +0000 (00:29 +0200)]
netapi: add NetUserChangePassword() to IDL.

Guenther
(This used to be commit 7020a5bd6e90c178085bb8d04325ac5ba83b4c3d)

15 years agorpc_client: let cli_get_session_key() return talloced session key.
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
(This used to be commit b47899195e0c190445953243fe80da4e92994dd1)

15 years agoFix for bug #5551, smbd recursing back into winbindd from a winbindd call.
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.
(This used to be commit a07fe72538e8e724b9736d5a85cc590864c5cab2)

15 years agoFix bug #5555. Don't return NT_STATUS_PASSWORD_MUST_CHANGE error on machine account...
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.
(This used to be commit 10da498a2349bf5944183adf5a9284eafa2b8b74)

15 years agonet_vampire: add basic libnet_dssync() infrastructure.
Günther Deschner [Mon, 23 Jun 2008 21:13:21 +0000 (23:13 +0200)]
net_vampire: add basic libnet_dssync() infrastructure.

Guenther
(This used to be commit 9486e532da602da587769d4ff8a1a2825e541a30)

15 years agorpc_client: add cli_get_session_key().
Günther Deschner [Tue, 10 Jun 2008 19:35:34 +0000 (21:35 +0200)]
rpc_client: add cli_get_session_key().

Guenther
(This used to be commit 93b56755f739889da3a67b18a6430b14306d84f7)

15 years agonet: add basic support for sealed RPC connections (using NET_FLAGS_SEAL).
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
(This used to be commit 7541a0103ad22000e94ffc6d057ffd5d33d1a930)

15 years agocrypto: add decrypt_drsuapi_blob from samba4.
Günther Deschner [Mon, 23 Jun 2008 14:02:04 +0000 (16:02 +0200)]
crypto: add decrypt_drsuapi_blob from samba4.

Guenther
(This used to be commit 3b6352a60e6683963af1641786f9c230d49ebfb5)

15 years agore-run make idl.
Günther Deschner [Tue, 24 Jun 2008 18:57:17 +0000 (20:57 +0200)]
re-run make idl.

Guenther
(This used to be commit 05d6f2e00cf5a7ad3d8a38149e9b9b1e408a666c)

15 years agodrsuapi: add some more attribute IDs.
Günther Deschner [Tue, 24 Jun 2008 18:57:03 +0000 (20:57 +0200)]
drsuapi: add some more attribute IDs.

Guenther
(This used to be commit fce7a195f1e299b3427a992027de68151784f586)

15 years agonet_vampire: add code to vampire a SAM database to a keytab file.
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
(This used to be commit ee6e422c0e035aa4779fa718bb6f142827cc2de0)

15 years agonet_vampire: add username/password to samsync_context.
Günther Deschner [Tue, 24 Jun 2008 10:30:34 +0000 (12:30 +0200)]
net_vampire: add username/password to samsync_context.

Guenther
(This used to be commit e884304206b512a1ffc70b7a4da8db3c6dfd4f11)

15 years agolibads: use ads_connect_user_creds in some places.
Günther Deschner [Tue, 24 Jun 2008 11:06:38 +0000 (13:06 +0200)]
libads: use ads_connect_user_creds in some places.

Guenther
(This used to be commit ebf31203e7cf22e32b986c536279688b17a65d22)

15 years agolibads: add ads_connect_user_creds() that won't overwrite given user creds.
Günther Deschner [Tue, 24 Jun 2008 11:02:03 +0000 (13:02 +0200)]
libads: add ads_connect_user_creds() that won't overwrite given user creds.

Guenther
(This used to be commit 026018c9f1ed0680b3ca5b26dd6b8dc466e27e0d)

15 years agolibads: add ADS_AUTH_USER_CREDS to avoid magic overwriting of usernames.
Günther Deschner [Tue, 24 Jun 2008 10:11:06 +0000 (12:11 +0200)]
libads: add ADS_AUTH_USER_CREDS to avoid magic overwriting of usernames.

Guenther
(This used to be commit b5aaf5aa0f280f69e05b613271c96473a79b812e)

15 years agokerberos: add smb_krb5_keytab_name().
Günther Deschner [Wed, 18 Jun 2008 10:48:35 +0000 (12:48 +0200)]
kerberos: add smb_krb5_keytab_name().

Guenther
(This used to be commit c273ce8798062d1b55100411f3e92a01bdbf611c)

15 years agokerberos: make smb_krb5_kt_add_entry public, allow to pass keys without salting them.
Günther Deschner [Wed, 18 Jun 2008 10:45:57 +0000 (12:45 +0200)]
kerberos: make smb_krb5_kt_add_entry public, allow to pass keys without salting them.

Guenther
(This used to be commit 7c4da23be1105dc224033b21eb486e7fcdc7d9c5)

15 years agonet ads: Fix typos.
Karolin Seeger [Tue, 24 Jun 2008 13:55:30 +0000 (15:55 +0200)]
net ads: Fix typos.

Karolin
(This used to be commit 63c1a5146e25e05678d2bef95286add5c95a5f38)

15 years agorpc_client: Avoid warning in builds without krb5 headers.
Karolin Seeger [Tue, 24 Jun 2008 13:53:23 +0000 (15:53 +0200)]
rpc_client: Avoid warning in builds without krb5 headers.

warning: ‘cli_auth_kerberos_data_destructor’ defined but not used

Karolin
(This used to be commit b5f9176b6ca8c137d5c065abed943fa437b5531f)