ira/wip.git
16 years agoAdd libnet_Unjoin(), libnet_UnjoinCtx and friends.
Günther Deschner [Wed, 19 Dec 2007 10:02:39 +0000 (11:02 +0100)]
Add libnet_Unjoin(), libnet_UnjoinCtx and friends.

Guenther
(This used to be commit 89e8abb1163984eed358a4da9be4699a8e3a43f9)

16 years agoRemove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.
Günther Deschner [Wed, 19 Dec 2007 09:55:52 +0000 (10:55 +0100)]
Remove unrequired TALLOC_CTX from libnetapi_NetJoinDomain & friends.

Guenther
(This used to be commit 96ebdca45b998da7e6137973dea717bf3ac76328)

16 years agoFix NetJoinDomainLocal.
Günther Deschner [Wed, 19 Dec 2007 09:52:45 +0000 (10:52 +0100)]
Fix NetJoinDomainLocal.

Guenther
(This used to be commit 24605c9175fb313c9c888783817da755cd8ce594)

16 years agoUse DsGetDcName in local libnetapi join to find a dc.
Günther Deschner [Wed, 19 Dec 2007 01:25:15 +0000 (02:25 +0100)]
Use DsGetDcName in local libnetapi join to find a dc.

Guenther
(This used to be commit fbc60c1648ff8b1fa0ae33c09237e41232f9769c)

16 years agoBuild libnetapi shared and static if possible.
Günther Deschner [Tue, 18 Dec 2007 10:24:10 +0000 (11:24 +0100)]
Build libnetapi shared and static if possible.

Guenther
(This used to be commit 11e90dcbf5dd1a91118e6a5cee53735d72767c93)

16 years agoIn libnet join code, try lsa query with level 12 first.
Günther Deschner [Tue, 18 Dec 2007 09:31:12 +0000 (10:31 +0100)]
In libnet join code, try lsa query with level 12 first.

Guenther
(This used to be commit f0e8d744c92d2602722e04be6266196941362d63)

16 years agoMaking do_DomainJoin return NTSTATUS again.
Günther Deschner [Tue, 18 Dec 2007 09:16:40 +0000 (10:16 +0100)]
Making do_DomainJoin return NTSTATUS again.

Guenther
(This used to be commit 91b884989891881b8abea70e11b87c16c574daaa)

16 years agoMove NetJoinDomain and friends to NET_API_STATUS and the static libnetapi_ctx.
Günther Deschner [Tue, 18 Dec 2007 01:54:18 +0000 (02:54 +0100)]
Move NetJoinDomain and friends to NET_API_STATUS and the static libnetapi_ctx.

Guenther
(This used to be commit e640c3a4a7695613e9e619516befbaf3d44ecb10)

16 years agoMissed on instance of external creds.
Günther Deschner [Tue, 18 Dec 2007 01:52:34 +0000 (02:52 +0100)]
Missed on instance of external creds.

Guenther
(This used to be commit 65d50f518766ab0a8115c2599d190e642eb00754)

16 years agoAdd static libnetapi_ctx.
Günther Deschner [Tue, 18 Dec 2007 01:47:01 +0000 (02:47 +0100)]
Add static libnetapi_ctx.

Guenther
(This used to be commit 97449ea341539a709953a57869570cf13be0f44e)

16 years agoUse full string based debug_parse_levels in libnetapi.
Günther Deschner [Tue, 18 Dec 2007 01:43:22 +0000 (02:43 +0100)]
Use full string based debug_parse_levels in libnetapi.

Guenther
(This used to be commit 78d8f0e41aa3db0060596a7b345c2f04261986e0)

16 years agoAdd basic credential functions for libnetapi.
Günther Deschner [Tue, 18 Dec 2007 01:34:07 +0000 (02:34 +0100)]
Add basic credential functions for libnetapi.

Guenther
(This used to be commit 7c38f706b5dc17f15708ac932c84d863a0cc713e)

16 years agoMove basic libnetapi functions to NET_API_STATUS.
Günther Deschner [Tue, 18 Dec 2007 01:29:50 +0000 (02:29 +0100)]
Move basic libnetapi functions to NET_API_STATUS.

Guenther
(This used to be commit 086c55005976b3173e915e465108214876aa5bd6)

16 years agoDefine NET_API_STATUS to be just a uin32_t.
Günther Deschner [Tue, 18 Dec 2007 01:21:38 +0000 (02:21 +0100)]
Define NET_API_STATUS to be just a uin32_t.

Guenther
(This used to be commit a42850926a26a4065a6126affc3754d291a2e178)

16 years agoGetting rid of external credentials in libnetapi.
Günther Deschner [Tue, 18 Dec 2007 01:15:49 +0000 (02:15 +0100)]
Getting rid of external credentials in libnetapi.

Guenther
(This used to be commit c10481dba01a084b0f9c4265f3408a0ec9a8b646)

16 years agoMake sure we also support non-domain join.
Günther Deschner [Fri, 14 Dec 2007 16:37:24 +0000 (17:37 +0100)]
Make sure we also support non-domain join.

Guenther
(This used to be commit c818f5505a124a6f0bb9274a1ba4a6147d2f17b3)

16 years agoSome libnet and netapi build fixes.
Günther Deschner [Fri, 14 Dec 2007 11:22:20 +0000 (12:22 +0100)]
Some libnet and netapi build fixes.

Guenther
(This used to be commit 1d47247283f7bc75291007be3fde72b1d3d95b99)

16 years agoFill in local branch of NetGetJoinInformation().
Günther Deschner [Thu, 13 Dec 2007 15:21:27 +0000 (16:21 +0100)]
Fill in local branch of NetGetJoinInformation().

Guenther
(This used to be commit 46db8754511f915c296771e08e822ba810f804d5)

16 years agoMore minor libnetapi fixes.
Günther Deschner [Wed, 12 Dec 2007 18:00:41 +0000 (19:00 +0100)]
More minor libnetapi fixes.

Guenther
(This used to be commit 9f129c069f9feb357cbe1185058cfe3390609c09)

16 years agoBuild fixes for libnetapi.
Günther Deschner [Wed, 12 Dec 2007 17:14:54 +0000 (18:14 +0100)]
Build fixes for libnetapi.

Guenther
(This used to be commit 07d33557b95106ac57fdef8c767ab86192930a6d)

16 years agoAdd _wkssvc_NetrJoinDomain2() server.
Günther Deschner [Wed, 12 Dec 2007 15:12:14 +0000 (16:12 +0100)]
Add _wkssvc_NetrJoinDomain2() server.

Guenther
(This used to be commit 9b0423e7d918b7b3837ca4ebf997edd80d4da6de)

16 years agoFill in NetJoinDomainLocal().
Günther Deschner [Tue, 11 Dec 2007 20:32:16 +0000 (21:32 +0100)]
Fill in NetJoinDomainLocal().

Guenther
(This used to be commit 4896f22bb50ea9ae0c4807ed9b2dd4283c254364)

16 years agoAdd libnet_Join().
Günther Deschner [Tue, 11 Dec 2007 20:31:44 +0000 (21:31 +0100)]
Add libnet_Join().

Heavily based on existing code in net_ads_join().

Guenther
(This used to be commit fb6315b68b16d64625457881302fd191f90defa0)

16 years agoAdd libnet_JoinCtx structure.
Günther Deschner [Tue, 11 Dec 2007 20:25:41 +0000 (21:25 +0100)]
Add libnet_JoinCtx structure.

Guenther
(This used to be commit 13c46b1407117c93b8f0275cc16ea5aa49596750)

16 years agoSplit NetJoinDomain() into NetJoinDomainRemote() and the unsupported
Günther Deschner [Tue, 11 Dec 2007 20:23:40 +0000 (21:23 +0100)]
Split NetJoinDomain() into NetJoinDomainRemote() and the unsupported
NetJoinDomainLocal().

Guenther
(This used to be commit d2f21ce6727ec9e4df67989db07b48470d0790a4)

16 years agoVery quick conversion of net_conf functions into the libnet_conf layer.
Günther Deschner [Tue, 11 Dec 2007 20:21:17 +0000 (21:21 +0100)]
Very quick conversion of net_conf functions into the libnet_conf layer.
Certainly needs cleanup later.

Guenther
(This used to be commit 2b41ac926de76804a50681bd246b3a20e112853b)

16 years agoFor the fun of it, build netapi.so|.a.
Günther Deschner [Thu, 6 Dec 2007 18:15:30 +0000 (19:15 +0100)]
For the fun of it, build netapi.so|.a.

Guenther
(This used to be commit 8cbc6bdede9e8fc423488c7632546c548234cc0c)

16 years agoAdd NetGetJoinInformation().
Günther Deschner [Thu, 6 Dec 2007 18:04:49 +0000 (19:04 +0100)]
Add NetGetJoinInformation().

Guenther
(This used to be commit d341d251d6e22e9cc1c4596038fd5fe5c7c6c174)

16 years agoAdd get_friendly_werror_msg().
Günther Deschner [Fri, 21 Dec 2007 14:28:01 +0000 (15:28 +0100)]
Add get_friendly_werror_msg().

Guenther
(This used to be commit b1ad3def98911c91ed55a3b7aec7d0894b2dd8fd)

16 years agoKill fstring in getdcname & getanydcname return.
Günther Deschner [Fri, 21 Dec 2007 14:12:40 +0000 (15:12 +0100)]
Kill fstring in getdcname & getanydcname return.

Guenther
(This used to be commit b7383818168863a7ba43c2456f8c44e96e76707a)

16 years agoUse ADS_IGNORE_PRINCIPAL define.
Günther Deschner [Fri, 21 Dec 2007 12:40:11 +0000 (13:40 +0100)]
Use ADS_IGNORE_PRINCIPAL define.

Guenther
(This used to be commit 763e13315fc71237b14a186810bc201e725648f5)

16 years agoFix the build on Solaris
Volker Lendecke [Fri, 21 Dec 2007 11:53:12 +0000 (12:53 +0100)]
Fix the build on Solaris
(This used to be commit 5f5e52ba7b3862dc72a16d84e07503e98ccbbf8a)

16 years agoSome C++ fixes
Volker Lendecke [Thu, 20 Dec 2007 21:27:01 +0000 (22:27 +0100)]
Some C++ fixes
(This used to be commit 5c392c4c6e277a24d0d477902dc7856b2b46ee53)

16 years agoSome C++ warnings
Volker Lendecke [Thu, 20 Dec 2007 21:17:16 +0000 (22:17 +0100)]
Some C++ warnings
(This used to be commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)

16 years agoFix a C++ warning
Volker Lendecke [Thu, 20 Dec 2007 20:25:00 +0000 (21:25 +0100)]
Fix a C++ warning
(This used to be commit c31c7e3e24875ce75bc18f0ad7529320eab8e50a)

16 years agoFix a C++ warning
Volker Lendecke [Thu, 20 Dec 2007 19:59:44 +0000 (20:59 +0100)]
Fix a C++ warning
(This used to be commit 7e1d9b561f6df233b8c7eaec83d1e4207b5a2fb0)

16 years agoFix a missing prototype warning
Volker Lendecke [Thu, 20 Dec 2007 19:59:27 +0000 (20:59 +0100)]
Fix a missing prototype warning
(This used to be commit 93e5de23e7109432f554745b18c6d630a39f9c2b)

16 years agoRemove some statics from md4.c
Volker Lendecke [Sun, 9 Dec 2007 17:25:34 +0000 (18:25 +0100)]
Remove some statics from md4.c
(This used to be commit 7e193c68b2a7eb16afc12379a4ceed41053d1eeb)

16 years agoAdd a singleton cache
Volker Lendecke [Thu, 20 Dec 2007 15:05:57 +0000 (16:05 +0100)]
Add a singleton cache

First user is yp_default_domain
(This used to be commit c19363eb77fcc3e1bf3341e6373d38f1e91fc08f)

16 years agoMake data_blob_string_const return null terminated strings
Volker Lendecke [Thu, 20 Dec 2007 14:16:25 +0000 (15:16 +0100)]
Make data_blob_string_const return null terminated strings

... nobody was using it, so we're free to change it now :-)
(This used to be commit 4b06c68482247d859ec30b8b1920706e43358989)

16 years agoRemove next_token_nr_talloc and its associated global
Volker Lendecke [Wed, 19 Dec 2007 20:59:28 +0000 (21:59 +0100)]
Remove next_token_nr_talloc and its associated global

Only client.c and clitar.c used this, I think they should carry the static
themselves. Also move the a bit funny routine toktocliplist to clitar.c, the
only place where it is used.
(This used to be commit 86d9412611fd99c21e15c71d30a3f95e35d8535b)

16 years agoConvert the pwnam cache to memcache
Volker Lendecke [Thu, 20 Dec 2007 13:54:33 +0000 (14:54 +0100)]
Convert the pwnam cache to memcache
(This used to be commit 032c5589fe7f9f2fcb0f336e72517a81a720b6ce)

16 years agoAdd memcache_add_talloc
Volker Lendecke [Thu, 20 Dec 2007 13:41:58 +0000 (14:41 +0100)]
Add memcache_add_talloc

The first memcache API only had blobs, but we have quite a few objects that are
more complex talloc'ed structues. The current one I'm looking at is the
getpwnam cache, but there are others around.
(This used to be commit ea0e5ad9a15c848904dee8cb2d3e392b6a894705)

16 years agoAdd a global cache
Volker Lendecke [Thu, 20 Dec 2007 09:55:45 +0000 (10:55 +0100)]
Add a global cache

It hurts, but I think this global variable is necessary for transition, and it
has the potential to remove quite a few other global variables without messing
with APIs too much.
(This used to be commit c131d0dc52ec09c9227eff3d68877369c37aaed5)

16 years agofix dump printout when byte >= 0x80
Herb Lewis [Thu, 20 Dec 2007 22:57:29 +0000 (14:57 -0800)]
fix dump printout when byte >= 0x80
(This used to be commit e18fab269c7370a6670c56eeab60fd90feecf0b2)

16 years agoFix typo in filesystem capabilities bits.
James Peach [Thu, 20 Dec 2007 16:31:27 +0000 (08:31 -0800)]
Fix typo in filesystem capabilities bits.
(This used to be commit 08fee0d28a20648d74c6b03d120eaf628f4de70c)

16 years agoAttempt to fix the build
Volker Lendecke [Thu, 20 Dec 2007 09:33:13 +0000 (10:33 +0100)]
Attempt to fix the build

James, at least on my Linux system neither FILE_CASE_SENSITIVE_SEARCH nor
FILE_CASE_PRESERVING_NAMES seem to be defined anywhere. Is it possible that
this is a MacOS/X specific thing? If so, could you add configure tests for
this?

Thanks,

Volker
(This used to be commit 465fd4385013c95f9778d710d70796feae4eb858)

16 years agoRemove unused variable 'didmsg'.
James Peach [Thu, 20 Dec 2007 06:39:40 +0000 (22:39 -0800)]
Remove unused variable 'didmsg'.
(This used to be commit 5de89dd6e0a8a56a5a0f998e3b1d3538367db7d6)

16 years agoFix a couple of warnings in mDNS registration. One of these is an
James Peach [Thu, 20 Dec 2007 06:33:43 +0000 (22:33 -0800)]
Fix a couple of warnings in mDNS registration. One of these is an
actual bug where we pass a pointer instead of a pointer to a pointer.
(This used to be commit 36db6755103f01cb74bf4194fc81ca6d4b5320e4)

16 years agoAdd filesystem capabilities bitmask to statfs info.
James Peach [Mon, 15 Oct 2007 21:03:40 +0000 (14:03 -0700)]
Add filesystem capabilities bitmask to statfs info.

This patch adds Darwin support for the Samba statfs VFS call. It
also adds a filesystem capabilities bitmask to the information
returned by the call.
(This used to be commit 555173eb3f6511e88798d6ef3d1fed0c219a9921)

16 years agoExpose per-fsp extension talloc context.
James Peach [Mon, 15 Oct 2007 21:01:12 +0000 (14:01 -0700)]
Expose per-fsp extension talloc context.

This patch supplements the fsp extension API with an operation to
retrieve the malloc zone pointer for that fsp.
(This used to be commit d5d9e4084cfb3db3bebff0334b93f376022ef5d3)

16 years agoRelease per-fsp data on file closure.
James Peach [Mon, 15 Oct 2007 20:59:37 +0000 (13:59 -0700)]
Release per-fsp data on file closure.
(This used to be commit 9fead46b54519b3df78a869dbc99207046587d6a)

16 years agoOnly retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.
Michael Adam [Wed, 19 Dec 2007 16:53:14 +0000 (17:53 +0100)]
Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.

This essentially re-establishes r14496 (2155bb0535656f294bd054d6a0a7d16a9a71c31b)
which was undone in r17723 (43bd8c00abb38eb23a1497a255d194fb1bbffffb) for
reasons that are unclear to me. Maybe I am being too naive.

Now we do again only retrieve the password policy when called from
the pam_winbind module. This fixes logons delegated to AD trusted
domain controllers: We need to connect to the sam to retrieve the
password policy. But auhtenticated session setup is not possible
when contacting the trusted domain dc and afterwards, SamrConnect
also fails with whatever credentials and method used.

Michael
(This used to be commit 6d765e0de523211a2d0b43a2c4c4117f5f0c662f)

16 years agoChange the prototype of the vfs function get_nt_acl().
Michael Adam [Wed, 5 Dec 2007 08:53:10 +0000 (09:53 +0100)]
Change the prototype of the vfs function get_nt_acl().

Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.

This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.

Michael
(This used to be commit b5f600fab53c9d159a958c59795db3ba4a8acc63)

16 years agoPrepare the afs acl module for the api change in get_nt_acl().
Michael Adam [Tue, 4 Dec 2007 08:45:14 +0000 (09:45 +0100)]
Prepare the afs acl module for the api change in get_nt_acl().

This makes both of afsacl_[f]get_nt_acl() more specific,
eliminating the need for afs_get_nt_acl(). Instead, split
afs_to_nt_acl.

Michael
(This used to be commit 15caf58c81ce6b68eefa03c8f8510c2ecb5fdeb3)

16 years agoPrepare the aix2 acl module for the api change in get_nt_acl().
Michael Adam [Mon, 3 Dec 2007 17:31:03 +0000 (18:31 +0100)]
Prepare the aix2 acl module for the api change in get_nt_acl().

This makes both of aixjfs2_[f]get_nt_acl() more specific,
eliminating the need for aixjfs2_get_nt_acl_common().

Michael
(This used to be commit 36e2a814ba50feefa34c76353c0f5dec1d7cfff4)

16 years agoChange aixjfs2_get_nfs4_acl() to take file name instead of fsp.
Michael Adam [Mon, 3 Dec 2007 17:24:56 +0000 (18:24 +0100)]
Change aixjfs2_get_nfs4_acl() to take file name instead of fsp.

In preparation of the api change in api change in get_nt_acl().

Michael
(This used to be commit 40a1438e17c462990e6b71b544c39f093236d5be)

16 years agoFix two debug statements: Add missing printf parameter.
Michael Adam [Tue, 4 Dec 2007 07:25:21 +0000 (08:25 +0100)]
Fix two debug statements: Add missing printf parameter.

Michael
(This used to be commit 1c4f74551f48429ee3af2022101a97679e25cdea)

16 years agoReformatting: wrap long lines and remove trailing spaces.
Michael Adam [Tue, 4 Dec 2007 07:19:40 +0000 (08:19 +0100)]
Reformatting: wrap long lines and remove trailing spaces.

Michael
(This used to be commit f6db5a0d0571130f765d8a0fb4e20e61cc8b2487)

16 years agoPrepare the zfs acl module for the api change in get_nt_acl().
Michael Adam [Fri, 16 Nov 2007 17:33:39 +0000 (18:33 +0100)]
Prepare the zfs acl module for the api change in get_nt_acl().

Michael
(This used to be commit 04258231dc654df077638edb7cb08542e39b7547)

16 years agoPrepare the gpfs acl module for the api change in get_nt_acl().
Michael Adam [Fri, 16 Nov 2007 17:33:39 +0000 (18:33 +0100)]
Prepare the gpfs acl module for the api change in get_nt_acl().

This moves functionality from gpfsacl_get_nt_acl_common()
back to gpfsacl_get_nt_acl() and gpfsacl_fget_nt_acl(),
making both these functions more specific (calling the
corresponding fsp- and non-fsp functions).
gpfsacl_get_nt_acl_common(). is removed.

Michael
(This used to be commit d6043c1066322d2c567aedc5eae1a9d46c8fc396)

16 years agoSplit smb_get_nt_acl_nfs4 into two (f- and non-f-variant).
Michael Adam [Wed, 14 Nov 2007 23:46:20 +0000 (00:46 +0100)]
Split smb_get_nt_acl_nfs4 into two (f- and non-f-variant).

This is the next step in preparation of a get_nt_acl prototype change.

Michael
(This used to be commit 7afeb1c6cb1bdb58d1e61c54ae215d947d8dc3ea)

16 years agoSplit smbacl4_GetFileOwner into two (f- and non-f-variant).
Michael Adam [Fri, 9 Nov 2007 00:01:55 +0000 (01:01 +0100)]
Split smbacl4_GetFileOwner into two (f- and non-f-variant).

This is in preparation of a get_nt_acl prototype change.
(This used to be commit e0672a46a2e5e655da32499ca7f52a9156e9b7f0)

16 years agoSplit get_nt_acl() into two functions: fsp- and non-fsp variant.
Michael Adam [Tue, 6 Nov 2007 07:01:31 +0000 (08:01 +0100)]
Split get_nt_acl() into two functions: fsp- and non-fsp variant.

Replace smbd/posix_acls.c:get_nt_acl() by two funcions:
posix_get_nt_acl() and posix_fget_nt_acl(). The first
takes a connection struct and a file name instead of a
files_struct pointer. This is in preparation of changing
the vfs api for SMB_VFS_GET_NT_ACL.

Michael
(This used to be commit 50c82cc1456736fa634fb656e63555319742f725)

16 years agoRemove the "is_directory" parameter from canonicalise_acl():
Michael Adam [Tue, 6 Nov 2007 05:20:51 +0000 (06:20 +0100)]
Remove the "is_directory" parameter from canonicalise_acl():

It can be retrieved from the stat buffer.

Michael
(This used to be commit b0ae830bf57dcaec00b2a2eabfec7221a3b7f791)

16 years agoChange canonicalise_acl() to not take an fsp.
Michael Adam [Sat, 27 Oct 2007 23:38:59 +0000 (01:38 +0200)]
Change canonicalise_acl() to not take an fsp.

Convert canonicalise_acl() to take connection_struct, is_directory
and file name instead of files_struct pointer.

Michael
(This used to be commit d579a7f84fd47a3f00215725cecd65b21a5ff2e0)

16 years agoChange ensure_canon_entry_valid() to not take and fsp.
Michael Adam [Sat, 27 Oct 2007 23:24:41 +0000 (01:24 +0200)]
Change ensure_canon_entry_valid() to not take and fsp.

Convert ensure_canon_entry_valid() to take share_params and an is_directory
flag instead of an files_struct pointer.

Michael
(This used to be commit bdb208124bd703edee03ac4d2a4ec45ecdfc135e)

16 years agoChange apply_default_perms() to not take an fsp.
Michael Adam [Sat, 27 Oct 2007 23:14:51 +0000 (01:14 +0200)]
Change apply_default_perms() to not take an fsp.

This is a first change in a series: Pass what is needed instead of files_struct
pointers to some functions. This is in preparation of introducing two variants
of get_nt_acl - one for fname (which does not need an fsp), one for file
descriptor.

This changes apply_default_perms to take share_params (rather thatn snum)
and an is_directory flag instead of an fsp.

Michael
(This used to be commit d7e2e93758f6598a0459db3255300558618f066e)

16 years agoRemove Get_Pwnam and its associated static variable
Volker Lendecke [Wed, 19 Dec 2007 14:02:59 +0000 (15:02 +0100)]
Remove Get_Pwnam and its associated static variable

All callers are replaced by Get_Pwnam_alloc
(This used to be commit 735f59315497113aebadcf9ad387e3dbfffa284a)

16 years agoFix a "no prototype" warning
Volker Lendecke [Wed, 19 Dec 2007 19:27:47 +0000 (20:27 +0100)]
Fix a "no prototype" warning
(This used to be commit e5bd32812dd1e864e51c2199fd90d71813517f68)

16 years agoFix debug messages
Volker Lendecke [Wed, 19 Dec 2007 19:24:33 +0000 (20:24 +0100)]
Fix debug messages

When warning that "client plaintext auth" is not enabled where the server
requested them we should not talk about "client use plaintext auth"
(This used to be commit 7799e18994354b2705ee8c64ae8c75e062ace460)

16 years agoSamba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-716-g12cce3b
Volker Lendecke [Wed, 19 Dec 2007 12:48:49 +0000 (13:48 +0100)]
Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-716-g12cce3b

On Tue, Dec 18, 2007 at 06:04:32PM -0600, Jeremy Allison wrote:
>     Fix valgrind error in dbwrap_rbt where rec_priv->node was
>     being accessed after free. VALOKER PLEASE CHECK THIS VERY
>     CAREFULLY !!!! This is a correct fix in that it fixes the
>     valgrind error, but it looks inelegant to me. I think if
>     I understood this code better I could craft a more subtle
>     fix. Still looking at it....

Thanks a lot. Fully correct. What about the attached little
simplification?

Volker
(This used to be commit 5b72828600fb057a7aeb5f1a6fb6c23c23f28cd8)

16 years agopacket_struct is used in several places as raw memory
Volker Lendecke [Wed, 19 Dec 2007 16:05:26 +0000 (17:05 +0100)]
packet_struct is used in several places as raw memory

-> Fix more uninitialized variable warnings
(This used to be commit 0af02db6f2f84a8ce5d614e5baec27f20b413c26)

16 years agoSome paranoia checks
Volker Lendecke [Wed, 19 Dec 2007 15:48:18 +0000 (16:48 +0100)]
Some paranoia checks
(This used to be commit ff644cfa1b123e9d0f8f4817504e5b209b85dedd)

16 years agoZero the tdb key, there might be padding
Volker Lendecke [Wed, 19 Dec 2007 15:48:04 +0000 (16:48 +0100)]
Zero the tdb key, there might be padding

This leads to uninitialized variable warnings if nmbd is run under valgrind.
(This used to be commit 9ec4f91f35696e5a00e24fe9ae2dd06119482c80)

16 years agoToday is not my day...
Volker Lendecke [Wed, 19 Dec 2007 15:30:01 +0000 (16:30 +0100)]
Today is not my day...

dmapi.c certainly did compile now...
(This used to be commit 93f3a1172af2f1a20f0c4c26ec8be999546d95f8)

16 years agoRename cache.[ch] to memcache.[ch]
Volker Lendecke [Wed, 19 Dec 2007 14:45:22 +0000 (15:45 +0100)]
Rename cache.[ch] to memcache.[ch]

cache.h conflicts with an XFS DMAPI include on "opi" :-(
(This used to be commit b8db804e07cc19d406ba3892d6eecbe16132a89a)

16 years agoMerge WERR_NO_SUCH_LOGON_SESSION from Samba4.
Günther Deschner [Tue, 18 Dec 2007 12:38:14 +0000 (13:38 +0100)]
Merge WERR_NO_SUCH_LOGON_SESSION from Samba4.

Guenther
(This used to be commit 7b528647879bb55c9c85243a3e2906c09490edc9)

16 years agoAdd and use some keystr functions using talloc_tos() in secrets api.
Günther Deschner [Wed, 19 Dec 2007 09:58:58 +0000 (10:58 +0100)]
Add and use some keystr functions using talloc_tos() in secrets api.

Guenther
(This used to be commit 6ccbf67a0c6f117978df55d4e2565d34fddf9317)

16 years agoAdd cmd_wkssvc_enumeratecomputernames to rpcclient.
Günther Deschner [Wed, 19 Dec 2007 10:08:27 +0000 (11:08 +0100)]
Add cmd_wkssvc_enumeratecomputernames to rpcclient.

Guenther
(This used to be commit 289151393a43c7f0c2baafdd79d1163fc80aad6a)

16 years agoTwo more static fstrings gone.
Jeremy Allison [Wed, 19 Dec 2007 02:16:40 +0000 (18:16 -0800)]
Two more static fstrings gone.
Jeremy.
(This used to be commit 4056bb8645821fba95d6e9ca4d82e2d5084c1e5c)

16 years agoRemove last_message completely as it's no longer used.
Jeremy Allison [Wed, 19 Dec 2007 02:10:09 +0000 (18:10 -0800)]
Remove last_message completely as it's no longer used.
Jeremy.
(This used to be commit c378c3edc1197d46c5d6eb2bcabbf9e774c03ffc)

16 years agoRemove another static fstring.
Jeremy Allison [Wed, 19 Dec 2007 02:01:34 +0000 (18:01 -0800)]
Remove another static fstring.
Jeremy.
(This used to be commit f9182bbe628cb5f5395a08b2e09d4a282a99d7dc)

16 years agoWe've finished with the old node once we've copied the
Jeremy Allison [Wed, 19 Dec 2007 01:30:02 +0000 (17:30 -0800)]
We've finished with the old node once we've copied the
keyval.
Jeremy.
(This used to be commit 39f3efbcc5fbdff1db1b12e5fc7368968f240993)

16 years agoFix valgrind error in dbwrap_rbt where rec_priv->node was
Jeremy Allison [Wed, 19 Dec 2007 00:03:57 +0000 (16:03 -0800)]
Fix valgrind error in dbwrap_rbt where rec_priv->node was
being accessed after free. VALOKER PLEASE CHECK THIS VERY
CAREFULLY !!!! This is a correct fix in that it fixes the
valgrind error, but it looks inelegant to me. I think if
I understood this code better I could craft a more subtle
fix. Still looking at it....
Jeremy.
(This used to be commit 12cce3be2a24fd72106d747890caf6c7f29db43d)

16 years agoFix an error when accessing unallocated sid in error path.
Michael Adam [Tue, 18 Dec 2007 15:32:57 +0000 (16:32 +0100)]
Fix an error when accessing unallocated sid in error path.

Michael
(This used to be commit 2a0585d3093265a499c9fef60d500059f79b4112)

16 years agoAdd forgotten cache.h
Volker Lendecke [Tue, 18 Dec 2007 09:07:08 +0000 (10:07 +0100)]
Add forgotten cache.h
(This used to be commit 0dc4d6a8de84c191e339ee08c7f06ca63f83e6f3)

16 years agoAdd a in-memory cache
Volker Lendecke [Tue, 18 Dec 2007 08:41:03 +0000 (09:41 +0100)]
Add a in-memory cache

This is a more general API that caches data with a LRU scheme. See
include/cache.h. No comments yet, I'm still working on it. But Jeremy has given
me a hint in one of his checkins that he would like to make use of this now.

The idea is that we get rid of all our silly little caches and merge them all
into one cache that we can then very easily trim, for example even with a
smbcontrol message if someone decides memory is tight. The main user is the
stat cache, this patch also converts the getwd cache. More caches to come.
(This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)

16 years agoFix a debug message: add missing space.
Michael Adam [Tue, 18 Dec 2007 06:58:22 +0000 (07:58 +0100)]
Fix a debug message: add missing space.

Michael
(This used to be commit 6a7f2a59fc370e226ddacb195059155f28c6c157)

16 years agoAdd smbclient support for basic mDNS browsing.
Rishi Srivatsavai [Tue, 18 Dec 2007 06:09:09 +0000 (22:09 -0800)]
Add smbclient support for basic mDNS browsing.

Patch from Rishi Srivatsavai (bugzilla #4150), with tallocification
and minor syle changes by me.
(This used to be commit db74b99d0ef1a60894c838b4c9d0d454db6cf620)

16 years agoMore static pstring elimination.
Jeremy Allison [Tue, 18 Dec 2007 02:32:27 +0000 (18:32 -0800)]
More static pstring elimination.
Jeremy.
(This used to be commit 92acc0115d8d4111289c2ade1db7bb060ee908db)

16 years agoMore static fstring elimination.
Jeremy Allison [Tue, 18 Dec 2007 02:00:43 +0000 (18:00 -0800)]
More static fstring elimination.
Jeremy.
(This used to be commit b4dfec09e89428cac9b21a94ce4d24e60d4a54f4)

16 years agoRemove more static fstrings (yes this little cache should be
Jeremy Allison [Tue, 18 Dec 2007 01:27:29 +0000 (17:27 -0800)]
Remove more static fstrings (yes this little cache should be
in the rbtree....).
Jeremy.
(This used to be commit 97cfdae4052d46a35040d4c1a4ade8bf2c41dbc7)

16 years agoCorrectly define prototypes for accessor functions.
Jeremy Allison [Tue, 18 Dec 2007 01:13:31 +0000 (17:13 -0800)]
Correctly define prototypes for accessor functions.
Jeremy.
(This used to be commit 299ea5d122e173adf6edb6399fc90798747b0c97)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Tue, 18 Dec 2007 01:03:07 +0000 (17:03 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 8223624fea7c1b61e9231168cb4d82771576cbc5)

16 years agoMore static fstring removal.
Jeremy Allison [Tue, 18 Dec 2007 01:02:48 +0000 (17:02 -0800)]
More static fstring removal.
Jeremy.
(This used to be commit dcf624aa02cf7415a4a55e6d45606e813ae6b91f)

16 years agoFix logic error in cm_connect_sam().
Michael Adam [Tue, 18 Dec 2007 00:55:48 +0000 (01:55 +0100)]
Fix logic error in cm_connect_sam().

Don't fall back to schannel when trust creds could be obtained.
This is still not complete, but I am getting closer.

Michael
(This used to be commit 7c9fa597d684a25822b4db6615f28336f2d64ef3)

16 years agoPrevent another segfault.
Michael Adam [Tue, 18 Dec 2007 00:30:52 +0000 (01:30 +0100)]
Prevent another segfault.

Michael
(This used to be commit 0a9874c1c76c0ccc71caba7ee85a0ee1a91808c5)

16 years agoUse the %*s feature of snprintf to remove anothe static fstring.
Jeremy Allison [Tue, 18 Dec 2007 00:20:44 +0000 (16:20 -0800)]
Use the %*s feature of snprintf to remove anothe static fstring.
Jeremy.
(This used to be commit 4ae4b2358688bf289305a2db0ed01b653ac073b2)

16 years agoFix a segv in winbindd caused by trying to free an fstring.
Gerald (Jerry) Carter [Mon, 17 Dec 2007 23:33:48 +0000 (17:33 -0600)]
Fix a segv in winbindd caused by trying to free an fstring.
Make a copy of the machine_password and machine_account strings
in all conditional paths so that SAFE_FREE() will always be valid.
(This used to be commit 194c4640b158457a6d0d5ea91e28d41d619c77de)