1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-01 21:18:10 +03:00
Commit Graph

18464 Commits

Author SHA1 Message Date
Volker Lendecke
b6b84f98c0 r19668: Convert the locking params to use struct share_param instead of snum
(This used to be commit 609dbec600)
2007-10-10 12:15:46 -05:00
Volker Lendecke
5f3a692748 r19667: Fix incorrect null check
(This used to be commit dc9cdf37e9)
2007-10-10 12:15:46 -05:00
Volker Lendecke
dd8f8c01b7 r19666: Talloc_guide text on multithreading by Remi Turboult
(This used to be commit 36a7bf738a)
2007-10-10 12:15:45 -05:00
Volker Lendecke
b6fda7f8bd r19665: Fix a memleak
(This used to be commit bc6d4e5280)
2007-10-10 12:15:45 -05:00
Jeremy Allison
58406b0d1c r19659: Fix bug #4187. Possible crash in signing on/off code.
Jeremy.
(This used to be commit 78c1c43523)
2007-10-10 12:15:45 -05:00
Volker Lendecke
bf6bb74985 r19657: Correctly check for malloc failure
(This used to be commit e5b5c9b058)
2007-10-10 12:15:45 -05:00
Volker Lendecke
8371c0e44c r19656: Correctly check for malloc failure
(This used to be commit 3d0661b039)
2007-10-10 12:15:45 -05:00
Jim McDonough
3e8809cb4c r19655: Jeremy, please review:
I updated the vfs version in 3.0.24 from 16 to 17, beacuse 16 was the
latest released code, but on SAMBA_3_0, I reverted my earlier change
back from 19 to 18, because we've not had any released code with 18.

This is related to the kernel_flock call addition.
(This used to be commit fb8e43fb49)
2007-10-10 12:15:44 -05:00
Günther Deschner
c9567f2f22 r19652: Trying to track down which caller tries to store a 0 length domain name
in the affinity cache (which happens all the time here).

Guenther
(This used to be commit 45d6d30076)
2007-10-10 12:15:44 -05:00
Günther Deschner
61a38bd4b8 r19651: Fix interesting bug with the automatic site coverage in Active Directory:
When having DC-less sites, AD assigns DCs from other sites to that site
that does not have it's own DC. The most reliable way for us to identify
the nearest DC - in that and all other cases - is the closest_dc flag in
the CLDAP reply.

Guenther
(This used to be commit ff004f7284)
2007-10-10 12:15:44 -05:00
Jim McDonough
331cafd30f r19648: whoops, forgot to increment the vfs version number with the added flock
call.
(This used to be commit 1bc834455d)
2007-10-10 12:15:43 -05:00
Jim McDonough
4fe70bcee2 r19647: Add some GPFS support in a vfs mod. Also adds the kernel flock op to
the vfs layer, since gpfs supports it.  Thanks to Volker, Christian,
Mathias, Chetan, and Peter.
(This used to be commit 0620658890)
2007-10-10 12:15:43 -05:00
Günther Deschner
e513fb27d6 r19646: Fix memleak in the default_ou_string handling. Thanks to David Hu
<david.hu@hp.com>. Fixes #4212.

Guenther
(This used to be commit 4ec896cdbe)
2007-10-10 12:15:43 -05:00
Jeremy Allison
892d07b30b r19627: Fix for bug #4211 - logic error in acl_group_override()
function. Fix from Jim Wang of Wesoft.
Jeremy.
(This used to be commit eb78ce1f55)
2007-10-10 12:15:43 -05:00
James Peach
9a02736348 r19626: Coalesce usage of DUMP_CORE. Fix formatting on chdir error message
in core dump path.
(This used to be commit 9a51fba71c)
2007-10-10 12:15:42 -05:00
Jeremy Allison
ea705fb345 r19601: Fix protection from invalid struct tm values.
Backport from Samba4.
Jeremy.
(This used to be commit 02a0ac0bac)
2007-10-10 12:15:42 -05:00
Jelmer Vernooij
482603735d r19591: Use import' and include' in the IDL and regenerate.
(This used to be commit 68fc15a5e0)
2007-10-10 12:15:42 -05:00
Gerald Carter
cd41945acc r19579: BUG 4075: patch from Dmitry Butskoy <dmitry@butskoy.name>.
Allow smbd to use winbindd to lookup uids/gids outside the
idmap range if 'winbind trusted domains only = yes'
(This used to be commit 5b3ac400a7)
2007-10-10 12:15:42 -05:00
Jeremy Allison
f8fc3f9158 r19577: Fix from Nils Nordman for bug #4085. Thanks !
Jeremy.
(This used to be commit 3b5ab8ab82)
2007-10-10 12:15:42 -05:00
James Peach
3dcb61adcb r19576: Correct trivial typo.
(This used to be commit a0ada1aa34)
2007-10-10 12:15:42 -05:00
Jelmer Vernooij
2e1307bbc8 r19552: Fix names of known failing tests.
(This used to be commit b533620f04)
2007-10-10 12:15:41 -05:00
Jelmer Vernooij
ddc7dd256e r19542: Regenerate IDL.
(This used to be commit 759c1b0fd2)
2007-10-10 12:15:41 -05:00
Jeremy Allison
27c4b072b0 r19533: Add a suffix to the program name if this is a process with a
non-default configuration file name.
Jeremy.
(This used to be commit e8bf421c01)
2007-10-10 12:15:41 -05:00
Jeremy Allison
b7bf248985 r19529: Added showacls togle. Previously was vendor-specific code.
Merging these in - should have been merged back before (will
be tidied up later).
Jeremy.
(This used to be commit 1e9284590f)
2007-10-10 12:15:41 -05:00
Günther Deschner
31a63ab19f r19528: Fix container handling for "net ads user" and "net ads group" functions
along with some memleaks.

Guenther
(This used to be commit 4bad52c5b3)
2007-10-10 12:15:41 -05:00
Günther Deschner
4e0f560f60 r19527: Fix double free in "net ads group add".
Guenther
(This used to be commit 08db3d3b04)
2007-10-10 12:15:41 -05:00
Günther Deschner
6b65a1c26d r19526: Fix minor memleak.
Guenther
(This used to be commit 61ebedc82e)
2007-10-10 12:15:40 -05:00
Günther Deschner
25fb86570d r19525: Fix the same error in "net ads group delete".
Guenther
(This used to be commit 94ed3e9de8)
2007-10-10 12:15:40 -05:00
Günther Deschner
8a9c4331a3 r19524: Stop "net ads user delete" from doing funny things.
Guenther
(This used to be commit a20e7c0315)
2007-10-10 12:15:40 -05:00
Simo Sorce
2c14cf3b2b r19516: Fix the DN, to make searches using the domain as base
the DN must be rid,domain and not domain,rid

Also use member and not memberOf for group members
following conventions.
(This used to be commit 7c0ea791d2)
2007-10-10 12:15:40 -05:00
Gerald Carter
c101ce569d r19497: Thought I already fixes the etags target. Ignore .svn
and not CVS (since we don't use CVS anymore
(This used to be commit 782298cd03)
2007-10-10 12:15:40 -05:00
Günther Deschner
99433b1f7b r19494: When building with a static Heimdal, make sure not to link against
-lgssapi_krb5. With that change I could sucessfully verify that Heimdal
support is still working nicely after the changes from jpeach.

Guenther
(This used to be commit 53d09487a0)
2007-10-10 12:15:39 -05:00
Günther Deschner
78f977f746 r19493: There is no point in prompting for a user's password in "net ads" when
we can't find a domain controller at all.

Guenther
(This used to be commit e691ae7da3)
2007-10-10 12:15:39 -05:00
Simo Sorce
151237477b r19491: backport changes from samba4
(This used to be commit aa464c9fda)
2007-10-10 12:15:39 -05:00
Volker Lendecke
e6b56f9f0c r19487: Fix coverity # 313
(This used to be commit 0eb5a0f7b8)
2007-10-10 12:15:39 -05:00
Volker Lendecke
3a22bdf89e r19486: Probably Coverity is wrong here, but this fixes their ID 317. Not sure whether
to merge it to 4_0. I want it in 3_0 because it took a bit to persuade myself
that el can not be NULL here.

Volker
(This used to be commit c0c035b1c8)
2007-10-10 12:15:39 -05:00
Volker Lendecke
1fd4184da7 r19485: Fix Coverity # 319
(This used to be commit d9f1697c1f)
2007-10-10 12:15:38 -05:00
Volker Lendecke
16e98a60d1 r19484: Fix Coverity #329
(This used to be commit c3f860e55d)
2007-10-10 12:15:38 -05:00
James Peach
75018ad0cc r19477: Patch from Huang Dejin Eugene <hdejin@yahoo.com>.
Add configure option --enable-fam so that FAM support can explicitly
be controlled at build time. Default behaviour is to autodetect.
(This used to be commit 066951bc48)
2007-10-10 12:15:37 -05:00
Volker Lendecke
37ffa79139 r19469: Another user of NetShareEnum
(This used to be commit 3a1be1626c)
2007-10-10 12:15:37 -05:00
Volker Lendecke
24f7144930 r19468: Fix some potential NULL dereferences
(This used to be commit c8ed412976)
2007-10-10 12:15:37 -05:00
Volker Lendecke
ef05328552 r19451: Another cleanup of 18802. Referring to structures after the block has been
left is not a good idea.

Volker
(This used to be commit 88ac17db19)
2007-10-10 12:15:36 -05:00
Volker Lendecke
1c16e0d642 r19450: Fix smbtree's use of netshareenum.
Jelmer, how much of r18802 did you actually test??

Volker
(This used to be commit d0025861c0)
2007-10-10 12:15:36 -05:00
Volker Lendecke
2a10d76865 r19448: Convert delete_share_security to struct share_params plus some cleanups
(This used to be commit c73d0815a3)
2007-10-10 12:15:36 -05:00
Volker Lendecke
f916352de9 r19447: Do not throw away information
(This used to be commit 141e0dd717)
2007-10-10 12:15:36 -05:00
Volker Lendecke
f29a0d90a3 r19446: Comment can be NULL now
(This used to be commit f4dcb9bd56)
2007-10-10 12:15:36 -05:00
Volker Lendecke
0dab687fce r19445: Attempt to fix net rpc share
(This used to be commit 769988f83a)
2007-10-10 12:15:36 -05:00
Stefan Metzmacher
e7c14137fa r19444: merge from samba4:
reset trap when we have removed the test specifc files already

metze
(This used to be commit 36065025c7)
2007-10-10 12:15:35 -05:00
Andrew Tridgell
2729f448c0 r19431: merge recent talloc performance improvements from Samba4
(This used to be commit ced12bd6d8)
2007-10-10 12:15:35 -05:00
Andrew Tridgell
7a390a0dab r19430: merge recent ldb changes from Samba4. This includes memory leak fixes
and significant speedups
(This used to be commit bb5c205fef)
2007-10-10 12:15:35 -05:00
Andrew Tridgell
aa3ca346d8 r19429: moved tdb/common/tdbutil.c into lib/util_tdb.c
see discussion on samba-technical
(This used to be commit 1ad563286f)
2007-10-10 12:15:35 -05:00
Andrew Tridgell
7d52581978 r19426: merge nearly all the differences between Samba3 tdb and Samba4
tdb. This includes:

 - the new tdb_lockall and tdb_lockall_read code, which will be needed
   for the ldb speedups

 - the tdb logging changes. This is an intermediate step to keep the
   differences between the two branches small. The plan is still to
   move to a tdb_init()/tdb_set_logging_function()/tdb_attach() style
   of open which will make things much cleaner.

 - the updated test suites and standalone tdb build code

 - use libreplace headers

There are still some small differences I haven't merged. I'll discuss
those on the list.
(This used to be commit 48903c75ed)
2007-10-10 12:15:35 -05:00
Jeremy Allison
3da4607374 r19424: Protect against username == NULL
Jeremy.
(This used to be commit 78b14de27a)
2007-10-10 12:15:34 -05:00
Jeremy Allison
f58f146834 r19422: Doh ! Put the krb5 user@realm code in the right place.
Jeremy.
(This used to be commit a31bbbaee1)
2007-10-10 12:15:34 -05:00
Gerald Carter
6e2b290672 r19421: BUG 3868: Patch from Timur Bakeyev <timur@com.bat.ru> to prevent
--with-aio-support from trimping on the $LIBS variable
(This used to be commit 00bf29d352)
2007-10-10 12:15:34 -05:00
Gerald Carter
80d40172ef r19420: Remove strequal and use strcmp() instead. Meant to
make the change before theprevious commit.
(This used to be commit 815388c4c8)
2007-10-10 12:15:34 -05:00
Gerald Carter
2145eff91d r19419: BUG 4109: Patch from Timur Bakeyev. Fix bug causing smbd to turn off
winbindd and fail to disable the _NO_WINBIND environment.
(This used to be commit a6366b40b3)
2007-10-10 12:15:34 -05:00
Gerald Carter
7ac5df4824 r19417: BUG 3856: patch from Timur Bakeyev <timur@com.bat.ru> to include setting the nss soname version on FreeBSD
(This used to be commit e1490e72ea)
2007-10-10 12:15:33 -05:00
Günther Deschner
a2dfdfbf86 r19416: Fix some c++ warnings.
Guenther
(This used to be commit b076c39b6a)
2007-10-10 12:15:33 -05:00
Günther Deschner
1e86361080 r19415: oh la la, always compile before commit, I'm very sorry.
Guenther
(This used to be commit bdd2e0361c)
2007-10-10 12:15:33 -05:00
Günther Deschner
9034063617 r19414: gencache is getting really important now, make sure that lp_lockdir
always exists so that the gencache.tdb can get created there.

Guenther
(This used to be commit e5ed286125)
2007-10-10 12:15:33 -05:00
Jeremy Allison
e070996cc3 r19413: Now we're calling init_dc_connection, this code
is completely useless (and in fact harmful :-) in
that it causes a winbindd error where there should
be none.
Jeremy.
(This used to be commit acf5419d62)
2007-10-10 12:15:33 -05:00
Jeremy Allison
d273a2ef1d r19399: Now Guenther discovered one crash dereferencing domain->backends,
get paranoid. I don't think this can really happen, but let's be
sure.
Jeremy.
(This used to be commit be4709984b)
2007-10-10 12:15:33 -05:00
Günther Deschner
5afaa37662 r19394: When we fail to get the list of trusted domains, make sure to return
WINBINDD_ERROR.

Guenther
(This used to be commit 6089b3007b)
2007-10-10 12:15:32 -05:00
Günther Deschner
edba79e500 r19391: Fix crash bug within the winbind caching method.
That one was hard to find: when coming from offline mode and switching
to online, a refresh sequence number call (using the default MS-RPC
mechanism) may reset domain->backend to NULL (by the set_domain_online
event). We need to make sure to reidentify the remote domain in that
case.

Guenther
(This used to be commit 4d6503d137)
2007-10-10 12:15:32 -05:00
Jelmer Vernooij
ea032c024d r19390: Add some tests that are known failing against samba3.
(This used to be commit 6ff2ad4246)
2007-10-10 12:15:32 -05:00
James Peach
09ead9c8fa r19386: Limit the size of the connection bitmap to <64K entries.
(This used to be commit 9f0518e0b0)
2007-10-10 12:15:32 -05:00
James Peach
322863b392 r19385: These replaced symbols should have a rep_ prefix.
(This used to be commit decdb46a3f)
2007-10-10 12:15:32 -05:00
Stefan Metzmacher
74bb9cb3bd r19374: fix the build with heimdal
metze
(This used to be commit a813c75955)
2007-10-10 12:15:32 -05:00
Günther Deschner
21344a731c r19371: Add two missing refresh_sequence_number calls where they are missing
just before writing to the winbind cache tdb.

Guenther
(This used to be commit bd8548998b)
2007-10-10 12:15:32 -05:00
Günther Deschner
257c5c095b r19368: Use WINBINDD_CACHE_TDB_DEFAULT_HASH_SIZE whereever the winbindd tdb is
opened.

Guenther
(This used to be commit 49e9e1a3e7)
2007-10-10 12:15:31 -05:00
Günther Deschner
dbcb4b1266 r19355: Add getdispenumindex2 wrapper for rpcclient.
Guenther
(This used to be commit 27c35848eb)
2007-10-10 12:15:31 -05:00
Günther Deschner
8b31fccafe r19354: adjust usage printf for rpcclient's timeout command.
Guenther
(This used to be commit fb21c9c58b)
2007-10-10 12:15:31 -05:00
Günther Deschner
fb183ebd92 r19353: Add "timeout" command for rpcclient.
Guenther
(This used to be commit 4106a56d3f)
2007-10-10 12:15:30 -05:00
Günther Deschner
b26b8f95e9 r19351: Also export the info3 profilepath via the PAM_WINBIND_PROFILEPATH data
field.

Guenther
(This used to be commit 66b92f27fa)
2007-10-10 12:15:30 -05:00
Günther Deschner
da6e42b47f r19349: Fix invalid free on the PAM_WINBIND_PWD_LAST_SET data.
Guenther
(This used to be commit a4d17ee9c9)
2007-10-10 12:15:30 -05:00
Günther Deschner
e42f449fcc r19348: Fix uninitialized dictionary handle, found by valgrind.
Guenther
(This used to be commit 9621bb420a)
2007-10-10 12:15:30 -05:00
Stefan Metzmacher
2bc3099c71 r19342: we only have one BASE-LOCK test in samba4's smbtorture now
metze
(This used to be commit a2c20811d6)
2007-10-10 12:15:29 -05:00
Günther Deschner
258f7b50dc r19340: Wait longer then 10 seconds for a samr_query_groupmem lookup to succeed.
Guenther
(This used to be commit 37dd019e21)
2007-10-10 12:15:29 -05:00
Jeremy Allison
25cba8669d r19302: Use TALLOC_ZERO_P not TALLOC_P to ensure unused
fields are initialized to zero.
Jeremy.
(This used to be commit 8a0ff70e8e)
2007-10-10 12:15:29 -05:00
Jeremy Allison
76022f73d6 r19301: Correct debug statement.
(This used to be commit 3ea8399bc9)
2007-10-10 12:15:29 -05:00
Jeremy Allison
4a942c592a r19300: Fix null deref in debug statement.
Jeremy.
(This used to be commit c55b9111f6)
2007-10-10 12:15:29 -05:00
Volker Lendecke
7b9ef5e840 r19292: Avoid some potential segfaults: In winreg_EnumValue all pointers are unique
pointers and can thus be independently NULL.

Thanks,

Volker
(This used to be commit d48ac0726a)
2007-10-10 12:15:29 -05:00
Stefan Metzmacher
6ec00affb6 r19291: this should fix the build on heimdal systems
metze
(This used to be commit 785ab128c4)
2007-10-10 12:15:28 -05:00
Volker Lendecke
99cf1bef10 r19290: regedit running on nt4 will cut off the last character from a enumkey without
this patch. Jerry, Jelmer, can you please check this?

Thanks,

Volker
(This used to be commit ed95fe3c63)
2007-10-10 12:15:28 -05:00
Volker Lendecke
f799df03d4 r19288: tdb_prs_store is right now used to store printer and share security
descriptors. Both databases are long-lived and not frequently written, so I
think storing it deserves a tdb transaction.

Volker
(This used to be commit 2d4b5f5727)
2007-10-10 12:15:28 -05:00
Volker Lendecke
7d2aa0d3f1 r19287: As requested by Bjoern Jacke <bjoern@j3e.de>: Check in the NetBSD winbind module by Luke
Mewburn.

Volker
(This used to be commit 104f5e9ec9)
2007-10-10 12:15:28 -05:00
James Peach
2e46e9189a r19286: Remove dependency on Fink. If we really *need* anything from Fink,
this shold be a strong dependency. If stuff from Fink is an optional
extra, there should be a --with-stuff-from-fink argument. It's just
too easy to unexpectedly end up with binaries that depend on
/sw/{lib,include}.
(This used to be commit d0166e1172)
2007-10-10 12:15:28 -05:00
Jeremy Allison
94d565b36b r19272: Ensure we return 1 member in the optimized case.
(This used to be commit cc6cdabf19)
2007-10-10 12:15:28 -05:00
Jeremy Allison
25f0f624f8 r19271: Test the "hack" for "Domain Users" as agreed with
Jerry.
If "enum users" is set to false, and the group being looked
up is the Domain Users SID: S-1-5-domain-513, then for the
list of members check if the querying user is in that group,
and if so only return that user as the gr_mem array.
We can change this to a different parameter than "enum users"
if neccessaey, or parameterize the group list we do this for.
Jeremy.
(This used to be commit 91b40e25cc)
2007-10-10 12:15:27 -05:00
James Peach
876be25055 r19270: Stop depending on internal MIT symbols. These are private on MacOS
x, so we can't get at them even if we wanted to.

Kerberos experts, please take a look to make sure I've done the
right thing!
(This used to be commit 9b8e179fcc)
2007-10-10 12:15:27 -05:00
Günther Deschner
424d7640b8 r19263: Be more accurate in telling what the sitename problem is in this DEBUG
statement.

Guenther
(This used to be commit 62928734b8)
2007-10-10 12:15:26 -05:00
Jeremy Allison
0c72a09e7d r19260: Fix for bug #3524 from tiamat@komi.mts.ru - Solaris quotas.
Jeremy.
(This used to be commit ac510a90f3)
2007-10-10 12:15:26 -05:00
Jeremy Allison
a0c84f1b12 r19257: Janitor for Guenther - as well as a little massaging to make
his patch fit SAMBA_3_0. (This is guenthers code). Make
site support work correctly in net ads join.
Jeremy.
(This used to be commit 47352b5398)
2007-10-10 12:15:26 -05:00
Günther Deschner
7399ab779d r19255: Add blacklist of accounts when NSS initgroups calls are coming in and
"winbind use default domain" is set. Defaults to "root, nobody, lp"
currently.

Guenther
(This used to be commit b5b42196a6)
2007-10-10 12:15:26 -05:00
Günther Deschner
96869053a5 r19254: Make sure to also wait 35 seconds to receive a Netlogon GETDC reply
here in winbindd_getdcname().

Guenther
(This used to be commit 58a181edc5)
2007-10-10 12:15:26 -05:00
Derrell Lipman
c7864f3d53 r19250: Fixes bug 4156.
The protocol negotiation string "LANMAN2.1" was not listed in the set of
negotiatiable possibilities, so non-optimal negotiation was taking place.
(This used to be commit a0dfa60fc5)
2007-10-10 12:15:25 -05:00
Jeremy Allison
37be6913fe r19249: Attempt to fix a site lookup bug found by Guenther.
- "The problem is, with a fresh system, we don't know our sitename,
therefor we do a stupid DNS query for all DCs. The reply we get is a
round-robin list of all 21 DCs, we just pick the first, contact that
and safe that INET.COM#1C query in the name cache for later use...
What we need to do if we don't yet know our sitename, is to contact to
any DC, get the CLDAP reply to tell us in which site we are, then flush
the namecache and requery DNS including the sitename"

Implement the flushing of the #1C entries for a given NetBIOS name/realm
when looking up the site value.

Jeremy.
(This used to be commit b2d1e44f59)
2007-10-10 12:15:25 -05:00
Volker Lendecke
a0dd125859 r19248: Activate RPC-SAMBA3-WKSSVC
(This used to be commit ed6070b7a0)
2007-10-10 12:15:25 -05:00
Stefan Metzmacher
f9f3a2d790 r19246: merge from samba4 rev 18207 and 18208:
readline fixes for mac os 10

metze
(This used to be commit 976b97ecbf)
2007-10-10 12:15:25 -05:00
Stefan Metzmacher
51994b35f1 r19244: fix the build on systems with broken krb5
we need to make sure

HAVE_GSSAPI

HAVE_KRB5_H
HAVE_GSSAPI_H
HAVE_GSSAPI_GSSAPI_GENERIC_H
HAVE_GSSAPI_GSSAPI_H

are not in config.h

this adds 2 new macros to libreplace
AC_REMOVE_DEFINE(), AC_REMOVE_INCLUDE()

metze
(This used to be commit eb1f0b49cf)
2007-10-10 12:15:25 -05:00
Günther Deschner
06ea7f144a r19243: Fix debug statement.
Guenther
(This used to be commit 4b9d79147a)
2007-10-10 12:15:25 -05:00
Stefan Metzmacher
1843884fbf r19241: compile xattr wrappers on mac os 10
patch from Bjoern Jacke and it fixes bug 3698

metze
(This used to be commit e54302b916)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
9830fc431b r19240: move the NO_CONFIG_H check to libreplace
this fixes the quota detection configure and maybe more
configure tests

metze
(This used to be commit a3a082c42c)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
960894349f r19239: make the acl configure check more readable...
metze
(This used to be commit 0882f0c9d6)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
6c1eaffd2e r19238: Let the comfigure check find that some krb5 functions
are missing! Bailing out at compile time is ugly.

Hopefully this fixes the Mac OS 10 boxes in the build-farm
there're some missing function. Fixing that is a different
problem...

metze
(This used to be commit e00a83a0b6)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
bbefb74bca r19237: fix typo
metze
(This used to be commit d91041d4b6)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
1cbaa09ffc r19236: prepare for --with-pam=auto as default
but still leave --with-pam=no the default for now
and wait for discussion on samba-technical

metze
(This used to be commit b045d5afcf)
2007-10-10 12:15:24 -05:00
Stefan Metzmacher
f455951e1e r19235: merge from samba4:
fix configure test for net/if.h on some platforms

AC_LANG_SOURCE() adds the content of confdefs.h in front
of the compiled file

metze
(This used to be commit 7cbdc06ad9)
2007-10-10 12:15:23 -05:00
Stefan Metzmacher
fc15a2ae5f r19233: remove unused --with-spinlocks option
the defines are not used anywhere in the tree.
(grep -R SPINLOCKS . in the topdir)

metze
(This used to be commit 1697686d9d)
2007-10-10 12:15:23 -05:00
Stefan Metzmacher
2c2728b8a7 r19232: merge from samba4:
- machine/sys/getppdp.h workaround for HPUX 11.23
- more verbose check for net/if.h

metze
(This used to be commit 9b5c5bc3f3)
2007-10-10 12:15:23 -05:00
Derrell Lipman
2db5ed7fa5 r19231: I encountered a WinXP/Home system which, acting as the master browser for its
workgroup, decided periodically to stop sending recognized responses to a
NetServerEnum2 request for the workgroup.  Instead of returning the list of
servers (only itself; nothing else in the workgroup), it returns a status code
of 8 which is unsupported by samba3, samba4, and ethereal.

The code for this request assumed that if an unexpected status code was
received, the connection had a problem, i.e. that cli_errno() would show a
problem.  That turns out not to be the case.

This patch changes the behavior so tha any time a response is received and
cli_errno() == 0, we continue processing the reply and base our response on
the returned count (zero).  The pre-existing code then converts this count=0
into an ENOENT errno which can be properly handled by the application (whereas
an error return with errno=0 can't be).

This packet dump has only 2 frames.  Sorry about the text version but it's
most easily attached to this log message.  I also have it saved as .pcap if
anyone wants it.

Derrell

No.     Time            Source                Destination           Protocol Info
      1 14:31:59.802668 192.168.1.106         192.168.1.100         LANMAN   NetServerEnum2 Request, Server, SQL Server, Domain Controller, Backup Controller, Time Source, Apple Server, Novell Server, Domain Member Server, Print Queue Server, Dialin Server, Xenix Server, NT Workstation, Windows for Workgroups, Unknown server type:14, NT Server

Frame 1 (196 bytes on wire, 196 bytes captured)
    Arrival Time: Oct 10, 2006 14:31:59.802668000
    Time delta from previous packet: 0.000000000 seconds
    Time since reference or first frame: 0.000000000 seconds
    Frame Number: 1
    Packet Length: 196 bytes
    Capture Length: 196 bytes
    Protocols in frame: eth:ip:tcp:nbss:smb
Ethernet II, Src: IntelCor_4a:47:bb (00:13:20:4a:47:bb), Dst: Micro-St_74:16:e7 (00:0c:76:74:16:e7)
    Destination: Micro-St_74:16:e7 (00:0c:76:74:16:e7)
    Source: IntelCor_4a:47:bb (00:13:20:4a:47:bb)
    Type: IP (0x0800)
Internet Protocol, Src: 192.168.1.106 (192.168.1.106), Dst: 192.168.1.100 (192.168.1.100)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 182
    Identification: 0xb838 (47160)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 64
    Protocol: TCP (0x06)
    Header checksum: 0xfdea [correct]
        Good: True
        Bad : False
    Source: 192.168.1.106 (192.168.1.106)
    Destination: 192.168.1.100 (192.168.1.100)
Transmission Control Protocol, Src Port: 44932 (44932), Dst Port: netbios-ssn (139), Seq: 851982066, Ack: 1274726157, Len: 130
    Source port: 44932 (44932)
    Destination port: netbios-ssn (139)
    Sequence number: 851982066
    Next sequence number: 851982196
    Acknowledgement number: 1274726157
    Header length: 32 bytes
    Flags: 0x0018 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 6432
    Checksum: 0xb4e0 [correct]
    Options: (12 bytes)
        NOP
        NOP
        Time stamp: tsval 1184074739, tsecr 11576161
NetBIOS Session Service
    Message Type: Session message
    Flags: 0x00
        .... ...0 = Add 0 to length
    Length: 126
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        Response in: 2
        SMB Command: Trans (0x25)
        NT Status: STATUS_SUCCESS (0x00000000)
        Flags: 0x08
            0... .... = Request/Response: Message is a request to the server
            .0.. .... = Notify: Notify client only on open
            ..0. .... = Oplocks: OpLock not requested/granted
            ...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
            .... 1... = Case Sensitivity: Path names are caseless
            .... ..0. = Receive Buffer Posted: Receive buffer has not been posted
            .... ...0 = Lock and Read: Lock&Read, Write&Unlock are not supported
        Flags2: 0xc801
            1... .... .... .... = Unicode Strings: Strings are Unicode
            .1.. .... .... .... = Error Code Type: Error codes are NT error codes
            ..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
            ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
            .... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
            .... .... .0.. .... = Long Names Used: Path names in request are not long file names
            .... .... .... .0.. = Security Signatures: Security signatures are not supported
            .... .... .... ..0. = Extended Attributes: Extended attributes are not supported
            .... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 2048
        Process ID: 12967
        User ID: 2048
        Multiplex ID: 6
    Trans Request (0x25)
        Word Count (WCT): 14
        Total Parameter Count: 36
        Total Data Count: 0
        Max Parameter Count: 8
        Max Data Count: 65535
        Max Setup Count: 0
        Reserved: 00
        Flags: 0x0000
            .... .... .... ..0. = One Way Transaction: Two way transaction
            .... .... .... ...0 = Disconnect TID: Do NOT disconnect TID
        Timeout: Return immediately (0)
        Reserved: 0000
        Parameter Count: 36
        Parameter Offset: 90
        Data Count: 0
        Data Offset: 126
        Setup Count: 0
        Reserved: 00
        Byte Count (BCC): 63
        Transaction Name: \PIPE\LANMAN
SMB Pipe Protocol
Microsoft Windows Lanman Remote API Protocol
    Function Code: NetServerEnum2 (104)
    Parameter Descriptor: WrLehDz
    Return Descriptor: B16BBDz
    Detail Level: 1
    Receive Buffer Length: 65535
    Server Type: 0x0000fffe
        .... .... .... .... .... .... .... ...0 = Workstation: This is NOT a Workstation
        .... .... .... .... .... .... .... ..1. = Server: This is a Server
        .... .... .... .... .... .... .... .1.. = SQL: This is an SQL server
        .... .... .... .... .... .... .... 1... = Domain Controller: This is a Domain Controller
        .... .... .... .... .... .... ...1 .... = Backup Controller: This is a Backup Controller
        .... .... .... .... .... .... ..1. .... = Time Source: This is a Time Source
        .... .... .... .... .... .... .1.. .... = Apple: This is an Apple host
        .... .... .... .... .... .... 1... .... = Novell: This is a Novell server
        .... .... .... .... .... ...1 .... .... = Member: This is a Domain Member server
        .... .... .... .... .... ..1. .... .... = Print: This is a Print Queue server
        .... .... .... .... .... .1.. .... .... = Dialin: This is a Dialin server
        .... .... .... .... .... 1... .... .... = Xenix: This is a Xenix server
        .... .... .... .... ...1 .... .... .... = NT Workstation: This is an NT Workstation
        .... .... .... .... ..1. .... .... .... = WfW: This is a WfW host
        .... .... .... .... 1... .... .... .... = NT Server: This is an NT Server
        .... .... .... ...0 .... .... .... .... = Potential Browser: This is NOT a Potential Browser
        .... .... .... ..0. .... .... .... .... = Backup Browser: This is NOT a Backup Browser
        .... .... .... .0.. .... .... .... .... = Master Browser: This is NOT a Master Browser
        .... .... .... 0... .... .... .... .... = Domain Master Browser: This is NOT a Domain Master Browser
        .... .... ...0 .... .... .... .... .... = OSF: This is NOT an OSF host
        .... .... ..0. .... .... .... .... .... = VMS: This is NOT a VMS host
        .... .... .0.. .... .... .... .... .... = Windows 95+: This is NOT a Windows 95 or above host
        .0.. .... .... .... .... .... .... .... = Local: This is NOT a local list only request
        0... .... .... .... .... .... .... .... = Domain Enum: This is NOT a Domain Enum request
    Enumeration Domain: WORKGROUP

No.     Time            Source                Destination           Protocol Info
      2 14:31:59.803918 192.168.1.100         192.168.1.106         LANMAN   NetServerEnum2 Response

Frame 2 (134 bytes on wire, 134 bytes captured)
    Arrival Time: Oct 10, 2006 14:31:59.803918000
    Time delta from previous packet: 0.001250000 seconds
    Time since reference or first frame: 0.001250000 seconds
    Frame Number: 2
    Packet Length: 134 bytes
    Capture Length: 134 bytes
    Protocols in frame: eth:ip:tcp:nbss:smb
Ethernet II, Src: Micro-St_74:16:e7 (00:0c:76:74:16:e7), Dst: IntelCor_4a:47:bb (00:13:20:4a:47:bb)
    Destination: IntelCor_4a:47:bb (00:13:20:4a:47:bb)
    Source: Micro-St_74:16:e7 (00:0c:76:74:16:e7)
    Type: IP (0x0800)
Internet Protocol, Src: 192.168.1.100 (192.168.1.100), Dst: 192.168.1.106 (192.168.1.106)
    Version: 4
    Header length: 20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
        0000 00.. = Differentiated Services Codepoint: Default (0x00)
        .... ..0. = ECN-Capable Transport (ECT): 0
        .... ...0 = ECN-CE: 0
    Total Length: 120
    Identification: 0xea10 (59920)
    Flags: 0x04 (Don't Fragment)
        0... = Reserved bit: Not set
        .1.. = Don't fragment: Set
        ..0. = More fragments: Not set
    Fragment offset: 0
    Time to live: 128
    Protocol: TCP (0x06)
    Header checksum: 0x8c50 [correct]
        Good: True
        Bad : False
    Source: 192.168.1.100 (192.168.1.100)
    Destination: 192.168.1.106 (192.168.1.106)
Transmission Control Protocol, Src Port: netbios-ssn (139), Dst Port: 44932 (44932), Seq: 1274726157, Ack: 851982196, Len: 68
    Source port: netbios-ssn (139)
    Destination port: 44932 (44932)
    Sequence number: 1274726157
    Next sequence number: 1274726225
    Acknowledgement number: 851982196
    Header length: 32 bytes
    Flags: 0x0018 (PSH, ACK)
        0... .... = Congestion Window Reduced (CWR): Not set
        .0.. .... = ECN-Echo: Not set
        ..0. .... = Urgent: Not set
        ...1 .... = Acknowledgment: Set
        .... 1... = Push: Set
        .... .0.. = Reset: Not set
        .... ..0. = Syn: Not set
        .... ...0 = Fin: Not set
    Window size: 64606
    Checksum: 0x1e0d [correct]
    Options: (12 bytes)
        NOP
        NOP
        Time stamp: tsval 11576161, tsecr 1184074739
NetBIOS Session Service
    Message Type: Session message
    Flags: 0x00
        .... ...0 = Add 0 to length
    Length: 64
SMB (Server Message Block Protocol)
    SMB Header
        Server Component: SMB
        Response to: 1
        Time from request: 0.001250000 seconds
        SMB Command: Trans (0x25)
        NT Status: STATUS_SUCCESS (0x00000000)
        Flags: 0x88
            1... .... = Request/Response: Message is a response to the client/redirector
            .0.. .... = Notify: Notify client only on open
            ..0. .... = Oplocks: OpLock not requested/granted
            ...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
            .... 1... = Case Sensitivity: Path names are caseless
            .... ..0. = Receive Buffer Posted: Receive buffer has not been posted
            .... ...0 = Lock and Read: Lock&Read, Write&Unlock are not supported
        Flags2: 0xc801
            1... .... .... .... = Unicode Strings: Strings are Unicode
            .1.. .... .... .... = Error Code Type: Error codes are NT error codes
            ..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
            ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
            .... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
            .... .... .0.. .... = Long Names Used: Path names in request are not long file names
            .... .... .... .0.. = Security Signatures: Security signatures are not supported
            .... .... .... ..0. = Extended Attributes: Extended attributes are not supported
            .... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
        Process ID High: 0
        Signature: 0000000000000000
        Reserved: 0000
        Tree ID: 2048
        Process ID: 12967
        User ID: 2048
        Multiplex ID: 6
    Trans Response (0x25)
        Word Count (WCT): 10
        Total Parameter Count: 8
        Total Data Count: 0
        Reserved: 0000
        Parameter Count: 8
        Parameter Offset: 56
        Parameter Displacement: 0
        Data Count: 0
        Data Offset: 64
        Data Displacement: 0
        Setup Count: 0
        Reserved: 00
        Byte Count (BCC): 9
        Padding: 00
SMB Pipe Protocol
Microsoft Windows Lanman Remote API Protocol
    Function Code: NetServerEnum2 (104)
    Status: Unknown (8)
    Convert: 0
    Entry Count: 0
    Available Entries: 0
(This used to be commit 88fa5ac734)
2007-10-10 12:15:23 -05:00
Jeremy Allison
ee0ec18101 r19230: Doh ! Fix obvious crash bug.....
(This used to be commit e656027049)
2007-10-10 12:15:23 -05:00
Volker Lendecke
4980baf2e1 r19224: Add setting the rng_fault_state to the already converted pipes.
Convert the low-hanging fruit of the LSA server. This provides a sample how
the server calls can be converted one by one, see the "proxy_lsa_call"
function.

Volker
(This used to be commit 99e54a213a)
2007-10-10 12:15:23 -05:00
Volker Lendecke
6b0b563fa4 r19221: Monster-Checkin after "make idl"
(This used to be commit 416466a16f)
2007-10-10 12:15:22 -05:00
Volker Lendecke
b71a0be998 r19220: Check if a backend has set rng_fault_state and send a dce-level fault pdu.
Volker
(This used to be commit 21c08e7ef4)
2007-10-10 12:15:22 -05:00
Volker Lendecke
ced8406402 r19218: With the new RPC server infrastructure all backend functions are filled, at
least with dummy routines. We need a way to indicate that we do not support a
call, so that srv_pipe_hnd.c can return the DCE level RNG_ERROR.

This flag can be set in the backend routines for this one. I'll change pidl to
generate code to "return False" in srv_lsa.c if this flag is set.

Volker
(This used to be commit 5260657664)
2007-10-10 12:15:22 -05:00
Jeremy Allison
ed088e5ee0 r19212: Make sure domains marked internal don't do
network queries.
Jeremy.
(This used to be commit e4d5e1d90b)
2007-10-10 12:15:22 -05:00
Jeremy Allison
fe3fc9c8d5 r19209: Ensure we don't make mistakes by sending online/offline
messages to internal domains, or to domains not being
serviced by a winbindd child. Ensure the child online
offline requests are domain specific.
Jeremy.
(This used to be commit 81a9dc4b9f)
2007-10-10 12:15:22 -05:00
Jeremy Allison
9421a0a9cd r19207: Properly canonicalize incoming names to the
NSS protocols auth, chauthtok, logoff, ccache_ntlm_auth.
That way we ensure winbindd only deals with fully
qualified names internally. The NSS protocols
auth_crap and chng_pswd_auth_crap should be fixed
to do the same thing.
Jeremy.
(This used to be commit dbd2454d33)
2007-10-10 12:15:21 -05:00
Günther Deschner
b405a39714 r19206: Jeremy, for some reason storing a value-less entry in TDB does not work
anymore in 3_0. I'm just adding a time(NULL) as value for the
WINBINDD_OFFLINE key.

Guenther
(This used to be commit 2bdf9f140f)
2007-10-10 12:15:21 -05:00
Volker Lendecke
9d20474a48 r19203: Part two of returning our real name. This code is a bit ancient... :-)
(This used to be commit 370c24ba2a)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
442f5526a0 r19193: merge from samba4:
fixed another checker warning and a possible error on allocation
failure

metze
(This used to be commit d64583a763)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
c9b797b3ba r19192: merge from samba4:
ensure that data values from ldap libs are null terminated, to allow
ldb_msg_find_attr_as_string() to work correctly.

Thanks to Jim Myers for spotting this!

metze
(This used to be commit a5ea82bb05)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
85281ec526 r19191: merge from samba4:
fix checker warnings

metze
(This used to be commit 93a0fe093b)
2007-10-10 12:15:21 -05:00
Stefan Metzmacher
25e233db57 r19190: merge from samba4:
remove wrong check and statement.
to manipulate rootDSE we use ldb_dn_new() as base and that has 0 elements.

metze
(This used to be commit b81cae4180)
2007-10-10 12:15:21 -05:00
Günther Deschner
046a4756d4 r19189: No display name is normal for some GPOs.
Guenther
(This used to be commit 1ec1c5dd17)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
ca79df9061 r19185: merge comment from samba4
metze
(This used to be commit 256b838201)
2007-10-10 12:15:20 -05:00
Volker Lendecke
cfed7a5a71 r19184: W2k3 returns its name for the GetServerInfo RAP call. Do the same.
Implement 'net rap server name'.

Volker
(This used to be commit 919385ed2a)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
d63a3e05a2 r19183: merge from samba4:
don't crash on invalid utf8 chars

metze
(This used to be commit 71e1f8550f)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
617c39ab5f r19182: merge from samba4:
add ldb_set_create_perms() function to set the create_perms after
ldb_init() and before ldb_connect()

metze
(This used to be commit dd9d469eef)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
6c6842ee94 r19181: merge from samba4:
with "export MAKE_TEST_KEEP_PCAP=yes" make test
doesn't delete the generated pcap files

metze
(This used to be commit 74212c3056)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
354ddf6c57 r19179: remove difference with samba4
metze
(This used to be commit e97e1ffea8)
2007-10-10 12:15:20 -05:00
Stefan Metzmacher
ebc2f440e7 r19177: merge from samba4:
fix the standalone build of socket_wrapper by not using
samba's DLIST_ macros

metze
(This used to be commit bc7b2e8db8)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
e4e3dc064d r19172: merge from samba4:
change the socket wrapper license to
what heimdal uses...

metze
(This used to be commit d19c19ae4b)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
4a83c77c95 r19170: use a very clever trick to pass the binary name to the
gdb_backtrace script, I never noticed that %$(envvar)
exists...

Thanks to Bjoern Jacke for the suggestion!

metze
(This used to be commit 12a37bab3e)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
0e66bafd47 r19169: port the trick to only display the smbd and nmbd log output
of the current test

metze
(This used to be commit f668d4839d)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
e739baf3a1 r19168: use the correct configuration
metze
(This used to be commit bf90ac567f)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
78d21c7785 r19164: merge the gdb_backtrace script from samba4
this more portable and try to make use of ladebug on Tru64,
but that only works when the binary is passed as 2nd arg to gdb_backtrace
as Tru64 doesn't know /proc/${PID}/exe

we need to find a way to pass the progname in 'panic action'
in samba3

metze
(This used to be commit 2f55fd82ff)
2007-10-10 12:15:19 -05:00
Stefan Metzmacher
628fc4b53a r19163: pass always a mem_ctx to functions and a ldb_context where needed
It would be nice if someone can merge that to samba4,
otherwise I'll merge that to samba4 on monday

metze
(This used to be commit 6bc42f31ce)
2007-10-10 12:15:19 -05:00
Günther Deschner
7b84b133fe r19161: Add NET_GETANYDCNAME (getdcname only gives the PDC while getanydcname
gives just any DC), also make sure to set timeouts in rpcclient
accordingly so that we actually get the DC's reply.

Guenther
(This used to be commit 6091c8152a)
2007-10-10 12:15:18 -05:00
Günther Deschner
e0b6961ac5 r19160: Add new WERR codes seen by working with NETLOGON getdcname.
Guenther
(This used to be commit 78b0124a6e)
2007-10-10 12:15:18 -05:00
Jeremy Allison
00056ab431 r19159: The getdc call can take a long time. Allow for timeouts.
Jeremy.
(This used to be commit 99bebb6527)
2007-10-10 12:15:18 -05:00
Jim McDonough
2395cd57f8 r19158: Remove root and nobody users from ldif, from Björn Jacke
(This used to be commit 17880d6cad)
2007-10-10 12:15:18 -05:00
Volker Lendecke
9e69c4fbea r19157: Fix the build
(This used to be commit 3fc328dade)
2007-10-10 12:15:18 -05:00
Volker Lendecke
9d8d4f24b1 r19156: Make enumprinters use the share iterators.
Volker
(This used to be commit 9b1759617c)
2007-10-10 12:15:18 -05:00
Jeremy Allison
80b4e7ae7d r19155: Fix debug message.
Jeremy.
(This used to be commit 42e5481ce4)
2007-10-10 12:15:17 -05:00
Volker Lendecke
e918cf3abf r19154: Trivial logic simplification: Get rid of two indentation levels. Survives the
consistency checks just checked into Samba4.

Volker
(This used to be commit c48bb4b37b)
2007-10-10 12:15:17 -05:00
Volker Lendecke
9315bcd1e3 r19151: Create some dummy printers in the build farm
(This used to be commit c26a20e6d5)
2007-10-10 12:15:16 -05:00
Jeremy Allison
10ada62bed r19148: Finish last nights patch - make offline
work again. Still under test.
Jeremy.
(This used to be commit 40a455db78)
2007-10-10 12:15:16 -05:00
Volker Lendecke
1362fd0b68 r19147: This is WRONG, but the way the VFS works this is the only fix to get rid of
this type-punned warning.

Volker
(This used to be commit d815b1a7e9)
2007-10-10 12:15:16 -05:00
Stefan Metzmacher
b61d1e665e r19145: talloc_reference() can fail!
metze
(This used to be commit e4f2183684)
2007-10-10 12:15:16 -05:00
Günther Deschner
adc299bd08 r19143: getdcname on the NETLOGON pipe returns WERROR, not NTSTATUS.
Guenther
(This used to be commit 44e228ac79)
2007-10-10 12:15:16 -05:00
Stefan Metzmacher
a6e45f0da5 r19137: that looks nicer:-)
metze
(This used to be commit db40552d94)
2007-10-10 12:15:16 -05:00
Stefan Metzmacher
3652a2360f r19135: fix bugs...
- passing mem_ctx as ldb_context is a bad idea!
- naming a static function talloc_ is also bad and misleading

metze
(This used to be commit 0523ad2493)
2007-10-10 12:15:15 -05:00
Volker Lendecke
695c6fbe00 r19133: More C++ warnings -- Merge across?
(This used to be commit c879ed3d1e)
2007-10-10 12:15:15 -05:00
Volker Lendecke
fd1cf23567 r19132: Fix some C++ warnings. Is there interest to have them in Samba4 as well?
I have some problems resolving the last 3 ones in attrib_handlers.c. In line
251 the function ldb_dn_explode_casefold is called with mem_ctx as the first
argument. Looking at ldb_dn_explode_casefold I see that the first argument it
expects is a struct ldb_context. I could certainly add a cast to (struct
ldb_context *) to that call, but I would assume that this is the wrong fix. Is
it possible that attrib_handlers.c:251 and :254 should have ldb and not
mem_ctx as the first argument?

Can anybody from Samba4 clarify this for me and apply the correct fix?

Thanks a lot.

Volker
(This used to be commit 26f2cb71eb)
2007-10-10 12:15:15 -05:00
Stefan Metzmacher
d898cbce90 r19130: fix the logic for the AC_PROG_CC_C99 check
metze
(This used to be commit 21516dc5ac)
2007-10-10 12:15:14 -05:00
Volker Lendecke
2941d46b82 r19127: Fix bug 4152
(This used to be commit 70038e8f7b)
2007-10-10 12:15:14 -05:00
Volker Lendecke
43141d64ca r19126: Fix some uninitialized variable warnings
(This used to be commit 90bfa34610)
2007-10-10 12:15:14 -05:00
Andrew Tridgell
803d33a326 r19125: merge from samba4
(This used to be commit 65e1500ae6)
2007-10-10 12:15:14 -05:00
Stefan Metzmacher
a0a47d8149 r19124: merge from samba4:
pass LDFLAGS from configure to Makefile

metze
(This used to be commit 7ba9fddacb)
2007-10-10 12:15:14 -05:00
Stefan Metzmacher
1b80624c57 r19121: try to get rid of the difference between in system/iconv.h
between samba 3 and 4.

metze
(This used to be commit 04031a9fca)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
a856a88ba4 r19119: try to be more portable...
metze
(This used to be commit 380e647534)
2007-10-10 12:15:13 -05:00
Jeremy Allison
4be3f7665c r19105: Ok - this is currently untested (but I'm testing it at
the moment) but winbindd isn't run in the build farm
so hopefully won't break anything too badly - I don't
want to lose this.

If winbindd starts offline then it falls back to using
MS-RPC backend. On going online it needs to reset the
backend and try and go to using the AD backend code if
possible, as the MS-RPC sequence number fetch just returns
1 as the sequence number if run against an AD DC.

In addition, the winbindd async child may end up
with the AD backend whilst the main winbindd - which
still contacts the DC for some non-async calls, is
left using MS-RPC. This can cause some trouble (as
you can imagine :-).

Attempt to ensure both main winbindd and async children
us AD backends on going online.

Jeremy.
(This used to be commit 5efd4b04b8)
2007-10-10 12:15:13 -05:00
Jeremy Allison
06e36b4e18 r19104: Fix from Björn JACKE <bjoern@j3e.de>
"here's a small fix for gdb_backtrace."
Jeremy.
(This used to be commit a0b4e5d118)
2007-10-10 12:15:13 -05:00
Jeremy Allison
05109131b0 r19103: From "Björn JACKE <bjoern@j3e.DE>":
The attached patch cleans up pam_winbind a tiny bit. Instead of making
exceptions for all pam implementations except for Linux' it's better
to make an exception for the only pam implementation which is
different from all the others. This is equivalent to what pam_smb_auth
does already.
-----------------
Jeremy
(This used to be commit 8e55964708)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
b25c065786 r19102: fix typo, thanks derrell!
metze
(This used to be commit 0a516c3026)
2007-10-10 12:15:13 -05:00
Stefan Metzmacher
0a32e31cbe r19101: add sys_recv() wrapper
metze
(This used to be commit 2f146ec683)
2007-10-10 12:15:12 -05:00
Stefan Metzmacher
4366ca702d r19100: merge from samba4:
export MAKE_TEST_ENABLE_PCAP=yes enables
SOCKET_WRAPPER_PCAP_FILE support
in make test

metze
(This used to be commit 5faf816885)
2007-10-10 12:15:12 -05:00
Stefan Metzmacher
f9449b752f r19099: merge socket wrapper changes from samba4
including SOCKET_WRAPPER_PCAP_FILE support

but I just noticed that samba don't use recv()/send()
on the socket, so the capture only contain connect()/close()

metze
(This used to be commit b894e33023)
2007-10-10 12:15:12 -05:00
Stefan Metzmacher
f6e72ba4a6 r19096: - fix the build with included popt
- and fix some whitespaces

metze
(This used to be commit 4906e60151)
2007-10-10 12:15:12 -05:00
Günther Deschner
04e7e6b457 r19095: Fix some compile warnings.
Guenther
(This used to be commit a0d19e1ebe)
2007-10-10 12:15:12 -05:00
Günther Deschner
a8281b19c7 r19094: Fix debug statement.
Guenther
(This used to be commit e99696c970)
2007-10-10 12:15:11 -05:00
Stefan Metzmacher
63a0d4aa5b r19093: speed up the samba3 build from 8mins to 5mins:-)
we now don't compile mostly each .c file twice.

- we use PICFLAG for all object files
- PICFLAG defaults to PIE_CFLAGS and is then overwritten
  if the system supports shared libraries

as we currently always use -fPIE if available
(and at least on linux -fPIE produces the same code as -fPIC)
it doesn't change anything in the resulting code.

"high performance" binaries can be build with
"--disable-pie --disable-shared" if someone really needs to...

metze
(This used to be commit 6db1f57f45)
2007-10-10 12:15:11 -05:00
Stefan Metzmacher
6bcb2ea271 r19090: - the LIBREPLACE_C99 isn't needed in aclocal.m4
- including the ldb configure tests via aclocal.m4 is wrong

metze
(This used to be commit cd4b1cf0e7)
2007-10-10 12:15:11 -05:00
Stefan Metzmacher
11d219f1a1 r19089: normalize KRB5_LIBS too
metze
(This used to be commit c7788f6c71)
2007-10-10 12:15:11 -05:00
Stefan Metzmacher
4e47aef017 r19088: filter out -Wl,-rpath combinations with /usr/lib too
metze
(This used to be commit 52ffc8b12c)
2007-10-10 12:15:11 -05:00
Stefan Metzmacher
eade80109b r19087: normalize vars before printing them
metze
(This used to be commit 9900abf8ab)
2007-10-10 12:15:10 -05:00
Stefan Metzmacher
4bc71f13c8 r19086: fix --disable-pie together with -C
metze
(This used to be commit 035579b62c)
2007-10-10 12:15:10 -05:00
Stefan Metzmacher
5b77d0a856 r19085: merge from samba4:
- source and destination address handling
- tcp handling

metze
(This used to be commit 98154fd433)
2007-10-10 12:15:10 -05:00
Volker Lendecke
d193fa1a4d r19083: Fix objectclass
(This used to be commit 6c4d68d849)
2007-10-10 12:15:09 -05:00
Volker Lendecke
e28ae1f5fd r19080: Fix a potential NULL dereference
(This used to be commit 682b490c23)
2007-10-10 12:15:09 -05:00
Volker Lendecke
407873df53 r19079: talloc_array can fail
(This used to be commit 7b6738522a)
2007-10-10 12:15:09 -05:00
Volker Lendecke
8f553d8d3c r19078: talloc_strdup can fail
(This used to be commit 2b3b9ce2a1)
2007-10-10 12:15:09 -05:00
Volker Lendecke
f27d5c7838 r19077: Fix an uninitialized variable
(This used to be commit 6bc2cce645)
2007-10-10 12:15:09 -05:00
Volker Lendecke
faaec2f04a r19076: ldb_dn_copy_partial can fail
(This used to be commit c247cf3fba)
2007-10-10 12:15:09 -05:00
Volker Lendecke
38c4955c2a r19075: Fix a potential NULL dereference
(This used to be commit 0ab5d7692c)
2007-10-10 12:15:08 -05:00
Volker Lendecke
638a16900c r19073: mapping_dn can fail
(This used to be commit d234f39c79)
2007-10-10 12:15:08 -05:00
Volker Lendecke
14502053e9 r19072: Fix a potential NULL dereference. Simo/Tridge, not merging yet to 4_0, I'd
like you to comment.

Volker
(This used to be commit ba18c58f1f)
2007-10-10 12:15:08 -05:00
Simo Sorce
a65c6b3914 r19071: Backport to SAMBA_3_0 as well
(This used to be commit df148a5def)
2007-10-10 12:15:08 -05:00
Volker Lendecke
8cd27dc1c3 r19070: If there's an error in the data struct, there's no point to continue with
asn1_pop_tag.

Volker
(This used to be commit d18e9f1da9)
2007-10-10 12:15:07 -05:00
Volker Lendecke
101428b7e5 r19067: Fix a potential NULL dereference
(This used to be commit 6a8937ed03)
2007-10-10 12:15:07 -05:00
Volker Lendecke
7bce558fec r19066: Fix a memleak
(This used to be commit c53e2e5475)
2007-10-10 12:15:07 -05:00
Volker Lendecke
9989649fb4 r19065: No functional change, just a trivial simplification
(This used to be commit 45628f71cf)
2007-10-10 12:15:07 -05:00
Volker Lendecke
58b8f72af6 r19064: This code block is already #ifdef'ed by WITH_ADS which should imply
HAVE_KRB5. If WITH_ADS does not imply KRB5, we have to fix that.

Lets see what the build farm thinks about this.

Volker
(This used to be commit 27b063078d)
2007-10-10 12:15:07 -05:00
Stefan Metzmacher
71f2d744c9 r19062: try to fix the valgrind noise in the build-farm
metze
(This used to be commit 9cb182507c)
2007-10-10 12:15:07 -05:00
Volker Lendecke
a390f72bc1 r19060: Attempt to fix the valgrind suppressions for "fort"
(This used to be commit f8c4578f91)
2007-10-10 12:15:06 -05:00
Jim McDonough
dc1f0804dd r19058: Implement "user cannot change password", and complete "user must change
password at next logon" code.  The "password last set time" of zero now
means "user must change password", because that's how windows seems to
use it.  The "can change" and "must change" times are now calculated
based on the "last set" time and policies.

We use the "can change" field now to indicate that a user cannot change
a password by putting MAX_TIME_T in it (so long as "last set" time isn't
zero).  Based on this, we set the password-can-change bit in the
faked secdesc.
(This used to be commit 21abbeaee9)
2007-10-10 12:15:06 -05:00
Jeremy Allison
b96aae779b r19054: Callers of gencache may not have the rights to
open read/write. Allow them to fallback to read-only.
Jeremy
(This used to be commit ec526e1b88)
2007-10-10 12:15:06 -05:00
Volker Lendecke
8c15a6ff2e r19046: It does not do much yet, but activate RPC-SAMBA3-SPOOLSS
(This used to be commit 3bf313240c)
2007-10-10 12:15:06 -05:00
Volker Lendecke
bc2a760498 r19043: There's no point in #ifdef'ing the detection whether we were offered KRB5 in
SPNEGO, as long as we don't make use of it without krb libs. Makes the code a
bit simpler.

Volker
(This used to be commit 23549e6c08)
2007-10-10 12:15:06 -05:00
Volker Lendecke
4295292734 r19042: Fix the non-krb5 build. This needs sooo severe cleanup ... :-)
Volker
(This used to be commit b601fc42cb)
2007-10-10 12:15:05 -05:00
Volker Lendecke
eb00981fc3 r19041: Make us connect to Vista RC1. Apparently metze had done the same patch some
weeks ago.

We have some work before us, when in AD mode Vista sends
"not_defined_in_RFC4178@please_ignore" as the principal.....

Volker
(This used to be commit af85d8ec02)
2007-10-10 12:15:05 -05:00
Stefan Metzmacher
c25f331cf9 r19040: use more portable shellscripting, hopefully give better results on Tru64
metze
(This used to be commit e8dd73f796)
2007-10-10 12:15:05 -05:00
Günther Deschner
ac080e3184 r19039: Do not segfault in "net ads printer info" when a requested printserver
does not exist.

Guenther
(This used to be commit 359315021d)
2007-10-10 12:15:04 -05:00
Stefan Metzmacher
6b80d173ed r19038: build libreplace testsuite as replacetort
and run it with make test

metze
(This used to be commit 9db9eb199f)
2007-10-10 12:15:04 -05:00
Volker Lendecke
a3a082b248 r19037: Fix a segfault
(This used to be commit 1c18ebe675)
2007-10-10 12:15:04 -05:00
Stefan Metzmacher
7e310277ff r19034: merge from samba4:
prepare libreplace testsuite for usage in smbtorture

metze
(This used to be commit 281677084e)
2007-10-10 12:15:04 -05:00
Stefan Metzmacher
f0244fbffe r19031: merge from samba4:
add test that opendir() on files sets errno = ENOTDIR

metze
(This used to be commit fdad2ce734)
2007-10-10 12:15:03 -05:00
Stefan Metzmacher
a831353be4 r19030: merge missing stuff from samba4:
- strnlen() and strndup() are broken on AIX
- we need some extra CFLAGS on HPUX 11.11

metze
(This used to be commit 61aa60c60f)
2007-10-10 12:15:03 -05:00
Volker Lendecke
7ced2e983d r19028: Implement getprinterinfo level 6 (only the status) and get rid of snum in the
getprinter calls. Survives the RPC-SAMBA3-SPOOLSS test which I will activate
when the Samba4 build farm has picked it up.

Volker
(This used to be commit d7248b6cfa)
2007-10-10 12:15:03 -05:00
Stefan Metzmacher
7f9aca9772 r19026: we don't need this twice
metze
(This used to be commit 5d16aa61c6)
2007-10-10 12:15:03 -05:00
Volker Lendecke
4cc309c3da r19016: As per Samba4 coding standards, turn tabs into spaces
(This used to be commit 3f59c8ef0c)
2007-10-10 12:15:02 -05:00
Stefan Metzmacher
c6b22621be r19015: we don't need talloc_* in proto.h
metze
(This used to be commit 685304e574)
2007-10-10 12:15:02 -05:00
Volker Lendecke
bb5c820542 r19013: Fix some 64-bit warnings.
Jelmer, Jerry, in cmd_unixinfo.c:159 there is still the warning that "info" is
being used uninitialized which I don't really know how to fix.

Any hints?

Volker
(This used to be commit 4a5d11e194)
2007-10-10 12:15:02 -05:00
Volker Lendecke
69287da633 r19012: Fix an uninitialized variable
(This used to be commit 46cae04fbe)
2007-10-10 12:15:01 -05:00
Volker Lendecke
bffbda804d r19011: Attempt to fix the BSD RAW-CHKPATH failures: In Samba3 we rely on opendir
returning ENOTDIR when the file opened is not a directory. Can we merge this
back into Samba4?

Volker
(This used to be commit 448d7c0c4b)
2007-10-10 12:14:57 -05:00
Volker Lendecke
9430017b30 r19010: Fix bug 4137
(This used to be commit 3790d00a78)
2007-10-10 12:14:57 -05:00
Volker Lendecke
2b7d1fc779 r19008: Fix a segfault
(This used to be commit adfc82f0e6)
2007-10-10 12:14:57 -05:00
Gerald Carter
7b7e7dcb8c r19007: reformat service control manager IDL
(This used to be commit d0658139a3)
2007-10-10 12:14:56 -05:00
Gerald Carter
ff8f68840d r19006: Final cleanups for the winreg libmsrpc functions.
Needs thorough testing but the code has been adapted
to the new rpccli_winreg_XX() API.
(This used to be commit c3d1c3ca4d)
2007-10-10 12:14:56 -05:00
Günther Deschner
88a98e35c7 r19003: Finally activate "net ads gpo".
For those who are interested, try

        net ads gpo refresh mybox$

to get your machine related GPOs downloaded to /var/lib/samba/gpo_cache.
Detailed information about GPOs is currently only printed when setting a
higher debuglevel then 0.

Guenther
(This used to be commit d086babf9d)
2007-10-10 12:14:55 -05:00
Günther Deschner
824966fb3c r19002: Add a very simple synchronisation function to download the full GPO.
Guenther
(This used to be commit 02b75ff2a8)
2007-10-10 12:14:55 -05:00
Volker Lendecke
c9cea2d624 r19001: Fix comment
(This used to be commit 048127f9dd)
2007-10-10 12:14:55 -05:00
Volker Lendecke
81014d255e r19000: Merge the max tcon check from 3_0_23. Thanks to James Peach that this was not
done in the 3_0 tree.

Volker
(This used to be commit b2fbf5ac0c)
2007-10-10 12:14:55 -05:00
Stefan Metzmacher
ce11194ce0 r18998: - make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit 8899bc45f9)
2007-10-10 12:14:55 -05:00
Stefan Metzmacher
43be47f56b r18996: merge from samba4:
- fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
(This used to be commit f5b0924f97)
2007-10-10 12:14:54 -05:00
Stefan Metzmacher
da6c811eca r18993: merge from samba4:
prepare SOCKET_WRAPPER_PCAP_FILE support

metze
(This used to be commit 372471cbad)
2007-10-10 12:14:54 -05:00
Volker Lendecke
f9d077cfb3 r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit 00f09d851c)
2007-10-10 12:14:54 -05:00
Günther Deschner
21bdd5833e r18988: Check and refresh expired GPOs.
Guenther
(This used to be commit e0e44bfadb)
2007-10-10 12:14:54 -05:00
Günther Deschner
7a5d2f5c1a r18987: Add some usage prints for "net ads gpo".
Guenther
(This used to be commit 581152f819)
2007-10-10 12:14:54 -05:00
Günther Deschner
3727503872 r18986: Add some more GPO download helper functions.
Guenther
(This used to be commit d2db3b6b46)
2007-10-10 12:14:53 -05:00
Günther Deschner
4db2fc3c89 r18985: Add parse_gpt_ini() to parse GPT.INI files using iniparser.
Guenther
(This used to be commit 46db28de48)
2007-10-10 12:14:53 -05:00
Günther Deschner
7c1ca378ed r18984: Removing ads_gpo_get_sysvol_gpt_version() which was just doing stupid
things.

Guenther
(This used to be commit a597ef83c4)
2007-10-10 12:14:53 -05:00
Günther Deschner
031506eb51 r18983: Add some comments for the LDAP based GPO routines.
Guenther
(This used to be commit 2c21ee684c)
2007-10-10 12:14:53 -05:00
Günther Deschner
73f4ac012a r18982: Move the gpo related functions to "libgpo".
Guenther
(This used to be commit 1308a84271)
2007-10-10 12:14:53 -05:00
Gerald Carter
18d4176633 r18981: * cleanup some vestiges of old cli_reg.c code and mark some TODO
items in cac_winreg.c
* Get 'net rpc registry enumerate' to list values again
* Fix winreg.idl QueryInfoKey().  The max_subkeysize is the
  max_classlen (we previously had this correct in Samba3")
* fix valgrind error about uninitialized memory and use-before-set
  on size value inmemset() call
* Fix key enumeration in 'net rpc registry enumerate'
* regenerate gen_dir files based on local pidl patches

Please note that the generated ndr files are from my local
copy of pidl.  If you need to regenerate, please apply the
patch that I posted to the samba-technical list earlier today.
(This used to be commit 5d843612a1)
2007-10-10 12:14:53 -05:00
Jeremy Allison
0f56237bc0 r18980: Be a little more intelligent about "startup_time",
move into the domain struct. Allow message to go online
to set this state and cope with removing it.
Jeremy.
(This used to be commit 51f0e60cc3)
2007-10-10 12:14:52 -05:00
Stefan Metzmacher
e07df9be38 r18976: follow the advice from "William Jojo" <jojowil@hvcc.edu>
and pass -bbigtoc also to the linker when building shared libs

metze
(This used to be commit 4948b676a8)
2007-10-10 12:14:52 -05:00
Stefan Metzmacher
8f4f93a201 r18973: we should always set LDFLAGS and DYNEXP depending on the host_os
but disable building of shared libs and modules whe enable_shared != yes

Also make it easier to track down the problem with lost LDFLAGS values
on AIX.

metze
(This used to be commit 3367e306e6)
2007-10-10 12:14:52 -05:00
Günther Deschner
b80cbfc20e r18969: Fix typo.
Guenther
(This used to be commit 31f21282cd)
2007-10-10 12:14:52 -05:00
Andrew Tridgell
b6b9898a07 r18966: this bug affects Samba3 too. I'm actually surprised nobody has
reported that Samba3 on Solaris Sparc with the native compiler can't
join Windows domains. If it worked we were just lucky. I suspect it
just didn't work.
(This used to be commit 9df1e7d989)
2007-10-10 12:14:52 -05:00
Gerald Carter
95e4091596 r18964: fix 'net rpc registry save' to use the new wnireg client code
(This used to be commit f2747daafc)
2007-10-10 12:14:52 -05:00
Gerald Carter
2326b147d0 r18963: * Move parts of registry headers that were still in
use to reg_objects.h
* Remove unused rpc headers
(This used to be commit 4f79d8c83d)
2007-10-10 12:14:51 -05:00
Gerald Carter
b3ec4697ef r18962: * Add IDL for SaveKey() and RestoreKey() and regenerated
* Tested RegSaveKey() using win32 app.  Apparently
  this code has been brokne for a really long time.
(This used to be commit 5381dcbde3)
2007-10-10 12:14:51 -05:00
Stefan Metzmacher
3ae0baefa1 r18961: merge from samba4:
fix caching of some configure tests AC_CACHE_CHECK()
*needs* '_cv_' in the shell var to do caching...

metze
(This used to be commit c460f28b68)
2007-10-10 12:14:51 -05:00
Gerald Carter
94c9d52872 r18959: reformat using indent
(This used to be commit 69c298f85d)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
6aed2cd44e r18958: merge from samba4:
we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl

metze
(This used to be commit d827534760)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
3da1690692 r18956: fix -pie and -fPIE together with configure -C
metze
(This used to be commit aafb86f6eb)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
d18ec9fac8 r18955: fix the build on solaris where unistd.h needs to be includes before
socket_wrapper defined ioctl swrap_ioctl

metze
(This used to be commit e43d1f6c17)
2007-10-10 12:14:50 -05:00
Gerald Carter
2279881bd4 r18954: Fix segv in QueryValue and Enumvalue. regedit.exe now
is happy again when creating keys and values
(This used to be commit 6e9e9f8fac)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
cb99b612f8 r18953: sync socket_wrapper with samba4
metze
(This used to be commit 77b0af43f0)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
cf5ab86a65 r18952: fix compiler warning (merge from samba4)
metze
(This used to be commit 4cd59d47c8)
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
dc030ce813 r18951: socket_wrapper has only 16 interfaces anymore...
metze
(This used to be commit a1966a9c07)
2007-10-10 12:14:49 -05:00
Stefan Metzmacher
93dc24eed9 r18950: I can't see where stropts.h and poll.h are needed
(I just removed the only reference to poll() in my last commit)

they were added in this commit, without make usage of them.

http://cvs.samba.org/cgi-bin/cvsweb/samba/source/configure.in.diff?r1=1.21&r2=1.22&f=h
http://cvs.samba.org/cgi-bin/cvsweb/samba/source/include/includes.h.diff?r1=1.105&r2=1.106&f=h

metze
(This used to be commit b852cf46c2)
2007-10-10 12:14:49 -05:00
Stefan Metzmacher
1888bb4fd9 r18949: use sys_usleep()
metze
(This used to be commit f994494141)
2007-10-10 12:14:49 -05:00
Günther Deschner
296b450f16 r18941: Minor cleanup in ads_parse_gpo().
Guenther
(This used to be commit 7579a91f81)
2007-10-10 12:14:49 -05:00
Gerald Carter
d89a951517 r18940: Fix a few memory corruption bugs to make CreateKey() and DeleteKey() work
(This used to be commit e7e3e35c1d)
2007-10-10 12:14:49 -05:00
Andrew Tridgell
0cc2cee8d5 r18939: don't rely on the umask being right in ldb creation. Both Samba3 and
Samba4 smbd force the umask to 0, which meant we ended up with ldb
being world writable.

This isn't really an ideal fix, as it means ldb no longer honors umask
(as it should do, like all good libraries).

Unfortunately the 'proper' fix is too complex for now

this also merges a tiny code style fix from s4 to s3
(This used to be commit dd8ec8725f)
2007-10-10 12:14:49 -05:00
Andrew Tridgell
afbc8a1faa r18938: fixed a group map bug reported by Jerry. The caller in mapping.c
relies on appending to this list. Unfortunately this can't be tested
using 'net groupmap'
(This used to be commit a8d398edf0)
2007-10-10 12:14:48 -05:00
Gerald Carter
6a492e7122 r18937: Protect against segc in the idmap winbindd child process
(the domain is NULL here)
(This used to be commit a36de910d2)
2007-10-10 12:14:48 -05:00
Günther Deschner
efffbc9036 r18935: Make "netshareenum" work again. There is most probably a better way to
do this... Any pointers?

Guenther
(This used to be commit 1f09e54fec)
2007-10-10 12:14:48 -05:00
Gerald Carter
c67b555874 r18934: fix a segv in CreateKey()
(This used to be commit 92f22f67ed)
2007-10-10 12:14:48 -05:00
Gerald Carter
855d12e567 r18932: In RegEnumvalue() and RegQueryValue(), the output buffer
size must match the real value of the data.
(This used to be commit e11108024a)
2007-10-10 12:14:48 -05:00
Gerald Carter
49c73b5734 r18931: * Fix the IDL for QueryInfoKey. teh Classname in an
in,out ref pointer
* Clarify variable names in EnumValue IDL
* Fix server code for _winreg_EnumValue() and _winreg_QueryInfoKe()
(This used to be commit f520a9d0fb)
2007-10-10 12:14:48 -05:00
Gerald Carter
5935ea9da1 r18929: * Clarify QueryValue IDL and regenerate code
* Fix server _winreg_Query_Value() implementation so that
  usrmgr.exe starts now
(This used to be commit 435d7bfc37)
2007-10-10 12:14:47 -05:00
Günther Deschner
16fecf7875 r18928: Some more const for iniparser.
Guenther
(This used to be commit ac3de529b3)
2007-10-10 12:14:47 -05:00
Gerald Carter
b0e29c79e7 r18927: Fix build. *please* compile the code at least once before checking it in.
(This used to be commit 4e464a2c35)
2007-10-10 12:14:47 -05:00
Günther Deschner
9d931a8421 r18926: Add some useful macros.
Guenther
(This used to be commit 9be5cb27e4)
2007-10-10 12:14:47 -05:00
Günther Deschner
f1c2398723 r18924: Minor cleanup.
Guenther
(This used to be commit 143a48927b)
2007-10-10 12:14:47 -05:00
Günther Deschner
f7633eca18 r18923: Fix more memleaks.
Guenther
(This used to be commit ecb632a153)
2007-10-10 12:14:47 -05:00
Günther Deschner
bf6962b5e8 r18922: Apply some const.
Guenther
(This used to be commit d87994788b)
2007-10-10 12:14:47 -05:00
Günther Deschner
bd2f02e696 r18921: Fix some c++ warnings.
Guenther
(This used to be commit b1bc7fd347)
2007-10-10 12:14:46 -05:00
Stefan Metzmacher
52d45a51d3 r18920: merge socket_wrapper changes from samba4
metze
(This used to be commit b36d47c698)
2007-10-10 12:14:46 -05:00
Gerald Carter
bbaa0b178d r18919: * Get the new rpccli_winreg_XXXX() functions into the tree
There some broken functionality here that I'm still working on.
* remove unneeded parsing routines
(This used to be commit cbfe1a4b49)
2007-10-10 12:14:46 -05:00
Andrew Tridgell
cda3a18f23 r18912: we don't need the special case for comments now in the
This also fixes comments in group mappings, as the code accidentially
put in "ntName" in the comment field :-)
(This used to be commit 7f1f5d6056)
2007-10-10 12:14:46 -05:00
Andrew Tridgell
45c0a4874b r18910: Change ldb_msg_add_string() to not actually add an attribute if the
string is zero length. This allows callers to not have to worry about
creating an invalid ldap attribute.

See extensive discussion on samba-technical list :-)
(This used to be commit 9e66df05a4)
2007-10-10 12:14:45 -05:00
Jeremy Allison
28800c54dc r18907: W00t. My original fix was correct after all :-).
Re-checking it in.
Fix bug #4095 - username composed into domain\user
twice in spnego path.
Jeremy.
(This used to be commit 0c77046751)
2007-10-10 12:14:45 -05:00
Gerald Carter
2a04cff7a9 r18906: Fix 'make clean' to deal with new lib/ldb/ directory structure.
(This used to be commit 9b43d7c63a)
2007-10-10 12:14:45 -05:00
Gerald Carter
1254bdc86d r18905: I'm not really proud of this but I don't want to maintain
2 separate CPPFLAGS variables.  So just cleanup the SAMBA_CPPFLAGS
for out of tree builds.  This has been tested locally and works.
Maybe metze can find a better way tomorrow.
(This used to be commit 8aa681df99)
2007-10-10 12:14:45 -05:00
Gerald Carter
e2a5072b96 r18904: * Revert previous fix for building out of tree and
add a better one which fixes the network interface detection
  breakage (caused by the previous commit).
(This used to be commit 7e908acdef)
2007-10-10 12:14:45 -05:00
Günther Deschner
dd992469dd r18902: Also dump mS-DS-CreatorSID.
Guenther
(This used to be commit e7cae9bbae)
2007-10-10 12:14:44 -05:00
Stefan Metzmacher
ed724f9047 r18901: try to fix the samba3 build without having ldap
vl: you were a few seconds faster than me...:-)

metze
(This used to be commit 63e5727471)
2007-10-10 12:14:44 -05:00
Volker Lendecke
b70ee55a7c r18900: Next attempt to fix the Solaris build. Not sure about whether to merge this
one. Tridge? Metze?

Volker
(This used to be commit d0eef2f6e8)
2007-10-10 12:14:44 -05:00
Gerald Carter
22a21fdf04 r18899: remove check for root when running configure since it does not appear to be used anymore
(This used to be commit da17fb41db)
2007-10-10 12:14:44 -05:00
Jeremy Allison
fec9850644 r18898: Fix for bug #4100 from Udo Eberhardt <udo.eberhardt@thesycon.de>.
Ensure we initialize values for smb_io_notify_info_data_strings to
fix crash.
Jeremy.
(This used to be commit ceefb8dd3c)
2007-10-10 12:14:44 -05:00
Jeremy Allison
f1964048a5 r18897: Fix valgrind bug found by Volker.
Jeremy.
(This used to be commit db458d3e8b)
2007-10-10 12:14:43 -05:00
Gerald Carter
2cb15a9516 r18896: * Fix out of tree builds after libreplace merge
* Remove unused -D define in Makefile
(This used to be commit 3c9632bedc)
2007-10-10 12:14:43 -05:00
Stefan Metzmacher
75064ae95e r18895: AIX need to call pidl with --uint-enums as the compiler doesn't
like negative values in the generated code.

I'm not sure how we can solve that in samba3 as the generated code is commited

Maybe we need to alsways pass --uint-enums

metze
(This used to be commit 9468dcc5d5)
2007-10-10 12:14:43 -05:00
Volker Lendecke
868daf42b2 r18893: Attempt to fix the Solaris build
(This used to be commit db838f49a0)
2007-10-10 12:14:43 -05:00
Volker Lendecke
22a23881c7 r18892: Copy over the Samba4 valgrind suppressions
(This used to be commit 6d7e3f3983)
2007-10-10 12:14:42 -05:00
Volker Lendecke
147fc86a94 r18891: Fix "double const" warning from host opi
(This used to be commit 47c19811ae)
2007-10-10 12:14:42 -05:00
Volker Lendecke
ba68916c9a r18889: Add some const. What's the policy here? Should I do this in Samba4 as well?
Volker
(This used to be commit fd020a1998)
2007-10-10 12:14:41 -05:00
Volker Lendecke
10a8d62e96 r18888: Fix a 64-bit warning
(This used to be commit 94b53f2f2a)
2007-10-10 12:14:41 -05:00
Volker Lendecke
170ee35a66 r18886: First, RPC_SRVSVC is called RPC-SRVSVC and second, we're so far off on that
one that there's no point yet to run this in the build farm.

Volker
(This used to be commit bbd9f0bb6f)
2007-10-10 12:14:41 -05:00
Günther Deschner
82bf0da9d3 r18879: Fix crash for "net ads gpo list".
Guenther
(This used to be commit 7df5808d8b)
2007-10-10 12:14:41 -05:00
Volker Lendecke
611b5d29fc r18878: With the recent checkins for me Samba3 compiles again with the NTSTATUS/WERROR
checks enabled. I'll look at the build farm in a couple of hours and fix it if
not.

Volker
(This used to be commit 58583aa943)
2007-10-10 12:14:41 -05:00
Volker Lendecke
e1fa2ea721 r18877: More WERROR/NTSTATUS bugs
(This used to be commit 88a928a233)
2007-10-10 12:14:40 -05:00
Volker Lendecke
2c94123e86 r18876: Fix smbclient -L
(This used to be commit a03fb81a9d)
2007-10-10 12:14:40 -05:00
Volker Lendecke
6f3c6a46f9 r18875: The comment field can be empty
(This used to be commit 6d5d7bf4bb)
2007-10-10 12:14:40 -05:00
Volker Lendecke
323b724ce9 r18874: Fix some NTSTATUS/WERROR mixups
(This used to be commit ecac9b5959)
2007-10-10 12:14:40 -05:00
Günther Deschner
35b1d063e1 r18871: Fix copy/paste mixup.
Guenther
(This used to be commit 2a605a0b17)
2007-10-10 12:14:40 -05:00
Andrew Tridgell
7c5f1f28db r18870: - enable the ldb ldap backend properly based on configure tests for
ldap

- use ldb_global_init() instead of the backend specific
  ldb_tdb_init().
(This used to be commit a6c53e5861)
2007-10-10 12:14:40 -05:00
Andrew Tridgell
78f2900a16 r18869: two build fixes for systems without ldap
the first is to not enable the ldap ldb backend just yet. This will
need configure tests to conditionally include. We should be able to
use the m4 files from lib/ldb/

The 2nd is to fix libads/gpo.o not to publicly prototype a function
that needs ldap.h
(This used to be commit 1cf17edc14)
2007-10-10 12:14:39 -05:00
Andrew Tridgell
3cf367f0e7 r18868: just in case there is a disaster (with our code? never ...) use a
rename to group_mapping.tdb.upgraded rather than an unlink when
upgrading. So if we absolutely have to go back to the tdb, we can
change mapping_ldb.o to mapping_tdb.o in Makefile.in and recover
peoples group mappings.

We could go one step futher and make the backend configurable. Any
opinions on that?
(This used to be commit 203fc0b03c)
2007-10-10 12:14:39 -05:00
Andrew Tridgell
8761f5dcc4 r18867: change the group mapping code to use ldb instead of tdb
See the discussion of this on the samba-technical list
(This used to be commit 4ad1436cea)
2007-10-10 12:14:39 -05:00
Andrew Tridgell
3e2c696e45 r18866: Jeremy and Volker have given the go-ahead on the group mapping ldb
code. Yay!

This first commit copies lib/ldb/ from Samba4. A huge congratulations
should go to Simo on this - he has put an enormous amount of work into
ldb, and it's great to see it go into the Samba3 tree.
(This used to be commit bbedf2e343)
2007-10-10 12:14:36 -05:00
Andrew Tridgell
0c3194816b r18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. It
still doesn't compile with immediate structures and the
NTSTATUS/WERROR separation, as there are still several places where
the two error types are mixed up. I haven't fixed those as they
require decisions about the rpcclient code that I really don't want to
get into (the error handling there is a mess)

So samba3 compiles now, but only becaise HAVE_IMMEDIATE_STRUCTURES is
not used (look for HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
(This used to be commit 8438a6a7d4)
2007-10-10 12:01:06 -05:00
Andrew Tridgell
64d4ff5dcc r18864: merge lib/replace changes from samba4
(This used to be commit 6d5f507136)
2007-10-10 12:01:06 -05:00
Andrew Tridgell
af4f43db8d r18863: the test for immediate structures has moved to lib/replace/
(This used to be commit 46d8433a4f)
2007-10-10 12:01:06 -05:00
Andrew Tridgell
96f2a97e01 r18858: arrgh! - since HAVE_IMMEDIATE_STRUCTURES were last enabled the code
can no longer handle it (at least with gcc 4.1.2). Disable it until
investigated and fixed properly.
(This used to be commit c8670b33b4)
2007-10-10 12:01:06 -05:00
Volker Lendecke
cf3efb2f08 r18857: Re-enable the CC checks from libreplace after Tridge's fix. Thanks for that!
Volker
(This used to be commit 91955c1f26)
2007-10-10 12:01:05 -05:00
Andrew Tridgell
fcd7a45e44 r18856: fixed HAVE_IMMEDIATE_STRUCTURES and thus checking of NTSTATUS/BOOL
mixups
(This used to be commit 21a458ab9d)
2007-10-10 12:01:05 -05:00
Volker Lendecke
fe5123c2ec r18855: Tell the diff between WERROR and NTSTATUS
Volker
(This used to be commit 5cc4117692)
2007-10-10 12:01:05 -05:00
Volker Lendecke
1b8125265c r18854: Disable the AC_LIBREPLACE_CC_CHECKS, this breaks the HAVE_IMMEDIATE_STRUCTURES
test with gcc 4.1.0. As the build farm is not in the best state right now,
this should not matter.

Stefan, is there any chance we get the IMMEDIATE_STRUCTURES back and have
libreplace at the same time?

Volker
(This used to be commit 776bd5e36d)
2007-10-10 12:01:04 -05:00
Günther Deschner
846aa881cd r18853: Fix remaining warnings. Volker, should be fine now.
Guenther
(This used to be commit 40a6169ace)
2007-10-10 12:01:04 -05:00
Günther Deschner
848d934281 r18852: Fix compiler warning (thanks Volker).
Guenther
(This used to be commit 01a8562fe1)
2007-10-10 12:01:04 -05:00
Jeremy Allison
b9b964a360 r18846: Fix the same bug Volker noticed when marshalling/unmarshalling
SEC_ACE. "type" is also an enum that may be any size. Treat as
a uint8.
Jeremy.
(This used to be commit fd97f48ba3)
2007-10-10 12:01:04 -05:00
Volker Lendecke
35a8521501 r18845: Fix a type-punned warning that turned out to be a real bug: The secdesc
revision is now an enum that might be represented as anything, in particular
as an int. It's definitely not a uint16 :-)

Volker
(This used to be commit 7c5d66c971)
2007-10-10 12:01:04 -05:00
Günther Deschner
61761288e9 r18842: Protect against "winbind cache time = 0" on two other occasions.
Guenther
(This used to be commit b1cd9d45e9)
2007-10-10 12:01:04 -05:00
Günther Deschner
ee139b6f12 r18841: Protect against potential event loop when someone is using "winbind
cache time = 0".

Guenther
(This used to be commit 9ac6016e32)
2007-10-10 12:01:04 -05:00
Jelmer Vernooij
387bfebfcf r18823: Fix some errors in the srsvc handling code and start running the RPC-SRVSVC
test against samba3.
(This used to be commit f0508ecb44)
2007-10-10 12:01:03 -05:00
Günther Deschner
7fdd258c39 r18820: Comment out some unused functions.
Guenther
(This used to be commit cdc81927db)
2007-10-10 12:01:03 -05:00
Günther Deschner
a6bb76765a r18819: Fix build without LDAP.
Guenther
(This used to be commit a0aedee1c9)
2007-10-10 12:01:03 -05:00
Günther Deschner
ed5f7cce2a r18818: Forgot header file.
Guenther
(This used to be commit 9da91022f9)
2007-10-10 12:01:03 -05:00
Günther Deschner
0d12a35e6b r18817: Enable the build of the gpo tool but do not make it available yet.
Guenther
(This used to be commit 927cda5d31)
2007-10-10 12:01:03 -05:00
Günther Deschner
314d563b12 r18816: Fix some build warnings.
Guenther
(This used to be commit b70ed9e483)
2007-10-10 12:01:03 -05:00
Stefan Metzmacher
0d6c51dac6 r18814: diable immediate structs for now until we completely build with them again
metze
(This used to be commit 5b8eb441a3)
2007-10-10 12:01:03 -05:00
Stefan Metzmacher
e8b442c964 r18813: the generated rpccli_ functions give NTSTATUS
metze
(This used to be commit 4a198cebe3)
2007-10-10 12:01:02 -05:00
Stefan Metzmacher
ca19511584 r18812: newer compilers don't allow non consts in static arrays
give us a chance to detect NTSTATUS vs. WERROR bugs...

metze
(This used to be commit 27181b675e)
2007-10-10 12:01:02 -05:00
Gerald Carter
0705d64035 r18811: rename stat field to avoid compiler warnings about
shadowed variables
(This used to be commit cc5f31c081)
2007-10-10 12:01:02 -05:00
Stefan Metzmacher
21931b1ca8 r18810: use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze
(This used to be commit d49ffbc19b)
2007-10-10 12:01:02 -05:00
Stefan Metzmacher
200d238302 r18809: add a valgrind suppression file to prepare running make test
under valgrind in the buildfarm

metze
(This used to be commit 646cf0ae8c)
2007-10-10 12:01:00 -05:00
Stefan Metzmacher
7239a85f0a r18804: resume_hnd isn't a ref pointer and can be NULL
metze
(This used to be commit 8736262342)
2007-10-10 12:00:59 -05:00
Gerald Carter
d56c3dfdaa r18803: remove unused function
(This used to be commit 964d95bce6)
2007-10-10 12:00:59 -05:00
Jelmer Vernooij
7ba2554d88 r18802: Use the pidl-generated code for the srvsvc interface, both client and server code.
This has had some basic testing. I'll do more during the next couple of days and hopefully also
make RPC-SRVSVC from Samba4 pass against it.
(This used to be commit ef10672399)
2007-10-10 12:00:59 -05:00
Günther Deschner
8ffe6c8a8d r18801: Fix (at least the build of) python bindings.
Guenther
(This used to be commit fc6543ca78)
2007-10-10 12:00:59 -05:00
Günther Deschner
1b7b6e54db r18799: Prepare query_disp_info to use the next idx from the last result entry
for the enumeration loop (following msdn docs of that call).

Guenther
(This used to be commit 138a921f82)
2007-10-10 12:00:59 -05:00
Stefan Metzmacher
a734e98b51 r18798: use libreplace headers in pam and nss modules
this hopefully fixes the build on AIX

metze
(This used to be commit ef1001f5a2)
2007-10-10 12:00:59 -05:00
Stefan Metzmacher
927e5876ad r18797: fix the loading of pam_winbind.so and libnss_winbind.so
when building with socket wrapper

metze
(This used to be commit 6ad6aba102)
2007-10-10 12:00:58 -05:00
Jeremy Allison
3645d6f1b2 r18796: Fix the build. Sorry.
Jeremy.
(This used to be commit 8b9e5f28c2)
2007-10-10 12:00:58 -05:00
Gerald Carter
1303cd8245 r18794: Make ENumKey() work again in the registry server
(This used to be commit 7ead5ac792)
2007-10-10 12:00:58 -05:00
Jeremy Allison
3a60a67432 r18793: Fix BE string handling in the auto-generated
code. Should now work again with ASU.
Jeremy.
(This used to be commit 53e97bf928)
2007-10-10 12:00:58 -05:00
Gerald Carter
c8ef27a3c3 r18792: small fix for server QueryValue code
(This used to be commit b11558c232)
2007-10-10 12:00:58 -05:00
Gerald Carter
82f12507a4 r18791: print the error string and not the raw value
(This used to be commit 2363954637)
2007-10-10 12:00:58 -05:00
Gerald Carter
8e0217da6f r18790: Correct the IDL (still a bug in pidl) for QueryValue()
(This used to be commit 44851d7afa)
2007-10-10 12:00:58 -05:00
Gerald Carter
eab57a0a0f r18789: Replace the winreg server code with the libndr parsing code.
Many things work (OpenHKLM, etc...) but some still don't.
This shouldn't block anyone so I'm checking it in.
Will probably move to a bzr tree after this for
longer dev cycles between checkins.
(This used to be commit cf1404a0d7)
2007-10-10 12:00:57 -05:00
Gerald Carter
20b9cd5354 r18788: updating the IDL for QueryValue
(This used to be commit 83dec55782)
2007-10-10 12:00:57 -05:00
Jeremy Allison
f18c9365ca r18787: Fix the strlen_m and strlen_m_term code by merging
in (and using elsewhere) next_codepoint from Samba4.
Jerry please test.
Jeremy.
(This used to be commit ece00b70a4)
2007-10-10 12:00:57 -05:00
Volker Lendecke
b3d18b12c2 r18785: Check in Peter Somogyis build fix
(This used to be commit 31c1be9056)
2007-10-10 12:00:57 -05:00
Stefan Metzmacher
beecb90440 r18784: hopefully fix the BOOL bug on AIX
metze
(This used to be commit 454d9590de)
2007-10-10 12:00:57 -05:00
Jelmer Vernooij
1260972ec9 r18778: Fix comparison.
(This used to be commit 0a198e6096)
2007-10-10 12:00:56 -05:00
Volker Lendecke
c209219d06 r18773: Change negprot_spnego to return a blob
(This used to be commit 28fa772721)
2007-10-10 12:00:56 -05:00
Volker Lendecke
3bddf16b1f r18772: Now that we don't have a one-byte keylength in the extended security case
anymore, we don't have to truncate the length to 255 anymore.

The test I did for this: I sent 50 times the NTLMSSP oid. With truncating
Vista said Access Denied, without truncating it liked the response.

Volker
(This used to be commit f1512cb43c)
2007-10-10 12:00:56 -05:00
Volker Lendecke
a4a2d795b1 r18771: Sequel to r18761: If we always set the keylen to 0 there's no point in passing
a pointer down to negprot_spnego().

Volker
(This used to be commit 18f47130b1)
2007-10-10 12:00:55 -05:00
Volker Lendecke
8f7643bd83 r18761: Even if only offering NTLMSSP Windows (tested with Vista & XP) sends 0 as the
key length in the case of extended security. It does make sense because with
SPNEGO our beloved ASN1 structure gives us the length.

Next test I did to verify this: I modified the server to put in random
garbage, and W2kwks, XP, Vista and W2k3srv still talked to us.

Volker
(This used to be commit f19bd479ce)
2007-10-10 12:00:55 -05:00
Volker Lendecke
45ca718d19 r18760: Fix typos, remove unneeded code
(This used to be commit 56ccfe98b2)
2007-10-10 12:00:55 -05:00
Jim McDonough
0f961cb6db r18758: Update net sam to use calculated times and force change password properly.
(This used to be commit fb269ca0af)
2007-10-10 12:00:55 -05:00
Gerald Carter
045567f2be r18756: cleanup copyrights after moving to new wkssvc implementation code
(This used to be commit 18b24e0fe9)
2007-10-10 12:00:55 -05:00
Gerald Carter
394c0e90c6 r18755: remove accidental commit
(This used to be commit 2e7e8c09e4)
2007-10-10 12:00:54 -05:00
Jim McDonough
f002bb2a46 r18754: Get rid of some more invalid time sets
(This used to be commit 3840d3785f)
2007-10-10 12:00:54 -05:00
Jim McDonough
d75003bf6e r18748: Eliminate set of computed time values
(This used to be commit c53d4a8151)
2007-10-10 12:00:54 -05:00
Gerald Carter
05ba38f754 r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()
(This used to be commit 50d74ce048)
2007-10-10 12:00:54 -05:00
Jelmer Vernooij
4db7642caa r18745: Use the Samba4 data structures for security descriptors and security descriptor
buffers.

Make security access masks simply a uint32 rather than a structure
with a uint32 in it.
(This used to be commit b41c52b9db)
2007-10-10 12:00:54 -05:00
Jelmer Vernooij
3ef4b8cf2f r18744: Disable some tests that only work when RUN_FROM_BUILD_FARM is set.
(This used to be commit 72b51c8891)
2007-10-10 12:00:53 -05:00
Stefan Metzmacher
12a5226534 r18742: this function returns WERROR
gix the build on RedHat 7.0

metze
(This used to be commit d6f5a0cc7a)
2007-10-10 12:00:53 -05:00
Gerald Carter
b7d069097b r18739: * Get the wkssvc patch right this time.
* Remove the old wkssvc server, client, & parsing code.
* Update srv_wkssvc_nt.c with stubs for the remaining
  stubs
(This used to be commit 0cb79ee13f)
2007-10-10 12:00:53 -05:00
Günther Deschner
5cadb91622 r18732: Fix build warning as pointed out by Volker.
Guenther
(This used to be commit fccaff3713)
2007-10-10 12:00:53 -05:00
Stefan Metzmacher
ce95caf0df r18731: fix the build on aix
metze
(This used to be commit ff88592426)
2007-10-10 12:00:53 -05:00
Gerald Carter
01c684a3e9 r18730: readd missing files (one more)
(This used to be commit 8e0b801c8b)
2007-10-10 12:00:53 -05:00
Gerald Carter
8711b490e2 r18729: readd missing files
(This used to be commit a2d61ca85c)
2007-10-10 12:00:53 -05:00
Gerald Carter
8126f91375 r18728: revert previous commit until I fix the wkssvc_nt.c changes
(This used to be commit 57d8519185)
2007-10-10 12:00:52 -05:00
Gerald Carter
8a1439b10d r18727: set the winreg_AbortSystemShutdown() server * to NULL rather than a dummy placeholder
(This used to be commit 92903ab926)
2007-10-10 12:00:52 -05:00
Gerald Carter
9dda6cdf4c r18725: Replace out one wkssvc call (wkssrv_GetInfo()) with autogenerated
code.  Removed first rpc_parse/*.c file.  w00t!
(This used to be commit bb9b7a058d)
2007-10-10 12:00:52 -05:00
Jim McDonough
77a7066d79 r18724: Fixup time(0) -> time(NULL)
(This used to be commit 6b17af0769)
2007-10-10 12:00:52 -05:00
Jim McDonough
e04dda6a2a r18722: Fix up password change times. The can change and must change times are
calculated based on the last change time, policies, and acb flags.

Next step will be to not bother storing them.  Right now I'm just trying to
get them reported correctly.
(This used to be commit fd5761c9e5)
2007-10-10 12:00:52 -05:00
Jeremy Allison
eb6e31afed r18719: Compile fix from Peter Somogyi.
Jeremy.
(This used to be commit 867eeaafce)
2007-10-10 12:00:52 -05:00
Gerald Carter
a1c53e50de r18718: Change a few out parameter to ref pointers and regenerate
(This used to be commit 91a48e9baa)
2007-10-10 12:00:52 -05:00
Gerald Carter
ed7f4ad60e r18717: remove old defines in preference of the flags in librpc/gen_ndr/srvsvc.h
(This used to be commit 080c51dd80)
2007-10-10 12:00:51 -05:00
Gerald Carter
970d33c65a r18714: fix the build after replaceing rpccli_reg_abort_shutdown()
(This used to be commit 403b0cf1ec)
2007-10-10 12:00:51 -05:00
Jelmer Vernooij
66c089acaa r18713: Autogenerate srvsvc and svcctl interfaces
(This used to be commit a8aa312b7e)
2007-10-10 12:00:51 -05:00
Gerald Carter
42c5b3b27b r18712: Forgot to remove cmd_reg.o from Makefile
(This used to be commit 9030c46e33)
2007-10-10 12:00:51 -05:00
Gerald Carter
a6ddf9bf5d r18711: Replace the following hand code client routines:
* rpccli_reg_abort_shutdown()
* rpccli_reg_flush_key()
Remove the cmd_reg.c from rpcclient since the entire file
was unused
(This used to be commit c4788f0c13)
2007-10-10 12:00:51 -05:00
Günther Deschner
c4046b0e88 r18710: Prevent that our offline cache can get outdated after a password change.
Guenther
(This used to be commit 8006cf962b)
2007-10-10 12:00:50 -05:00
Stefan Metzmacher
2fb8589862 r18709: add some useful function from samba4
metze
(This used to be commit f7a93b6acb)
2007-10-10 12:00:49 -05:00
Günther Deschner
a62f996c5a r18707: Fix the build when you have libnscd installed (which apparently no host
on the buildfarm has).

Guenther
(This used to be commit b0bb364df0)
2007-10-10 12:00:49 -05:00
Stefan Metzmacher
f21e9f5780 r18705: not all compilers like this
metze
(This used to be commit 2ec4bc0f52)
2007-10-10 12:00:49 -05:00
Günther Deschner
a3e1f7e44d r18703: Fix the annoying effect that happens when nscd is running:
We usually do not get the results from user/group script modifications
immediately. A lot of users do add nscd restart/refresh commands into
their scripts to workaround that while we could flush the nscd caches
directly using libnscd.

Guenther
(This used to be commit 7db6ce295a)
2007-10-10 12:00:49 -05:00
Jim McDonough
47bb2e1839 r18702: re-enable non-decimal specification of rid
(This used to be commit f3ff074046)
2007-10-10 12:00:49 -05:00
Stefan Metzmacher
447905db7d r18701: this tests are in libreplace
metze
(This used to be commit 31e3cc8c6f)
2007-10-10 12:00:49 -05:00
Stefan Metzmacher
e108e78263 r18700: nicer order of the tests
metze
(This used to be commit 07dafa266a)
2007-10-10 12:00:48 -05:00
Stefan Metzmacher
f490794c51 r18699: bail out if the compiler doesn't know about C99 struct initializers
as we currently have them in the samba3 tree.

Lets see what the build-farm says to this.

metze
(This used to be commit 12a0daa34d)
2007-10-10 12:00:48 -05:00
Stefan Metzmacher
a1243ca999 r18698: this stuff isn't needed anymore
metze
(This used to be commit 31b83ff4bd)
2007-10-10 12:00:48 -05:00
Jelmer Vernooij
7cf3a10756 r18695: Zero initialize ref ptrs as well.
(This used to be commit 3295122173)
2007-10-10 12:00:48 -05:00
Gerald Carter
7238a71961 r18694: prevent -O and -g from being set at the same time (by default)
(This used to be commit 5af1d3a425)
2007-10-10 12:00:48 -05:00
Jelmer Vernooij
e3068ef054 r18692: Dump debug data when DEBUGLEVEL >= 10
(This used to be commit 503d1a27d5)
2007-10-10 12:00:48 -05:00
Jelmer Vernooij
8c79b4cbc1 r18690: Regenerate RPC files after pidl changes.
(This used to be commit 87d3430537)
2007-10-10 12:00:47 -05:00
Jelmer Vernooij
6ffa76d76e r18688: get rid of the now obsolete keepref attribute
(This used to be commit b970f05b9b)
2007-10-10 12:00:47 -05:00
Stefan Metzmacher
387a8ed33e r18687: sync the lib/interfaces.c with lib/socket/netif.c from samba4
to hopefully fix the build on HPUX and Tru64

metze
(This used to be commit aa8222c6a7)
2007-10-10 12:00:47 -05:00
Gerald Carter
3c222089ed r18684: pdb_get_group_sid() has to use the Get_Pwnam_alloc() call
to ensure it finds the Unix user.
(This used to be commit 4cea9bfca1)
2007-10-10 12:00:47 -05:00
Günther Deschner
7eca40ba3e r18681: Although we have commandline completion in rpcclient, just also allow
"debug" to be set instead of "debuglevel" - just for convenience.

Guenther
(This used to be commit ffec64730b)
2007-10-10 12:00:47 -05:00
Günther Deschner
d1e28fa76d r18680: Fix last struct uuids (in uncommented code).
Guenther
(This used to be commit 41c79ee5ac)
2007-10-10 12:00:47 -05:00
Günther Deschner
d2106c1a3c r18679: Fix the build.
Guenther
(This used to be commit b42bd2bf9b)
2007-10-10 12:00:46 -05:00
Günther Deschner
1f3b19d569 r18678: Fix the build. (never commit before breakfeast).
Guenther
(This used to be commit e1e9b57ce2)
2007-10-10 12:00:46 -05:00
Günther Deschner
5864fb9fc5 r18677: quickly add samr_GetDisplayEnumerationIndex for debugging to rpcclient.
Guenther
(This used to be commit bd546edc48)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
bc6295c3ec r18673: define the macros even if we don't define bool ourself
metze
(This used to be commit 65013a8d9e)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
7040796108 r18672: fix the build on Tru64
metze
(This used to be commit 6c101d2068)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
8383eb53f4 r18671: try to fix the build on solaris 10 and maybe some other hosts
we need to define 'BOOL_DEFINED' to make sure it didn't get redefined
by <rpcsvc/yp_prot.h>

metze
(This used to be commit 5a589bb16c)
2007-10-10 12:00:46 -05:00
Günther Deschner
4fa5a1c845 r18670: Fix memleaks.
Guenther
(This used to be commit 2fc63fb8f7)
2007-10-10 12:00:46 -05:00
Stefan Metzmacher
3fe99c960f r18669: fix the samba3 build...
we need to move the iconv configure checks to libreplace...

metze
(This used to be commit 6b53ed8fdc)
2007-10-10 12:00:45 -05:00
Volker Lendecke
d52612a7d9 r18667: Two C++ warnings
(This used to be commit 8c60e71229)
2007-10-10 12:00:45 -05:00
Gerald Carter
6ef0edb38e r18666: checking in generated netlogon files
(This used to be commit ac5561103c)
2007-10-10 12:00:45 -05:00
Volker Lendecke
72e9a5d9e6 r18665: Remove two type-punned warnings
(This used to be commit 157b2c0c26)
2007-10-10 12:00:45 -05:00
Stefan Metzmacher
fb79acba60 r18664: this stuff is included from libreplace
metze
(This used to be commit 054728e071)
2007-10-10 12:00:45 -05:00
Jeremy Allison
664c3f4166 r18663: Fix one more uuid -> GUID.
Jeremy.
(This used to be commit e568271af2)
2007-10-10 12:00:44 -05:00
Stefan Metzmacher
a03627afad r18662: print out the failing command for dynconfig.o too
metze
(This used to be commit f51a200f67)
2007-10-10 12:00:44 -05:00
Volker Lendecke
4d451bd213 r18661: C++ warnings
(This used to be commit 6004b8025d)
2007-10-10 11:52:20 -05:00
Jim McDonough
b449884661 r18660: Fix build, one uuid->GUID was missed.
(This used to be commit f8ea2069d4)
2007-10-10 11:52:20 -05:00
Stefan Metzmacher
921caa41e0 r18659: restore BOOL, sorry:-)
libreplace only provides 'bool' not BOOL

metze
(This used to be commit ce6a0723ff)
2007-10-10 11:52:20 -05:00
Jelmer Vernooij
4e7d11449a r18654: Rename "struct uuid" => "struct GUID" for consistency.
(This used to be commit 5de76767e8)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
bc82f70e0b r18653: this stuff is in libreplace...
metze
(This used to be commit 1dd0ed6134)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
ac76c1804c r18652: libreplace has replacements for strndup and strnlen
metze
(This used to be commit 9f3599a7ca)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
af61cbdae9 r18651: this comment is wrong, was cut'n'paste...
metze
(This used to be commit e3b88fb655)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
c1837c24ae r18650: this isn't needed twice in include/includes.h
metze
(This used to be commit ee11275183)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
19cee7d056 r18649: the PRINTF_ATTRIUTE() macro is provided by libreplace
metze
(This used to be commit dd76f4f5f3)
2007-10-10 11:52:19 -05:00
Stefan Metzmacher
b0c3ad3925 r18648: this is provided by libreplace
metze
(This used to be commit cbc3f09263)
2007-10-10 11:52:18 -05:00
Stefan Metzmacher
21d9351113 r18647: print out the failing cammand, this is very usefull for the build farm
metze
(This used to be commit ab58cd1056)
2007-10-10 11:52:18 -05:00
Stefan Metzmacher
0638207bc4 r18646: now we can have the socket_wrapper.c completely in sync with samba4
metze
(This used to be commit d4d9b7e026)
2007-10-10 11:52:18 -05:00
Stefan Metzmacher
8f153c6128 r18644: bring in libreplace in lib/replace
metze
(This used to be commit 596cbe73dd)
2007-10-10 11:52:03 -05:00
Volker Lendecke
f2e7b8d144 r18643: Fix a 64-bit warning
(This used to be commit bd17517796)
2007-10-10 11:52:03 -05:00
Gerald Carter
c2c684b460 r18642: convert [out] parameters to pointers in Spooler IDL
(This used to be commit 9c67dd36c6)
2007-10-10 11:52:03 -05:00
Gerald Carter
768e7cb043 r18641: Checking in the wkssvc files after updating the [out]
pointers.  Waiting on on srvsvc files before it can actually compile.
(This used to be commit 1dbfb25d0a)
2007-10-10 11:52:03 -05:00
Stefan Metzmacher
47e6b7733a r18640: move to socket_wrapper to lib/socket_wrapper/
and sync it with samba4

metze
(This used to be commit 9c0e5b29f1)
2007-10-10 11:52:03 -05:00
Volker Lendecke
58bd4333a5 r18638: This is an attempt to fix the AIX build. Jeremy, as you are busy talking
SASL/Steve/Andrew I can't right now ask why the aio.h is needed for the
timespec test.

Might have to revert that soon.

Volker
(This used to be commit fa53ad6571)
2007-10-10 11:52:02 -05:00
Jelmer Vernooij
0da8adbc59 r18632: Make C++ compilers happy.
(This used to be commit 609224565f)
2007-10-10 11:52:01 -05:00
Gerald Carter
738f168ecc r18623: starting on eventlog IDL
(This used to be commit 6cb7b6226d)
2007-10-10 11:52:01 -05:00
Günther Deschner
505f1d1e04 r18622: Fix at least the python bindings *build*, I'm sure there is much more to
do so that they actually work again.

Guenther
(This used to be commit 49d07d0cf9)
2007-10-10 11:52:01 -05:00
Günther Deschner
1e02ed76eb r18621: Fix samr server build.
Guenther
(This used to be commit 23d6656427)
2007-10-10 11:52:01 -05:00
Günther Deschner
245aa33f0d r18620: Fallback to non-paging LDAP searches in ads_do_search_retry_internal()
for anonymous bound connections.

When doing anonymous bind you can never use paged LDAP control for
RootDSE searches on AD.

Guenther
(This used to be commit dc1d92faab)
2007-10-10 11:52:01 -05:00
Günther Deschner
a812e2d7db r18619: Add rpcclient helper for samr_querydispinfo2|3 for testing.
Guenther
(This used to be commit 1a307954e5)
2007-10-10 11:52:00 -05:00
Gerald Carter
8dd826f500 r18618: * remove svn:externals
* 'make idl' now requires pidl in the current PATH
* regenerate winreg ndr files
(This used to be commit e936d39e00)
2007-10-10 11:52:00 -05:00
Gerald Carter
ab91674753 r18617: fix unixinfo call after change to IDL (change from pointer)
(This used to be commit fd0579b963)
2007-10-10 11:52:00 -05:00
Gerald Carter
4646147a39 r18616: fix breakage after DLIST_ADD_END() changes for --with-pam
(This used to be commit 5c00b5497b)
2007-10-10 11:52:00 -05:00
Jeremy Allison
6b07596a0f r18613: Metze, in your DLINKLIST commit you changed this
from 10 seconds to 30 seconds. I don't think you
meant to do this....
Jeremy.
(This used to be commit dd1691cf81)
2007-10-10 11:52:00 -05:00
Stefan Metzmacher
7ee716e701 r18612: remove RPC-ECHO till it gets fixed
metze
(This used to be commit 2afeec3d15)
2007-10-10 11:52:00 -05:00
Stefan Metzmacher
86b701d3cc r18608: -D_SAMBA_BUILD_ was already added in another place to CFLAGS
so we don't need it twice

metze
(This used to be commit 19259e5e93)
2007-10-10 11:51:59 -05:00
Stefan Metzmacher
1626d2926a r18606: - fix the detection of the working quota implementation
- we now define the set of samba related include path in one place
  so that we can't get it wrong in different places

metze
(This used to be commit 6bf0aad052)
2007-10-10 11:51:59 -05:00
Stefan Metzmacher
258a465e20 r18605: sync dlinklist.h with samba4, that means DLIST_ADD_END()
and DLIST_DEMOTE() now take the type of the tmp pointer
not the tmp pointer itself anymore.

metze
(This used to be commit 2f58645b70)
2007-10-10 11:51:59 -05:00
Jeremy Allison
8155621d54 r18603: Add in the NFSv4 ACL mapping code from IBM.
Sorry for the delay :-).
Jeremy.
(This used to be commit a52fa21895)
2007-10-10 11:51:59 -05:00
Volker Lendecke
b5fabe4cf8 r18598: Add marshalling support to smb_io_time.
Volker
(This used to be commit 2ab0ab3262)
2007-10-10 11:51:59 -05:00
Volker Lendecke
8bf6d57176 r18597: A C++ warning
(This used to be commit 528082aed8)
2007-10-10 11:51:57 -05:00
Jelmer Vernooij
e5db7fee0f r18572: Use the autogenerated client and server for the echo interface and implement
some of the missing functions. RPC-ECHO now passes against Samba3.
(This used to be commit 9e9a053661)
2007-10-10 11:51:51 -05:00
Gerald Carter
47debfd03a r18562: quick build fix rather than rolling back (I didn't actually intend the previous commit but got confused between Samab 3 & 4 branches)
(This used to be commit 990e7c3f8e)
2007-10-10 11:51:50 -05:00
Gerald Carter
c4013df0c1 r18560: * Add in the winreg and initshutdown IDL files
* rename PI_SHUTDOWN from include/smb.h to PI_INITSHUTDOWN
  for compatibility with pidl libndr output
(This used to be commit 23a8828613)
2007-10-10 11:51:50 -05:00
Jeremy Allison
1052e48e87 r18557: If you've set security=ads, do the DNS queries first.
Doing otherwise means site support doesn't work correctly.
Jeremy.
(This used to be commit 06a75f3b93)
2007-10-10 11:51:50 -05:00
Volker Lendecke
e5b3b3cac5 r18556: Implement "net sam policy", thanks to Karolin Seeger <ks@sernet.de>.
Volker
(This used to be commit da22aa7021)
2007-10-10 11:51:49 -05:00
Jeremy Allison
a0aaa82f6d r18552: Ensure the sitename matches before we SAF store a DC in ADS mode.
Jeremy.
(This used to be commit 03e1078b45)
2007-10-10 11:51:49 -05:00
Jeremy Allison
07e9f4e61a r18551: Implement a 30 seconds from startup, during which we
try hard to connect a DC even if we might be offline.
Jeremy.
(This used to be commit a9f1151407)
2007-10-10 11:51:49 -05:00
Jeremy Allison
315ad641c3 r18547: Add in fixes to mangling dir code - ensure don't
look in the paths for wcard - always read directly
from incoming packet.
Jeremy.
(This used to be commit 3745a1af4e)
2007-10-10 11:51:48 -05:00
Volker Lendecke
8e7799889f r18543: Fix Coverity ID#312
(This used to be commit 763cbe924b)
2007-10-10 11:51:48 -05:00
Simo Sorce
d6943ee546 r18534: Fix grammar
(This used to be commit 6c9b80bde3)
2007-10-10 11:51:48 -05:00
Jeremy Allison
041e49d196 r18533: Ensure we clear out the failed connection cache for an entire
domain when going back online.
Jeremy.
(This used to be commit c7e4c8d0b4)
2007-10-10 11:51:48 -05:00
Simo Sorce
019c89a67e r18530: typos
(This used to be commit 8c5c4959ed)
2007-10-10 11:51:48 -05:00
Simo Sorce
f560ee201d r18529: warn the user that putting the machine host name on the
127.0.0.1 line in /etc/hosts is not ok for Kerberos.
(This used to be commit 85126391e1)
2007-10-10 11:51:47 -05:00
Volker Lendecke
fcec9a23e9 r18527: Janitor for Jeremy ;-)
(This used to be commit d72ba9ed12)
2007-10-10 11:51:46 -05:00
Jelmer Vernooij
71453ab90d r18526: Use generated server for unixinfo RPC interface.
(This used to be commit a5c0606d76)
2007-10-10 11:51:46 -05:00
Jeremy Allison
1e81145362 r18525: Be a little less agressive about going back online when requested.
Jeremy.
(This used to be commit 9a0066278c)
2007-10-10 11:51:46 -05:00
Volker Lendecke
5077d28081 r18519: Copy over the Samba4 code to figure out options for the named initializers.
Volker
(This used to be commit 1786c28cc3)
2007-10-10 11:51:45 -05:00
Günther Deschner
2ad8c705b2 r18512: Add krb5conf file environment to debug statement.
Guenther
(This used to be commit 398f368c8a)
2007-10-10 11:51:45 -05:00
Günther Deschner
0f9c9db072 r18511: Ops, fix the build.
Guenther
(This used to be commit 20de0b4823)
2007-10-10 11:51:45 -05:00
Günther Deschner
b2c0260219 r18510: Protect against storing null-sids in the winbind cache.
Guenther
(This used to be commit b04c8d46ef)
2007-10-10 11:51:45 -05:00
Jeremy Allison
415c75f320 r18509: We must always canonicalise the usernames to be UPPERCASE DOMAIN,
lowercase username. We cache names as keys in this form, and we weren't
always returning this....
Jeremy.
(This used to be commit 205aa2b70d)
2007-10-10 11:51:45 -05:00
Günther Deschner
dda94fdf96 r18508: A query for the LDAP schema can never be done anonymously against AD.
Guenther
(This used to be commit 8bb6e82f02)
2007-10-10 11:51:44 -05:00
Jeremy Allison
4b57919051 r18507: Added debug log for returned username.
Jeremy.
(This used to be commit 7644fa70ba)
2007-10-10 11:51:44 -05:00
Jeremy Allison
ddbf923253 r18506: Fix online requests to cause an immediate DC connection.
Jeremy.
(This used to be commit 03b1699fa7)
2007-10-10 11:51:44 -05:00
Jelmer Vernooij
e6b7c350c1 r18487: Add NULL checks
(This used to be commit 3df11307f8)
2007-10-10 11:51:44 -05:00
Günther Deschner
1f0b2e84d7 r18484: Start some cleanup on pam_winbind's syslogging:
* as openlog() is non-reentrant and pam_winbind thereby overrides the
  syslog settings of the calling application, directly call syslog (or
  pam_vsyslog if available)

* support the PAM_SILENT flag to avoid any log messages beeing created

Guenther
(This used to be commit 0f7e37ffc4)
2007-10-10 11:51:44 -05:00
Jeremy Allison
b3b207e966 r18483: Ensure all pdb_XXX calls are wrapped in become_root()/unbecome_root()
pairs. Should fix bug #4097.
Jeremy.
(This used to be commit f787b9d156)
2007-10-10 11:51:44 -05:00
Jelmer Vernooij
48e2a2bfb7 r18481: Use pidl-generated server side code for dfs.
(This used to be commit 3f337c104d)
2007-10-10 11:51:43 -05:00
Jeremy Allison
a4743f3a76 r18480: Doh ! Double-free of hostnameDN.
Jeremy.
(This used to be commit f8984fa8b7)
2007-10-10 11:51:43 -05:00
Jeremy Allison
5606e85d74 r18476: Protect ourselves from bad cached creds a little
better - don't just panic - delete them.
Jeremy.
(This used to be commit 4c54b75076)
2007-10-10 11:51:43 -05:00
Jeremy Allison
c9f9917e77 r18473: Once we go online, trigger a "get krb5 ticket event"
immediately if we were waiting on one.
Jeremy.
(This used to be commit 6dc8f9042f)
2007-10-10 11:51:43 -05:00
Jelmer Vernooij
8be112a81b r18469: Use new pidl-generated DFS client code.
(This used to be commit e277fb067b)
2007-10-10 11:51:43 -05:00
Jeremy Allison
dc14e67a6b r18467: Some sites allow an account to be deleted, but not
disabled. Cope with both - print appropriate messages.
Jeremy.
(This used to be commit 2c003a4463)
2007-10-10 11:51:43 -05:00
Volker Lendecke
6b3c42b1a1 r18466: Attempt to fix the AIX build
(This used to be commit 1398425067)
2007-10-10 11:51:42 -05:00
Volker Lendecke
dfa62cfa98 r18464: Solaris has LDAP_SCOPE_ONELEVEL. Linux seems to have it as well.
Fix a C++ compat warning.

Volker
(This used to be commit 351e583f66)
2007-10-10 11:51:42 -05:00
Volker Lendecke
1d71f023bb r18457: Argl :-)
(This used to be commit cafaf5a37c)
2007-10-10 11:51:42 -05:00
Volker Lendecke
d3237d2233 r18453: Attempt to fix the non-ldap build
(This used to be commit 86db854230)
2007-10-10 11:51:42 -05:00
Volker Lendecke
6f47ed234a r18449: Attempt to fix the build on non-linux platforms: Many of those don't have
strtoull. This is a copy of the stuff in samba4 libreplace, which is GPL. I
hope it is ok to copy&paste it into a GPL file. Tridge, we could also create a
replace_lpgl.c if needed.

Volker
(This used to be commit f8346687d9)
2007-10-10 11:51:42 -05:00
Jeremy Allison
8c2c5c5d1d r18446: Add the ldap 'leave domain' code - call this as
a non-fatal error path if the 'disable machine
account' code succeeded.
Jeremy.
(This used to be commit f47bffa21e)
2007-10-10 11:51:42 -05:00
Gerald Carter
bad8c0d6f1 r18429: fix a regression renaming local group introduced by trying to handle renames to the same name
(This used to be commit 4faa5004fb)
2007-10-10 11:51:23 -05:00
Günther Deschner
59e5149d8f r18425: Fix ads_ntstatus(). LDAP_SUCCESS should really map to NT_STATUS_OK.
Guenther
(This used to be commit 8ab214956e)
2007-10-10 11:51:23 -05:00
Günther Deschner
2a61368ee3 r18422: Use LDAPMessage in idmap_ad as well.
Guenther
(This used to be commit 533f764084)
2007-10-10 11:51:23 -05:00
Simo Sorce
62c78742c4 r18413: Based on the new torture test I added in samba4 it turns out
the flags determines what kind of share is this.
I suppose 0x80000000 means something like (legacy) as it will
fail for any share name longer then 13 chars (same size accepted
for old RAP calls that come from pre NT OSs.

Jerry,
let me know if you want me to commit this to 3_0_23

Simo.
(This used to be commit f09f8b2d82)
2007-10-10 11:51:22 -05:00
Jeremy Allison
3a55aa918c r18411: Getting a zero length read is common. Don't log at
debug level zero.
Jeremy.
(This used to be commit e23caeb7b5)
2007-10-10 11:51:22 -05:00
Gerald Carter
40892266f6 r18405: Now that POLICY_HND == struct policy_handle, we can
make rpccli_lsa_close() a real one line wrapper for
rpccli_lsa_Close().

I'm still keeping the wrapper for now because I'm not sure
what we will do about a usable client API.  I don't think
calling the autogenerated client code directly is a good idea
as the IDL is still evolving.
(This used to be commit 47f0c71218)
2007-10-10 11:51:22 -05:00
Gerald Carter
5e1146ab58 r18404: * swap from POLICY_HND to the struct policy_handle from ndr/misc.h
* move OUR_HANDLE macro to include/rpc_misc.h
(This used to be commit 2b37079af2)
2007-10-10 11:51:22 -05:00
Jeremy Allison
68a2430c52 r18403: Revert until we get this sorted out correctly.
Jeremy.
(This used to be commit d0fdd5eb1e)
2007-10-10 11:51:22 -05:00
Volker Lendecke
ff7b6e52b5 r18402: Comment and (hopefully) fix remote command completion for smbclient.
Fix Bug ID 4084.

Volker
(This used to be commit 0baa3fcfa6)
2007-10-10 11:51:22 -05:00
Jeremy Allison
c432bfc14b r18398: Fix bug #4095 - username composed into domain\user
twice in spnego path. Jerry please check.
Jeremy.
(This used to be commit e872bacf28)
2007-10-10 11:51:21 -05:00
Gerald Carter
e397e2f22a r18397: Change rpccli_lsa_close() as a wrapper for the autogenerated
rpccli_lsa_Close().
(This used to be commit 365c75603d)
2007-10-10 11:51:21 -05:00
Gerald Carter
0a42e71252 r18396: regenerate unixinfo files after metze changes to the IDL
(This used to be commit d2fe3eab54)
2007-10-10 11:51:21 -05:00
Gerald Carter
4f024ad3d1 r18395: have the ndr layer alloc outgoing structure members for us
(This used to be commit 4fb35eeb44)
2007-10-10 11:51:21 -05:00
Gerald Carter
85e4a7a5b3 r18394: get the lsa client code to link
(This used to be commit 96e412a04c)
2007-10-10 11:51:21 -05:00
Gerald Carter
8fad1d204e r18393: get the data size and not offset when initializing a data blob from a prs structure
(This used to be commit 878fd68dfc)
2007-10-10 11:51:21 -05:00
Stefan Metzmacher
703881988b r18390: give a better error code
metze
(This used to be commit b2709f4fe5)
2007-10-10 11:51:20 -05:00
Gerald Carter
5c14584d21 r18387: remove echo of pidl command line (was used for debugging)
(This used to be commit 848edce912)
2007-10-10 11:51:20 -05:00
Stefan Metzmacher
b890724ea3 r18380: the panic action command needs to be different in samba4
samba4 uses %PID% where samba3 uses %d

metze
(This used to be commit 4424aebdce)
2007-10-10 11:51:20 -05:00
Stefan Metzmacher
716135eacf r18379: make the gdb_backtrace executable
metze
(This used to be commit f4023dc39e)
2007-10-10 11:51:20 -05:00
Stefan Metzmacher
98dc6158fc r18373: copy over configure.developer from samba4 which adds
-C --enable-socket-wrapper

metze
(This used to be commit 346bcd756c)
2007-10-10 11:51:20 -05:00
Volker Lendecke
6d9b02df71 r18369: I've got a sniff where NT4 sends just a single byte after the 516 byte
password blob, it seems that pw_len is just a uint8 instead of uint16.

This might also be interesting for Samba4's samr.idl.

Volker
(This used to be commit 68ded4ba07)
2007-10-10 11:51:20 -05:00
Volker Lendecke
716f7245d9 r18313: Nobody said "no" (yet.... gd?), so commit it:
Remove the account_policy_migrated() thingy, and make cache_account_policy_set
use gencache. Account policies are now handled like groups and users are with
respect to "passdb backend".

Volker
(This used to be commit fa8b2e2a58)
2007-10-10 11:51:19 -05:00
Volker Lendecke
eab60e2bb1 r18312: Change gencache_get slightly: Delete expired keys, and only strdup the value
if a valid entry was found. The newer calls got the latter one wrong, change
the older calls.

Volker
(This used to be commit 554e68887b)
2007-10-10 11:51:19 -05:00
Volker Lendecke
cfefd8fd78 r18311: Simplify gencache_get by using strtol instead of sscanf
(This used to be commit f6497adac6)
2007-10-10 11:51:19 -05:00
Volker Lendecke
96c72e2f81 r18310: Add a little test for some gencache routines
Remove unused gencache_set_only
Use CONST_DISCARD instead of SMB_STRDUP

Volker
(This used to be commit 651e7e44e2)
2007-10-10 11:51:19 -05:00
Gerald Carter
415aa96f09 r18275: add auto generated dfs code
(This used to be commit edb7a3607e)
2007-10-10 11:51:19 -05:00
Gerald Carter
96dd10cc00 r18274: Cleanup unnecessary empty headers and add a comment
why the remaining ones are needed
(This used to be commit e4fc8ba7fb)
2007-10-10 11:51:19 -05:00
Gerald Carter
2b27c93a9a r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
(This used to be commit 3da9f80c28)
2007-10-10 11:51:18 -05:00
Stefan Metzmacher
c2d59d8170 r18269: regenerate idl output
metze
(This used to be commit 2047e2a985)
2007-10-10 11:51:18 -05:00
Günther Deschner
cf469f2af1 r18259: Fix the non-krb5 builds.
Guenther
(This used to be commit 576488933b)
2007-10-10 11:51:18 -05:00
Jeremy Allison
6cfe7be80e r18241: If replacing the krb5.conf, ensure it's readable.
Jeremy.
(This used to be commit dfd93a3031)
2007-10-10 11:51:18 -05:00
Jeremy Allison
01285feba1 r18239: THIS IS GUENTHER'S WORK !!! He's allowing me to merge
this at the moment as I'm working on this area. Thanks
a lot Guenther.
Add the capability to get krb5 tickets even if we
log on in the offline state and have to cache
the credentials. Once we go online we should
start getting krb5 tickets again. Currently
this code waits until lp_winbind_cache_time()
seconds (5 minutes by default) before getting
tickets. This is correct in the DC down case,
but not in the global offline -> online case.
I'll later add a trigger to force an immediate refresh
on the offline -> online state transition.
Jeremy.
(This used to be commit 04fe034f4a)
2007-10-10 11:51:17 -05:00
Gerald Carter
c1e0e75dc8 r18237: include dcerpc.h here to fix compile of autogenerated unixinfo files
(This used to be commit 3757f249aa)
2007-10-10 11:51:17 -05:00
Gerald Carter
368682954d r18236: fully autogenerated unix info files
(This used to be commit cbe39cb5e5)
2007-10-10 11:51:17 -05:00
Gerald Carter
5f8ef621b3 r18235: stub header to get past compile issues with pidl ndr output
(This used to be commit 1eaf62557f)
2007-10-10 11:51:17 -05:00
Jeremy Allison
ed0274433c r18234: DNS failures are too common to log at level zero or 1.
Jeremy.
(This used to be commit 943e21d5da)
2007-10-10 11:51:17 -05:00
Jelmer Vernooij
1779e3f104 r18233: Use the autogenerated cli_unixinfo rather than the old one.
(This used to be commit eec8b915d1)
2007-10-10 11:51:17 -05:00
Jelmer Vernooij
6ed67b003e r18232: - Trim number of regexes applied to generated files
- Fix syntax error in shell script (refused by dash)
- Regenerate output
(This used to be commit 4dba965f9a)
2007-10-10 11:51:17 -05:00
Jelmer Vernooij
c43047009b r18230: Build Samba3 RPC client<->libndr glue code.
(This used to be commit c77ddae4f0)
2007-10-10 11:51:16 -05:00
Gerald Carter
cb78a0d24a r18229: regenerated unixinfo files and add a few header stubs. Almost autogenerated now
(This used to be commit b860685a81)
2007-10-10 11:51:16 -05:00
Jeremy Allison
34a25efad2 r18226: Ensure we only do this evil thing if it's our realm.
Jeremy.
(This used to be commit 0a89b37b1a)
2007-10-10 11:51:16 -05:00
Jeremy Allison
80052bcf13 r18225: If we're going to overwrite krb5.conf, at least
be polite enough to make a backup.
Jeremy.
(This used to be commit c82aac594f)
2007-10-10 11:51:16 -05:00
Jeremy Allison
d07458bd67 r18224: Paranoia - ensure the oplock event handler is
removed immediately in the handler.
Extra debug info tracking down winbindd DC
selection.
Jeremy.
(This used to be commit 7ba9b6ce58)
2007-10-10 11:51:16 -05:00
Jeremy Allison
253c01f29e r18201: Make explicit what's going on here.
Jeremy.
(This used to be commit 38b8a2b527)
2007-10-10 11:51:16 -05:00
Jeremy Allison
6d4c7b1345 r18200: Experimental code to allow system /etc/krb5.conf to be
overwritten by winbindd. Don't enable this :-).
Jeremy.
(This used to be commit 88e11ee91a)
2007-10-10 11:51:16 -05:00
Jeremy Allison
6410f02fe5 r18199: Allow winbindd to delete a saf_ entry if it knows
it can't talk to it.
Jeremy.
(This used to be commit 7385a076f8)
2007-10-10 11:51:15 -05:00
Gerald Carter
94eb7d93d8 r18197: compile fixes
(This used to be commit 9b0d44a0b0)
2007-10-10 11:51:15 -05:00
Jeremy Allison
c3771f5f8c r18196: Fix debug message (this should be online not offline).
Jeremy.
(This used to be commit 9c943dfe2d)
2007-10-10 11:51:15 -05:00
Gerald Carter
b8704c5217 r18195: remove hardcoded path introdiced by pidl
(This used to be commit cbf57a6327)
2007-10-10 11:51:15 -05:00
Gerald Carter
82ed086618 r18193: Not quite to autogenerated NDR but closer thanks to Jelmer's
initial work.  I'm including the librpc/gen_ndr directory
in svn temporarily just to get some compile issues straightened
out.
(This used to be commit cf271aa433)
2007-10-10 11:51:08 -05:00
Jeremy Allison
3404728686 r18192: Fix the build.
Jeremy.
(This used to be commit aa62bb6b4c)
2007-10-10 11:43:57 -05:00
Jeremy Allison
ccdd921e61 r18191: Fix the online/offline state handling of winbindd.
Instead of trying to do this in the winbindd_cache
entries, add a timed even handler to probe every
5 mins when disconnected.
Fix events to run all pending events, rather than
only one.
Jeremy.
(This used to be commit 7bfbe1b4fb)
2007-10-10 11:43:57 -05:00
Jeremy Allison
012c9e9cf9 r18189: When tearing down a connection we can be harsher
with timeouts. Also, wait for 5 seconds not 10
on connecting to a DC.
Jeremy.
(This used to be commit 6792460ba6)
2007-10-10 11:43:56 -05:00
Jelmer Vernooij
995205fc60 r18188: merge 3.0-libndr branch
(This used to be commit 1115745cae)
2007-10-10 11:43:56 -05:00
Gerald Carter
a7be2ec7c5 r18187: Replace copy of idl files with a svn:externals link.
Will fix the build_idl.sh script to only process the files
we are concerned with in this branch.
(This used to be commit 647ed21b09)
2007-10-10 11:43:56 -05:00
Gerald Carter
48450d97a5 r18185: add librpc/idl and relevant IDL files from SAMBA_4_0
(This used to be commit 6da1ef0f1c)
2007-10-10 11:43:30 -05:00
Gerald Carter
1a6ffd1391 r18182: only grant privs to Administrators if privileges are enabled to avoid bopgus error messages
(This used to be commit 7d5356fd5d)
2007-10-10 11:43:30 -05:00
Günther Deschner
b5f6cbbe1b r18177: Some build- and memleak-fixes for the (not build by default) ADS GPO
routines.

Guenther
(This used to be commit 0ef504a0a6)
2007-10-10 11:43:30 -05:00
Günther Deschner
171a5cd5c0 r18175: Forgot to call asn1_free() in previous commit.
Guenther
(This used to be commit af3779a516)
2007-10-10 11:43:30 -05:00
Günther Deschner
4bc83e60de r18174: Do not return "success" when we failed to write in the CLDAP code.
Guenther
(This used to be commit 1fe4724f57)
2007-10-10 11:43:30 -05:00
Günther Deschner
5a87bbd48a r18172: Just a little more verbosity in this debug statement.
Guenther
(This used to be commit e852bc4646)
2007-10-10 11:43:30 -05:00
Günther Deschner
a58dc69813 r18170: Make sure to actually get the printing data before trying to publish it
in AD.

Guenther
(This used to be commit 1bb29acb3b)
2007-10-10 11:43:30 -05:00
Günther Deschner
b4449b6b27 r18167: Adding DEBUG() to winbinds refresh seqnum to track down a failure.
Guenther
(This used to be commit 8bf197ee16)
2007-10-10 11:43:29 -05:00
Günther Deschner
73d25f6f78 r18165: Fix memleaks.
Guenther
(This used to be commit 6f301b2dc3)
2007-10-10 11:43:29 -05:00
Günther Deschner
30c0e93156 r18162: Close socket when the CLDAP request has failed.
Guenther
(This used to be commit 714ea3ceab)
2007-10-10 11:43:29 -05:00
Günther Deschner
030cf71d61 r18158: Stop winbindd from accumulating memory creds infinitely when doing
pam offline logons.

Guenther
(This used to be commit 95788cb291)
2007-10-10 11:43:29 -05:00
Jeremy Allison
bf7fcdffa3 r18128: Don't forget to set the ref count to 1 on a reference
counted struct. Doh !
Jeremy.
(This used to be commit 8c78386e8d)
2007-10-10 11:43:29 -05:00
Jeremy Allison
8b5bef1ad1 r18116: Make max usershares an advisory limit, pointed out
by Cybionet <cybionet@videotron.ca>.
Jeremy.
(This used to be commit fb755e83ee)
2007-10-10 11:43:29 -05:00
Jeremy Allison
8f50142e4d r18107: Only do a SAF realm store if the logon was krb5.
Jeremy.
(This used to be commit 131682461c)
2007-10-10 11:43:29 -05:00
Stefan Metzmacher
458a3ff20c r18099: merge from samba4 to make tcc happy as the same struct name was used in multiple
places and that only works if they're all in a local scope

metze
(This used to be commit 027c7964ee)
2007-10-10 11:43:28 -05:00
Stefan Metzmacher
eb536690e2 r18070: be more verbose when errors happen
metze
(This used to be commit 9d71a037b1)
2007-10-10 11:43:25 -05:00
Stefan Metzmacher
3c23af97f9 r18069: it isn't a good idea to run the PIPE_NUMBER test on a file share...
But I wonder why it is so slow on my laptop and takes only 1 second on
the 'opi' build farm host.

I got only 2-3 opens per second...

metze
(This used to be commit d5c55e731a)
2007-10-10 11:43:25 -05:00
Volker Lendecke
2ad8731341 r18066: It's a bit pointless to send ourselves a signal just to check if we exist :-)
Volker
(This used to be commit 44105ff2ff)
2007-10-10 11:43:25 -05:00
Stefan Metzmacher
958576623f r18065: build talloctort as part of 'make torture'
metze
(This used to be commit 4c7f20c812)
2007-10-10 11:43:25 -05:00
Jeremy Allison
8d812f8eed r18063: When we get a successful connection using ADS,
cache the SAF name under both the domain name
and the realm name, as we could be looking up
under both. Jerry please check.
Jeremy.
(This used to be commit 9d954d2deb)
2007-10-10 11:43:24 -05:00
Jeremy Allison
d2465b1730 r18062: Fix to ensure the name used by pam matches the
name that will be returned by winbindd. This
(should) fix the bug where the user logs in
with DOMAIN\user but winbindd returns only
"user" for the username due to 'winbind use
default domain' being set.
Jeremy.
(This used to be commit 1b2aa17354)
2007-10-10 11:43:24 -05:00
Simo Sorce
a21693fac6 r18049: Backport SAMBA_4_0 snprintf changes
(This used to be commit e4e31e5f0f)
2007-10-10 11:43:24 -05:00
Volker Lendecke
040d9f7850 r18048: More nested structures
(This used to be commit 20fcce5ceb)
2007-10-10 11:43:24 -05:00
Volker Lendecke
f8a17bd8bd r18047: More C++ stuff
(This used to be commit 86f4ca84f2)
2007-10-10 11:43:24 -05:00
Volker Lendecke
c49961b785 r18030: When compiling with C++, nested structs lead to nested class definitions which
are not compatible. I am aware that this would be a huge change in Samba4, but
I would like to see it in the code that is shared.

Stefan, when you do merge work, can you get this across to Samba4?

Thanks,

Volker
(This used to be commit 959ea2c7dc)
2007-10-10 11:43:24 -05:00
Volker Lendecke
6655e1e997 r18029: More C++ stuff
(This used to be commit 089b51e28c)
2007-10-10 11:43:23 -05:00
Volker Lendecke
f5906de76d r18028: Fix warnings on non-krb5 systems
(This used to be commit 30df6cb65f)
2007-10-10 11:43:23 -05:00
Volker Lendecke
5f2b59622e r18027: Fix some 64-bit warnings
(This used to be commit 54706285f7)
2007-10-10 11:39:49 -05:00
Volker Lendecke
b85e21d3f4 r18020: Fix SunX (with LDAP but without ADS)
(This used to be commit aa61a16c9f)
2007-10-10 11:39:49 -05:00
Volker Lendecke
ee0e397d6f r18019: Fix a C++ warnings: Don't use void * in libads/ for LDAPMessage anymore.
Compiled it on systems with and without LDAP, I hope it does not break the
build farm too badly. If it does, I'll fix it tomorrow.

Volker
(This used to be commit b2ff9680eb)
2007-10-10 11:39:49 -05:00
Volker Lendecke
b540e4dc84 r18016: OpenBSD apparently does not have ENOTSUP
(This used to be commit 8e087b7e46)
2007-10-10 11:39:49 -05:00
Jeremy Allison
98cfbd3ccf r18015: Try and detect network failures immediately in
set_dc_type_and_flags().
Fix problem when DC is down in ads_connect, where
we fall back to NetBIOS and try exactly the same
IP addresses we just put in the negative connection
cache.... We can never succeed, so don't try lookups
a second time.
Jeremy.
(This used to be commit 2d28f3e94a)
2007-10-10 11:39:48 -05:00
Derrell Lipman
6fc90da054 r18014: revert a possibly unnecessary change
(This used to be commit 9c93abf25e)
2007-10-10 11:39:48 -05:00
Derrell Lipman
315f416211 r18013: Fix for "bug" (enhancement) 3684.
Provide a new option to specify the share mode to be used when opening a
file.
(This used to be commit 9b6fee5f6f)
2007-10-10 11:39:48 -05:00
Derrell Lipman
44c1504c03 r18012: Should fix bug 4018.
NetApp filers expect paths in Open AndX Request to have a leading slash.
Windows clients send the leading slash, so we should too.
(This used to be commit fc5b6e4bd8)
2007-10-10 11:39:48 -05:00
Derrell Lipman
40665edf5e r18011: Should fix bug 3835.
Jeremy: requires your eyes...

If the remote connection timed out while cli_list() was retrieving its list of
files, the error was not returned to the user, e.g. via smbc_opendir(), so the
user didn't have a way to know to set the timeout longer and try again.  This
problem would occur when a very large directory is being read with a too-small
timeout on the cli.

Jeremy, although there were a couple of areas that needed to be handled, I
needed to make one change that you should bless, in libsmb/clientgen.c.  It
was setting

  cli->smb_rw_error = smb_read_error;

but smb_read_error is zero, so this had no effect.  I'm now doing

  cli->smb_rw_error = READ_TIMEOUT;

instead, and according to the OP, these (cumulative) changes (in a slightly
different form) solve the problem.

Please confirm this smb_rw_error change will have no other adverse effects
that you can see.

Derrell
(This used to be commit fa664b24b8)
2007-10-10 11:39:48 -05:00
Jeremy Allison
fea5d59b84 r18010: Ensure we don't timeout twice to the same
server in winbindd when it's down and listed
in the -ve connection cache. Fix memory leak,
reduce timeout for cldap calls - minimum 3 secs.
Jeremy.
(This used to be commit 10b32cb6de)
2007-10-10 11:39:48 -05:00
Derrell Lipman
5e44fc4cd4 r18009: Fixes bug 4026.
This completes the work Jeremy began last week, disambiguating the meaning of
c_time.  (In POSIX terminology, c_time means "status Change time", not "create
time".)  All uses of c_time, a_time and m_time have now been replaced with
change_time, access_time, and write_time, and when creation time is intended,
create_time is used.

Additionally, the capability of setting and retrieving the create time have
been added to the smbc_setxattr() and smbc_getxattr() functions.  An example
of setting all four times can be seen with the program

  examples/libsmbclient/testacl

with the following command line similar to:

  testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt'

The -f option turns on the new mode which uses full time names in the
attribute specification (e.g. ACCESS_TIME vs A_TIME).
(This used to be commit 8e119b64f1)
2007-10-10 11:39:47 -05:00
Volker Lendecke
b7a5e3de1e r18008: Ok, same fix as before. But this time also allocate the session key. This had
worked in one test, no idea what memory I've overwritten that time. This time
it survives the unpatched w2k password change.

Volker
(This used to be commit bf7bf8e4e9)
2007-10-10 11:39:47 -05:00
Jeremy Allison
380c4183ee r18007: Ensure we don't namecache KDC entries with port 88
as a generic DC (that should be the LDAP port).
Jeremy.
(This used to be commit f16b41c3c9)
2007-10-10 11:39:47 -05:00
Jeremy Allison
0f1bc28744 r18006: Actually a smaller change than it looks. Leverage
the get_dc_list code to get the _kerberos. names
for site support. This way we don't depend on one
KDC to do ticket refresh. Even though we know it's
up when we add it, it may go down when we're trying
to refresh.
Jeremy.
(This used to be commit 77fe2a3d74)
2007-10-10 11:39:47 -05:00
Volker Lendecke
bd5fca847a r18005: The ntlmssp fix is not correct yet, working on it
(This used to be commit 3e4da5541c)
2007-10-10 11:39:47 -05:00
Jeremy Allison
d0bbe3751a r18004: If you're writing out a krb5.conf, at least
get the syntax right... :-).
Jeremy.
(This used to be commit ecca467e46)
2007-10-10 11:39:46 -05:00
Jeremy Allison
b05c81a184 r18003: Creating a directory and getting EEXIST isn't an error.
Jeremy.
(This used to be commit 515f86167b)
2007-10-10 11:39:46 -05:00
Jeremy Allison
0a847b4111 r18002: Improved debug.
Jeremy.
(This used to be commit 5f84c8c815)
2007-10-10 11:39:46 -05:00
Jeremy Allison
d31ee84d88 r18001: Proper error reporting on write/close fail.
Jeremy.
(This used to be commit ba311ac4ea)
2007-10-10 11:39:46 -05:00
Jeremy Allison
e05728b669 r18000: Get nelem/size args right for x_fwrite.
Jeremy.
(This used to be commit f1c5409b9f)
2007-10-10 11:39:46 -05:00
Jeremy Allison
1bd715d915 r17999: No need to prevent others from reading. Use 755 instead
of 700, and 644 instead of 600. Reading might help
debugging.
Jeremy.
(This used to be commit 99f100cfec)
2007-10-10 11:39:46 -05:00
Jeremy Allison
d62c3cff51 r17997: Ensure lockdir exists for winbindd. Store tmp
krb5.conf files under lockdir, not privatedir.
Jeremy.
(This used to be commit c59eff3e53)
2007-10-10 11:39:46 -05:00
Jeremy Allison
ef92f91cd7 r17996: Don't talloc free the memory then reference it. Doh !
Jeremy.
(This used to be commit 188eb9794d)
2007-10-10 11:39:45 -05:00
Jeremy Allison
fc6bce6d9c r17995: Ensure we create the domain-specific krb5 files in a
separate directory.
Jeremy.
(This used to be commit 541594153b)
2007-10-10 11:39:45 -05:00
Jeremy Allison
0c9ca3fe19 r17994: Add debugs that showed me why my site code wasn't
working right. Don't update the server site when we
have a client one...
Jeremy.
(This used to be commit 7acbcf9a6c)
2007-10-10 11:39:45 -05:00
Jeremy Allison
56fc287080 r17984: Ensure we never indirect a null opt_username if it wasn't
specified.
Jeremy.
(This used to be commit 5d9bb91ab7)
2007-10-10 11:39:45 -05:00
Jeremy Allison
f5cc2b4807 r17981: Hmmm. Don't break helper functions that don't need
the username by forcing it to be specified. Still
split out domain \ user for the ones that do use
it.
Jeremy.
(This used to be commit c097e10739)
2007-10-10 11:39:45 -05:00