ira/wip.git
16 years agoFix a memleak
Volker Lendecke [Sun, 20 Jan 2008 15:46:46 +0000 (16:46 +0100)]
Fix a memleak
(This used to be commit 252c3130697d1b7fd34a5225d83cef4f32e663b2)

16 years agoFix a return value from sync_eventlog_params() (patch from Volker)
Gerald W. Carter [Tue, 29 Jan 2008 21:06:59 +0000 (15:06 -0600)]
Fix a return value from sync_eventlog_params() (patch from Volker)
(This used to be commit 77085f1a58666ac4314924d18c87d4add0553dba)

16 years agoAllow NULL request and/or response pointers to be passed to wbcRequestResponse().
Gerald W. Carter [Tue, 29 Jan 2008 20:49:38 +0000 (14:49 -0600)]
Allow NULL request and/or response pointers to be passed to wbcRequestResponse().

This is a valid parameter set for things like setpwent() and ping().
(This used to be commit c1cdf6085329d55cf29ccc8c980fc853a03a695e)

16 years agoRemove include/rpc_ds.h and all references to it completly.
Günther Deschner [Tue, 29 Jan 2008 16:49:38 +0000 (17:49 +0100)]
Remove include/rpc_ds.h and all references to it completly.

Jerry, please have a look if you're fine with that.

Guenther
(This used to be commit beae25c808a3a03d645f247e9befcd05e3ecca2c)

16 years agoRemove unused rpc_ds marshalling code that is unused now.
Günther Deschner [Tue, 29 Jan 2008 14:51:19 +0000 (15:51 +0100)]
Remove unused rpc_ds marshalling code that is unused now.

Guenther
(This used to be commit 153253e14f82fc7078e9cc6f12409e6eda7ee7cb)

16 years agoFinally delete rpccli_ds_enum_domain_trusts() completly.
Günther Deschner [Tue, 29 Jan 2008 14:23:38 +0000 (15:23 +0100)]
Finally delete rpccli_ds_enum_domain_trusts() completly.

Guenther
(This used to be commit c420e42adfea9908a93d3eea5688488e5a9062a2)

16 years agoRemove last caller of rpccli_ds_enum_domain_trusts().
Günther Deschner [Tue, 29 Jan 2008 14:05:56 +0000 (15:05 +0100)]
Remove last caller of rpccli_ds_enum_domain_trusts().

I added an alias in rpcclient's netlogon command table.

Guenther
(This used to be commit 1a900e08e92484407d69661517f08e675a3c352a)

16 years agoUse another pidl generated call to enumerate ds trusted domains in winbindd.
Günther Deschner [Tue, 29 Jan 2008 13:59:20 +0000 (14:59 +0100)]
Use another pidl generated call to enumerate ds trusted domains in winbindd.

Guenther
(This used to be commit f6397fbeae6668c6d0470f968cb1506b3ce34e4a)

16 years agoUse pidl generated call to enumerate ds trusted domains in winbindd.
Günther Deschner [Tue, 29 Jan 2008 13:20:20 +0000 (14:20 +0100)]
Use pidl generated call to enumerate ds trusted domains in winbindd.

Guenther
(This used to be commit 3a3c1aed9bfc681457aa06f706fc6fe2d9b2e903)

16 years agoFix the build. Avoid unrequired ndr_print_ads_struct dependencies.
Günther Deschner [Tue, 29 Jan 2008 13:47:47 +0000 (14:47 +0100)]
Fix the build. Avoid unrequired ndr_print_ads_struct dependencies.

Guenther
(This used to be commit c832882e49ff0dac6a717819dda24ab814253b2f)

16 years agoAdd ndr_print_ads_auth_flags().
Günther Deschner [Tue, 29 Jan 2008 13:14:09 +0000 (14:14 +0100)]
Add ndr_print_ads_auth_flags().

Guenther
(This used to be commit 52bd4ce68d7ff24c480ed350cecfd325e51ba0b4)

16 years agoMove DS_DOMAIN_FUNCTION defines to ads.h.
Günther Deschner [Tue, 29 Jan 2008 11:31:51 +0000 (12:31 +0100)]
Move DS_DOMAIN_FUNCTION defines to ads.h.

Guenther
(This used to be commit 2605c6758ebb2f53c0c91f99d766e3db548e07ce)

16 years agoAdd missing windows 2008 netr_DsR_DcFlags and netr_DsRGetDCName_flags flags.
Günther Deschner [Tue, 29 Jan 2008 11:20:54 +0000 (12:20 +0100)]
Add missing windows 2008 netr_DsR_DcFlags and netr_DsRGetDCName_flags flags.

Guenther
(This used to be commit 1702a1512ece1a9d2bb092cb9bbfc499c081da70)

16 years agoEliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Günther Deschner [Sat, 26 Jan 2008 00:39:33 +0000 (01:39 +0100)]
Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).

Guenther
(This used to be commit fd490d236b1fb73a75c457b75128c9b98719418f)

16 years agoDump msDS-SupportedEncryptionTypes in adssearch.
Günther Deschner [Mon, 28 Jan 2008 18:22:17 +0000 (19:22 +0100)]
Dump msDS-SupportedEncryptionTypes in adssearch.

Guenther
(This used to be commit bc0b68709cbbdd71996a39e23fe8305e1f144f31)

16 years agoRestrict the enctypes in the generated krb5.conf files to Win2003 types.
Gerald W. Carter [Mon, 28 Jan 2008 17:32:09 +0000 (11:32 -0600)]
Restrict the enctypes in the generated krb5.conf files to Win2003 types.

This fixes the failure observed on FC8 when joining a Windows 2008 RC1
domain.  We currently do not handle user session keys correctly
when the KDC uses AES in the ticket replies.
(This used to be commit 8039a2518caae54bc876368c73ec493f3cd4eb73)

16 years agoWe need to leave the corepath around
Volker Lendecke [Sun, 27 Jan 2008 09:22:42 +0000 (10:22 +0100)]
We need to leave the corepath around

In case we need to dump core, in line 191 we dereference corepath to be able to
chdir there.

Jeremy, please check!

Volker
(This used to be commit 3959b1954b02405ec174497fa17e345ca6d5ee94)

16 years agoAdding missing calls to va_end().
Tim Potter [Sun, 27 Jan 2008 06:31:56 +0000 (17:31 +1100)]
Adding missing calls to va_end().

Just a small commit to get a handle on this git thingy.  This patch
fixes some missing calls to va_end() to match various calls to va_start()
and VA_COPY().

Tim.
(This used to be commit ec367f307dff7948722b9ac97beb960efd91991f)

16 years agoRemove an unused external reference
Volker Lendecke [Sat, 26 Jan 2008 23:35:14 +0000 (00:35 +0100)]
Remove an unused external reference
(This used to be commit 147033b9dff7160ff324fa52aba1f054f962961b)

16 years agoFix uninitialized variables
Volker Lendecke [Sat, 26 Jan 2008 20:29:18 +0000 (21:29 +0100)]
Fix uninitialized variables

Thanks to Corinna Vinschen
(This used to be commit aba8c17599f0be82cff33229bb107814d88faafe)

16 years agoAdd cmd_netlogon_dsr_getforesttrustinfo and deregisterdnsrecords to rpcclient.
Günther Deschner [Fri, 25 Jan 2008 20:21:33 +0000 (21:21 +0100)]
Add cmd_netlogon_dsr_getforesttrustinfo and deregisterdnsrecords to rpcclient.

Guenther
(This used to be commit 227f5755c8844dbff8d66adec3d7fd94b583358f)

16 years agoRemove hand-written rpccli_netlogon_dsr_getdcnameex[2].
Günther Deschner [Fri, 25 Jan 2008 20:19:39 +0000 (21:19 +0100)]
Remove hand-written rpccli_netlogon_dsr_getdcnameex[2].

Guenther
(This used to be commit 3ded8b9b7eee18a3f903e264adfb7fea6a3c0c5f)

16 years agoUse rpccli_netr_DsRGetDCNameEx and rpccli_netr_DsRGetDCNameEx2 in rpcclient.
Günther Deschner [Fri, 25 Jan 2008 20:17:44 +0000 (21:17 +0100)]
Use rpccli_netr_DsRGetDCNameEx and rpccli_netr_DsRGetDCNameEx2 in rpcclient.

Guenther
(This used to be commit 2caed3f816d29bd7dfa36df3ddd6aeba5bbfa252)

16 years agoRe-run make idl.
Günther Deschner [Fri, 25 Jan 2008 20:15:36 +0000 (21:15 +0100)]
Re-run make idl.

Couldn't we move on doing this during the build??

Guenther
(This used to be commit d69cbd009903a8b36c9254a59faa5783fbc737f9)

16 years agoFix netr_DsRGetDCNameEx and netr_DsRGetDCNameEx2 IDL.
Günther Deschner [Fri, 25 Jan 2008 20:12:42 +0000 (21:12 +0100)]
Fix netr_DsRGetDCNameEx and netr_DsRGetDCNameEx2 IDL.

Guenther
(This used to be commit 46679ddbc3137ac6edcdb1c61e2a7fa65f91341d)

16 years agoAdd IDL for netr_DsrDeregisterDNSHostRecords (just for completion).
Günther Deschner [Fri, 25 Jan 2008 16:43:15 +0000 (17:43 +0100)]
Add IDL for netr_DsrDeregisterDNSHostRecords (just for completion).

Guenther
(This used to be commit 454a0711f1614107436ef36ec21ebb8567728bf9)

16 years agoFix bogus uninitialized variable warnings
Volker Lendecke [Fri, 25 Jan 2008 20:20:39 +0000 (21:20 +0100)]
Fix bogus uninitialized variable warnings
(This used to be commit 71d6580c837adcc2cddcdff561f6fb09701501ee)

16 years agoFix Coverity IDs 451, 452
Volker Lendecke [Fri, 25 Jan 2008 10:13:19 +0000 (11:13 +0100)]
Fix Coverity IDs 451, 452
(This used to be commit d28a537277bedb65d1c2a01c971a3a22b1aa6624)

16 years agoTiny simplification
Volker Lendecke [Fri, 25 Jan 2008 08:28:19 +0000 (09:28 +0100)]
Tiny simplification
(This used to be commit e78f6872bfc19ce0476b8d79c856a8d9c646a913)

16 years agoRemove a pointless while loop
Volker Lendecke [Fri, 25 Jan 2008 08:21:44 +0000 (09:21 +0100)]
Remove a pointless while loop
(This used to be commit f591bd68eafdbaefcaa95510cc4cb9a74cef0562)

16 years agoAttempt to fix the build on OpenBSD
Volker Lendecke [Fri, 25 Jan 2008 19:52:20 +0000 (20:52 +0100)]
Attempt to fix the build on OpenBSD

Thanks to metze for pointing this out
(This used to be commit c94c04e3e6f6ae243a55534a76654755bff55651)

16 years agoAlways trust the domain flags in the wcache trusted domain cache.
Gerald W. Carter [Fri, 25 Jan 2008 18:21:14 +0000 (12:21 -0600)]
Always trust the domain flags in the wcache trusted domain cache.

Use the flags stored in the tdb when determining if a domain can
be contacted.  The tdb should be considered authoratative anyways unless
you know the flags in the winbindd_domain are correct (such as when
first enumerating trusts).

Original suggestion and patch from Steven Danneman <steven.danneman@isilon.com>.
Manually rewritten by me for 3.2.
(This used to be commit f53658a20de07a29abbe2e90917b328d00fc0024)

16 years agoUse the correct domain name when looking up the trust password.
Gerald W. Carter [Fri, 25 Jan 2008 18:18:05 +0000 (12:18 -0600)]
Use the correct domain name when looking up the trust password.

On a DC, we always use the domain name given.  On a domain member,
we use lp_workgroup().  This fixes a bug supporting trusted domains.
(This used to be commit 8b063a414149bdf401a8f854d55ed7dc6f94cb60)

16 years agoRemove more unused LSA marshalling functions.
Günther Deschner [Fri, 25 Jan 2008 15:57:55 +0000 (16:57 +0100)]
Remove more unused LSA marshalling functions.

Guenther
(This used to be commit 95e0fb452bda4c81b26e3dec4953bbba37940467)

16 years agoRemove some unused structures from rpc_lsa.h.
Günther Deschner [Fri, 25 Jan 2008 15:40:51 +0000 (16:40 +0100)]
Remove some unused structures from rpc_lsa.h.

Guenther
(This used to be commit a52066e6083ff4b0d21b57ba43a812c02c0cbd78)

16 years agoAdd cmd_netlogon_dsr_enumtrustdom() to rpcclient.
Günther Deschner [Fri, 25 Jan 2008 15:35:09 +0000 (16:35 +0100)]
Add cmd_netlogon_dsr_enumtrustdom() to rpcclient.

Guenther
(This used to be commit cb44c901c1bc66da9f3636020401238ce0005105)

16 years agorun "make idl".
Günther Deschner [Fri, 25 Jan 2008 15:33:36 +0000 (16:33 +0100)]
run "make idl".

Guenther
(This used to be commit 5db4310d4c9149dc9d68f7684dc961926f94544a)

16 years agoFix netr_DsrEnumerateDomainTrusts IDL.
Günther Deschner [Fri, 25 Jan 2008 15:20:47 +0000 (16:20 +0100)]
Fix netr_DsrEnumerateDomainTrusts IDL.

Guenther
(This used to be commit 527aae96a6c2da822a21996ba4e6f7df1941fdbc)

16 years agoAdd LIBNETAPI_LOCAL_SERVER() macro.
Günther Deschner [Fri, 25 Jan 2008 14:46:11 +0000 (15:46 +0100)]
Add LIBNETAPI_LOCAL_SERVER() macro.

Guenther
(This used to be commit 4bdcf07bcc3aaf7c3f7245cfdda06433bcf4ae60)

16 years agoNo need to close registry on libnetapi_free() anymore.
Günther Deschner [Fri, 25 Jan 2008 14:45:38 +0000 (15:45 +0100)]
No need to close registry on libnetapi_free() anymore.

Guenther
(This used to be commit 6bf75652ef07f5a534cef5034b7aad4fdcbcd265)

16 years agoFix winbindd_can_contact_domain() on a samba DC.
Michael Adam [Fri, 25 Jan 2008 15:40:17 +0000 (16:40 +0100)]
Fix winbindd_can_contact_domain() on a samba DC.

The check for inbound trusts is invalid when samba is a DC
and has a trust with an active directory domain.

This effectively prevented tusts with an AD domain on a
samba DC from working (unless using "winbindd rpc only"),
because an ads_connect() was never performed. Only the
rpc-based winbindd methods were working properly.

Jerry: Please check!

Michael
(This used to be commit dcd42a1e0642c69348adfaeecef7f7f2f074ac30)

16 years agoUse generated DSSETUP client & server rpc functions and remove the hand-written ones.
Günther Deschner [Fri, 25 Jan 2008 12:26:10 +0000 (13:26 +0100)]
Use generated DSSETUP client & server rpc functions and remove the hand-written ones.

Guenther
(This used to be commit d5ebfccebb1f1b56b45673a506fcdb414103c43b)

16 years agoAdd generated dssetup code after make idl.
Günther Deschner [Fri, 25 Jan 2008 12:04:58 +0000 (13:04 +0100)]
Add generated dssetup code after make idl.

Guenther
(This used to be commit 4b3d96be8017a38a6af4ce58ae54a6af005fbe3e)

16 years agoAdding dssetup.idl from samba4.
Günther Deschner [Fri, 25 Jan 2008 12:03:03 +0000 (13:03 +0100)]
Adding dssetup.idl from samba4.

Guenther
(This used to be commit d33a5102c294880ae5f6341575f587f32fb14d0c)

16 years agoRemove rpccli_samr_get_dom_pwinfo() and rpccli_samr_get_usrdom_pwinfo().
Günther Deschner [Fri, 25 Jan 2008 00:26:27 +0000 (01:26 +0100)]
Remove rpccli_samr_get_dom_pwinfo() and rpccli_samr_get_usrdom_pwinfo().

Guenther
(This used to be commit 29690d18608ab2d694c23ed7656348c8c71f204e)

16 years agoFix the same bug with user -> user_obj.
Jeremy Allison [Fri, 25 Jan 2008 02:22:43 +0000 (18:22 -0800)]
Fix the same bug with user -> user_obj.
Jeremy.
(This used to be commit c5edf7456955471b8590c2cfa67c7f47a387cdf0)

16 years agoFix a really subtle old, old bug :-). When canonicalizing the
Jeremy Allison [Fri, 25 Jan 2008 02:13:22 +0000 (18:13 -0800)]
Fix a really subtle old, old bug :-). When canonicalizing the
NT ACL into a POSIX one, if the group being set is the primary group
of the file, map it into a SMB_ACL_GROUP_OBJ, not a SMB_ACL_GROUP.
Otherwise we get an extra bogus group entry in the POSIX ACL.
Jeremy.
(This used to be commit 4d302254fdfce2c267cf6b21f662d5aa2dc9c72c)

16 years agoCorrectly set flags in ACE's inherited from parent. Still one bug
Jeremy Allison [Fri, 25 Jan 2008 01:50:07 +0000 (17:50 -0800)]
Correctly set flags in ACE's inherited from parent. Still one bug
left to find then I'll back-port to 3.0.28.
Jeremy.
(This used to be commit 3df2f7ca782e418703d82f7a1f3c035a365f9589)

16 years agoFix missing error check that caused crash when winbindd not running.
Jeremy Allison [Fri, 25 Jan 2008 01:40:35 +0000 (17:40 -0800)]
Fix missing error check that caused crash when winbindd not running.
Jeremy.
(This used to be commit f5ca241e2c1adf2ae836fae33a4adac916f46416)

16 years agoFix lookup_sids to detect unix_groups and unix_users domain sids.
Michael Adam [Fri, 25 Jan 2008 00:40:42 +0000 (01:40 +0100)]
Fix lookup_sids to detect unix_groups and unix_users domain sids.

This fixes panics in wbcLookupRids when 1-2-22 was passed as a
domain sid.

Michael
(This used to be commit c0d9732cf4482b0db02c75f316ff2b41f3336425)

16 years agoAdd a debug message: show the sid lookup_sid() was called for.
Michael Adam [Fri, 25 Jan 2008 00:40:01 +0000 (01:40 +0100)]
Add a debug message: show the sid lookup_sid() was called for.

Michael
(This used to be commit 6c7c6c3f85a4bd171c62031b2b8e59d3f7054061)

16 years agoAdd debug message: show which domain_child is being forked.
Michael Adam [Fri, 25 Jan 2008 00:21:56 +0000 (01:21 +0100)]
Add debug message: show which domain_child is being forked.

Michael
(This used to be commit 373a00ae0d667d257fa93ab14c773e841f2c4f1a)

16 years agoAdd a debug message to lookup_rids() printing the domain SID.
Michael Adam [Thu, 24 Jan 2008 22:44:05 +0000 (23:44 +0100)]
Add a debug message to lookup_rids() printing the domain SID.

This is to ease debugging. I sporadically get panics that are
apparently due to NULL domain sid passed to lookup_rids somewhere.

Michael
(This used to be commit 723e877c241dd5a0c8addb89507c9eda75b88ea4)

16 years agoAdd a debug message winbindd_can_contact_domain()
Michael Adam [Thu, 24 Jan 2008 21:15:33 +0000 (22:15 +0100)]
Add a debug message winbindd_can_contact_domain()

explaining the reason for failure.

Michael
(This used to be commit ba5373ed7f74d560a9de8620039b596b8938d1dc)

16 years agoFix assignment to request->data.init_conn.is_primary in init_child_connection().
Michael Adam [Thu, 24 Jan 2008 21:47:49 +0000 (22:47 +0100)]
Fix assignment to request->data.init_conn.is_primary in init_child_connection().

The present assignment
"request->data.init_conn.is_primary = domain->internal ? False : True"
simply feels wrong. This seems to be the thing right to do:
"request->data.init_conn.is_primary = domain->primary ? true : false".

The question is: Does this have any purpose at all?
data.init_conn.is_primary seems to be used nowhere
in the whole code at all.

Is it (still) needed?

Michael
(This used to be commit 8bb21b8b3802e7b093a3c4fb41b8550033388878)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Fri, 25 Jan 2008 00:16:40 +0000 (16:16 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit ef2913a66c3888d4813d8b778ddd63b2c7e48f3e)

16 years agoMake explicit in debug we're ignoring flags from the parent SD.
Jeremy Allison [Fri, 25 Jan 2008 00:13:53 +0000 (16:13 -0800)]
Make explicit in debug we're ignoring flags from the parent SD.
Jeremy
(This used to be commit 58cfa4b1bdc1ce30cc3befb342cc98ac0e283585)

16 years agoTrying to avoid defining new SAMR acct creation flags when we already have them with...
Günther Deschner [Fri, 25 Jan 2008 00:00:51 +0000 (01:00 +0100)]
Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.

Guenther
(This used to be commit d4a9e46edf7336f673c001c559af96eb0ecf9f6f)

16 years agoRe-run make idl.
Günther Deschner [Thu, 24 Jan 2008 23:11:58 +0000 (00:11 +0100)]
Re-run make idl.

Guenther
(This used to be commit c0bf3af692bee5bc5a3405feb405e67d35d77a16)

16 years agoRename samr_*AccessMask bitfields to start with SAMR_.
Günther Deschner [Thu, 24 Jan 2008 22:52:16 +0000 (23:52 +0100)]
Rename samr_*AccessMask bitfields to start with SAMR_.

Guenther
(This used to be commit 6226f2294e83501d01d18a954bb36efec37aea75)

16 years agoAdd WERR_INVALID_COMPUTER_NAME.
Günther Deschner [Thu, 24 Jan 2008 22:39:38 +0000 (23:39 +0100)]
Add WERR_INVALID_COMPUTER_NAME.

Guenther
(This used to be commit cb1ff32eff06031150a6821658152e02a4077bbd)

16 years agoAdd cmd_netlogon_gettrustrid() to rpcclient.
Günther Deschner [Thu, 24 Jan 2008 22:38:43 +0000 (23:38 +0100)]
Add cmd_netlogon_gettrustrid() to rpcclient.

Guenther
(This used to be commit 231a4d051f24af7cf5bf13d7dd613f33dc06f21a)

16 years agomake idl.
Günther Deschner [Thu, 24 Jan 2008 22:37:57 +0000 (23:37 +0100)]
make idl.

Guenther
(This used to be commit 212f6fc000d093bad9f78307743639b391db3fe5)

16 years agoAdd IDL for netr_LogonGetTrustRid.
Günther Deschner [Thu, 24 Jan 2008 22:35:02 +0000 (23:35 +0100)]
Add IDL for netr_LogonGetTrustRid.

Guenther
(This used to be commit 6f38c2f06080943bb64ce24115ec2164b6c21b95)

16 years agoAdd debug messages to trace this if needed.
Jeremy Allison [Thu, 24 Jan 2008 21:27:00 +0000 (13:27 -0800)]
Add debug messages to trace this if needed.
Jeremy.
(This used to be commit b628269b3260661cb4eeeab8c533b3129827ba62)

16 years agoThe checks for OI and CI were just wrong.... Fix them. Thanks to
Jeremy Allison [Thu, 24 Jan 2008 21:06:11 +0000 (13:06 -0800)]
The checks for OI and CI were just wrong.... Fix them. Thanks to
Jim for testing this.
Jeremy.
(This used to be commit e898789e0d819df05b14bcedfa1d230c7a983440)

16 years agoFirst part of fix for bug #4929 - worked out by jmcd.
Jeremy Allison [Thu, 24 Jan 2008 20:59:08 +0000 (12:59 -0800)]
First part of fix for bug #4929 - worked out by jmcd.
Cope with protected ACL set correctly.
Jeremy.
(This used to be commit f5e50f42e7c79b4f8857602457db5b97886bd19e)

16 years agoFix winbindd build w/o ADS.
Günther Deschner [Thu, 24 Jan 2008 16:39:29 +0000 (17:39 +0100)]
Fix winbindd build w/o ADS.

Guenther
(This used to be commit 40daef4c3d822a28467ff521efca6a55a0370050)

16 years agoFix Coverity ID 454
Volker Lendecke [Thu, 24 Jan 2008 15:12:42 +0000 (16:12 +0100)]
Fix Coverity ID 454
(This used to be commit 902d1d6709e47fbc8b538f28cb4364b006c431f8)

16 years agoFix Coverity ID 463
Volker Lendecke [Thu, 24 Jan 2008 14:57:00 +0000 (15:57 +0100)]
Fix Coverity ID 463
(This used to be commit 21d126c56a633d2d72ffad08db7331ecc0ee3c0c)

16 years agoFix Coverity ID 465
Volker Lendecke [Thu, 24 Jan 2008 14:52:45 +0000 (15:52 +0100)]
Fix Coverity ID 465
(This used to be commit 8629a0e1c3da7c2d2b0c1d99224177c54bbae930)

16 years agoAdd winbind_msg_dump_domain_list to winbindd.
Günther Deschner [Thu, 24 Jan 2008 15:19:58 +0000 (16:19 +0100)]
Add winbind_msg_dump_domain_list to winbindd.

Guenther
(This used to be commit 54ad97bd8364c393de2c9471a4c14ca5b880b318)

16 years agoAdd winbindd debugging ndr_print helpers.
Günther Deschner [Thu, 24 Jan 2008 15:10:18 +0000 (16:10 +0100)]
Add winbindd debugging ndr_print helpers.

Guenther
(This used to be commit 4389e4dadbf07c176d9102b74c06e62ecfc242be)

16 years agoAdd dump-domain-list command for debugging winbindd's domain_list.
Günther Deschner [Thu, 24 Jan 2008 15:09:20 +0000 (16:09 +0100)]
Add dump-domain-list command for debugging winbindd's domain_list.

Guenther
(This used to be commit 10fa43f2840899c0854763e55b9174827c522a5b)

16 years agorerun 'make idl'
Stefan Metzmacher [Thu, 24 Jan 2008 14:12:00 +0000 (15:12 +0100)]
rerun 'make idl'

metze
(This used to be commit 37b95450518419e2153e9930b63f894b68096d3d)

16 years agonetlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32
Stefan Metzmacher [Thu, 24 Jan 2008 14:17:06 +0000 (15:17 +0100)]
netlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32

metze
(cherry picked from commit 7222edb9cde5cdeb9d065e890775a7254b26648f)
(This used to be commit 503082e15e03def33434d3e5ff4fbe750873aab0)

16 years agoRe-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).
Günther Deschner [Thu, 24 Jan 2008 12:53:36 +0000 (13:53 +0100)]
Re-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).

Guenther
(This used to be commit 1781a57b18f681f1bc03873330147a813f10eba2)

16 years agoMerge over security.idl from samba4.
Günther Deschner [Thu, 24 Jan 2008 12:45:38 +0000 (13:45 +0100)]
Merge over security.idl from samba4.

Guenther
(This used to be commit 57f2b8d0a8d8987a62419e9852ac9a9cf39c3109)

16 years agoFix samr_EnumDomainUsers in samba3, must not be a ref pointer here.
Günther Deschner [Thu, 24 Jan 2008 10:44:29 +0000 (11:44 +0100)]
Fix samr_EnumDomainUsers in samba3, must not be a ref pointer here.

Guenther
(This used to be commit 3b87c5ce4f74f8dd01bfdf8859c6c832da15cd24)

16 years agonetlogon.idl: make use of bitmap samr_GroupAttrs
Stefan Metzmacher [Thu, 24 Jan 2008 09:24:41 +0000 (10:24 +0100)]
netlogon.idl: make use of bitmap samr_GroupAttrs

metze

(from v4-0-test 6d68161e676d381600c77c3f862bd7e013968724)
(This used to be commit 9b5f69cb1f7d22174b2cd67ebf02a271d4bf6e2f)

16 years agonetlogon.idl: remove unused netr_GroupsMembership structure
Stefan Metzmacher [Thu, 24 Jan 2008 09:22:45 +0000 (10:22 +0100)]
netlogon.idl: remove unused netr_GroupsMembership structure

We have samr_RidWithAttribute and use that in all cases.

metze
(cherry picked from commit 3c5bae2249d01213ff4bd7df2b4e3ac04da4a52d)
(This used to be commit 6ed640fadea6355dd6808db156228e6876d9f064)

16 years agoMore read_data -> read_socket_with_timeout
Volker Lendecke [Wed, 23 Jan 2008 16:37:59 +0000 (17:37 +0100)]
More read_data -> read_socket_with_timeout
(This used to be commit f1d7de462cf0f64648a3a1fc6f0c64a7bbdb3c2a)

16 years agoMerge branch 'setxattr-dos-mode' into v3-2-test
Derrell Lipman [Thu, 24 Jan 2008 01:50:24 +0000 (20:50 -0500)]
Merge branch 'setxattr-dos-mode' into v3-2-test
(This used to be commit 4c08725a42a8babf0f078fb4b221a96f58deeb50)

16 years agoAllow clearing all settable DOS mode bits. A mode value of zero is ignored by
Derrell Lipman [Thu, 24 Jan 2008 01:44:54 +0000 (20:44 -0500)]
Allow clearing all settable DOS mode bits.  A mode value of zero is ignored by
Windows.  If the requested mode is zero, we instead send the appropriate one
of 0x80 (NORMAL) or 0x10 (DIRECTORY).

Thanks Jeremy!

Derrell
(This used to be commit 54abf7d0e595e9cbeea115a40d4f7b995252a150)

16 years agoDon't leak memory in error path.
Jeremy Allison [Wed, 23 Jan 2008 23:23:16 +0000 (15:23 -0800)]
Don't leak memory in error path.
Jeremy.
(This used to be commit 2df0cdaafdced798f81e30d34371aa1d8e963208)

16 years agoUse strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy Allison [Wed, 23 Jan 2008 23:00:40 +0000 (15:00 -0800)]
Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy.
(This used to be commit 090061b73a1c086ff8a7797e1a63532eacd91148)

16 years agoFix Windows 2008 (Longhorn) join.
Andreas Schneider [Thu, 17 Jan 2008 10:35:40 +0000 (11:35 +0100)]
Fix Windows 2008 (Longhorn) join.

During 'net ads join' the cli->desthost is a hostname (e.g.
rupert.galaxy.site). Check if we have a hostname and use only the
first part, the machine name, of the string.
(This used to be commit 5f60ed4af680ba2811db8d9f8267348ce05f26d2)

16 years agoWindows 2008 (Longhorn) auth2 flag fixes.
Andreas Schneider [Thu, 17 Jan 2008 09:11:11 +0000 (10:11 +0100)]
Windows 2008 (Longhorn) auth2 flag fixes.

Interop fixes for AD specific flags. Original patch from Todd Stetcher.
(This used to be commit 5aadfcdaacd6f136eab9e107a88b8544e6d2105f)

16 years agoForward ported version of Matt Geddes <musicalcarrion@gmail.com>
Jeremy Allison [Wed, 23 Jan 2008 21:54:02 +0000 (13:54 -0800)]
Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947b7edfcf3ec52f0125e4593d6d54c05)

16 years agoread_socket_with_timeout has timeout=0 handling
Volker Lendecke [Wed, 23 Jan 2008 15:42:31 +0000 (16:42 +0100)]
read_socket_with_timeout has timeout=0 handling
(This used to be commit 7101026061c470ed962267b43ac0aa67cc761a64)

16 years agostrtok -> strtok_r
Volker Lendecke [Wed, 23 Jan 2008 10:04:10 +0000 (11:04 +0100)]
strtok -> strtok_r
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)

16 years agoFix panic: Don't free the logfilename in winbind_child_died().
Michael Adam [Wed, 23 Jan 2008 13:33:22 +0000 (14:33 +0100)]
Fix panic: Don't free the logfilename in winbind_child_died().

The child struct is immediately reused, and this results
in a panic when child->logfilename == NULL.

Michael
(This used to be commit da131d089db98017632103aa9bbe38c98f7a3fc1)

16 years agoInitialize _domain_list to NULL.
Michael Adam [Wed, 23 Jan 2008 12:52:42 +0000 (13:52 +0100)]
Initialize _domain_list to NULL.

Just to be sure the "if (!_domain_list)" in domain_list() test always works.

Michael
(This used to be commit 1f49065d44dd7570d5a9928359751bd36f287952)

16 years agoFix get_trust_creds() to return always an upper-cased krb5 principal (this
Günther Deschner [Wed, 23 Jan 2008 11:03:51 +0000 (12:03 +0100)]
Fix get_trust_creds() to return always an upper-cased krb5 principal (this
fixes winbind krb5 session at least with heimdal).

Guenther
(This used to be commit 9cf3a98eacea2dd07f89245f147e002b3f49482e)

16 years agoRemove two unused variables
Volker Lendecke [Wed, 23 Jan 2008 09:33:36 +0000 (10:33 +0100)]
Remove two unused variables
(This used to be commit f12ac1ecedd6634d8ccc54d8fce8382514e3322f)

16 years agoFix tab_depth: it should not create an extra debug header.
Michael Adam [Tue, 22 Jan 2008 23:30:28 +0000 (00:30 +0100)]
Fix tab_depth: it should not create an extra debug header.

In pstring removal 4ae4b23586, the behaviour of tab_depth was
changed to create an extra debug header (by using the DEBUGLVL
macro).

This extracts the debug level check from DEBUGLVL into
a macro CHECK_DEBUGLVL without the debug header creation
and uses this instead of DEBUGLVL in tab_depth.

Michael
(This used to be commit cbc7d921fa696e6c3c5197ad9f87442ba679df82)

16 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
Andrew Tridgell [Wed, 23 Jan 2008 02:08:14 +0000 (13:08 +1100)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit bc2973df8504850a40cb0a1172689dc0bdafa323)

16 years agoAdded PFIF notice to Samba 3.2 tree
Andrew Tridgell [Wed, 23 Jan 2008 02:07:33 +0000 (13:07 +1100)]
Added PFIF notice to Samba 3.2 tree
(This used to be commit afccc9703c45815f94dd05805a060d71b7fe618a)

16 years agoGet Samba version or capability information from Windows
Corinna Vinschen [Tue, 22 Jan 2008 15:38:00 +0000 (16:38 +0100)]
Get Samba version or capability information from Windows

On Jan 22 13:31, Volker Lendecke wrote:
> On Tue, Jan 22, 2008 at 11:33:17AM +0100, Corinna Vinschen wrote:
> > Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
> > samba_version_string to 28 bytes.  New patch below.
>
> Ok, pushed with some modifications. You might want to review
> that.

Reviewed and tested.  Looks good, thank you!

Below you'll find a tiny patch to add the git commit date.  It seems
I simply missed its existence in version.h :(  Tested on Windows XP.

Thanks,
Corinna

* source/smbd/trans2.c (samba_extended_info_version): Fill out
samba_gitcommitdate member with GIT commit timestamp.
(This used to be commit a33d0797585b5cdd304ac1eb6966b9c7c799bab6)

16 years agoreplace svn references with git ones in Readme
Volker Lendecke [Tue, 22 Jan 2008 12:42:44 +0000 (13:42 +0100)]
replace svn references with git ones in Readme
(This used to be commit e6c92b62a4791fd5b530e6e52e4386e837bd7994)