Gerald Carter [Thu, 13 Oct 2005 02:01:31 +0000 (02:01 +0000)]
r10949: don't forget to include the [u]mount.cifs man pages
Gerald Carter [Wed, 12 Oct 2005 21:34:47 +0000 (21:34 +0000)]
r10942: make sure to include umount.cifs and to fix a typo in the install path
Gerald Carter [Wed, 12 Oct 2005 20:30:58 +0000 (20:30 +0000)]
r10937: typo in spec file
Gerald Carter [Wed, 12 Oct 2005 20:00:48 +0000 (20:00 +0000)]
r10932: include mount.cifs in Fedora spec file (based on patch from smk_va@yahoo.com)
Gerald Carter [Wed, 12 Oct 2005 17:18:01 +0000 (17:18 +0000)]
r10929: tagging release
Gerald Carter [Wed, 12 Oct 2005 17:15:26 +0000 (17:15 +0000)]
r10928: final touches on release notes:
Gerald Carter [Wed, 12 Oct 2005 16:49:10 +0000 (16:49 +0000)]
r10926: merging quota fixes from 3.0
Stefan Metzmacher [Wed, 12 Oct 2005 14:58:59 +0000 (14:58 +0000)]
r10925: r13687@SERNOX (orig r10924): metze | 2005-10-12 16:58:14 +0200
we don't need this line twice
metze
Stefan Metzmacher [Wed, 12 Oct 2005 14:52:34 +0000 (14:52 +0000)]
r10923: fix the build becuse of conflicts with main SAMBA_4_0 tree
metze
Stefan Metzmacher [Wed, 12 Oct 2005 14:35:12 +0000 (14:35 +0000)]
r10922: r13657@SERNOX (orig r10912): tridge | 2005-10-12 08:03:28 +0200
added a test for supporting batch oplock upgrades
r13658@SERNOX (orig r10913): tridge | 2005-10-12 08:10:23 +0200
This patch isn't as big as it looks ...
most of the changes are fixes to make all the ldb code compile without
warnings on gcc4. Unfortunately That required a lot of casts :-(
I have also added the start of an 'operational' module, which will
replace the timestamp module, plus add support for some other
operational attributes
In ldb_msg_*() I added some new utility functions to make the
operational module sane, and remove the 'ldb' argument from the
ldb_msg_add_*() functions. That argument was only needed back in the
early days of ldb when we didn't use the hierarchical talloc and thus
needed a place to get the allocation function from. Now its just a
pain to pass around everywhere.
Also added a ldb_debug_set() function that calls ldb_debug() plus sets
the result using ldb_set_errstring(). That saves on some awkward
coding in a few places.
r13659@SERNOX (orig r10914): tridge | 2005-10-12 08:30:47 +0200
moved the ldap time string functions into ldb so they can be used by
the time attribute handling functions
r13660@SERNOX (orig r10915): tridge | 2005-10-12 09:54:15 +0200
added a standard attribute handler for a ldap UTC time string
r13661@SERNOX (orig r10916): tridge | 2005-10-12 09:57:39 +0200
- finished the 'operational' ldb module
- removed the timestamps module, replacing it with the operational module
- added a ldb_msg_copy_shallow() function which should be used when a module
wants to add new elements to a message on add/modify. This is needed
because the caller might be using a constant structure, or may want to
re-use the structure again
- enabled the UTC time attribute syntaxes in the operational module
r13662@SERNOX (orig r10917): tridge | 2005-10-12 10:11:45 +0200
copy the element name in a ldb_msg_rename_attr() and ldb_msg_copy_attr() to ensure
that callers (like the ldap server) can talloc_steal the name
r13663@SERNOX (orig r10918): tridge | 2005-10-12 10:51:12 +0200
- fixed standalone ldb build
- added note about allowedAttributesEffective (will be needed for mmc)
- fixed some more ldb warnings
r13664@SERNOX (orig r10919): tridge | 2005-10-12 10:53:42 +0200
fixed the ldb test for the new operational module
r13665@SERNOX (orig r10920): tridge | 2005-10-12 13:04:01 +0200
in case of a accept() failure just failing and trying again is no
good, as it is probably a resource constraint, so if we just try again
we will spin (as the incoming socket will still be readable). Using a
sleep(1) solves this by throtting smbd until the resource constraint
goes away.
if the resource constraint doesn't go away, then at least smbd won't
be spinning chewing cpu
Gerald Carter [Tue, 11 Oct 2005 16:14:00 +0000 (16:14 +0000)]
r10906: updating release notes
Gerald Carter [Tue, 11 Oct 2005 16:12:48 +0000 (16:12 +0000)]
r10905: build patches from Marc Balmer <marc@msys.ch> when builddir!=srcdir
Stefan Metzmacher [Tue, 11 Oct 2005 15:21:00 +0000 (15:21 +0000)]
r10903: r13620@SERNOX (orig r10891): tridge | 2005-10-11 07:01:52 +0200
I noticed that the secrets.db was not being backed up on my system due
to msync/mmap not changing the mtime of the file. This patch ensures
that for successfully completed transactions we update the mtime.
I don't do this on all tdb writes as its too expensive, but doing it
just on transactions is bearable, as those cost quite a lot anyway.
r13621@SERNOX (orig r10892): tridge | 2005-10-11 08:21:07 +0200
- improved the handling of the special distinguishedName attribute
- ensure we don't add attributes twice, should a user ask for the
attribute twice. Do this in such a way that we don't become O(n^2)
- removed some unused code
r13622@SERNOX (orig r10893): tridge | 2005-10-11 12:53:28 +0200
add configure test for utime (needed for the previous utime patch)
r13623@SERNOX (orig r10894): tridge | 2005-10-11 13:00:16 +0200
make the handling of dn/distinguishedName much closer to real
ldap. Also ensure we put a objectclass on our private ldb's, so they
have some chance of being stored in ldap if you want to
r13624@SERNOX (orig r10895): tridge | 2005-10-11 14:25:55 +0200
allow 'dn=string' searches to work again. Windows doesn't allow these,
but they are so very useful for things like dn=@MODULES that I think
its worth supporting them
r13625@SERNOX (orig r10896): tridge | 2005-10-11 14:30:34 +0200
added a strcasestr() replacement function
r13626@SERNOX (orig r10897): tridge | 2005-10-11 14:31:31 +0200
added in a hackish ldb proxy module that I am using to experiment with
mmc management support
Gerald Carter [Tue, 11 Oct 2005 14:56:44 +0000 (14:56 +0000)]
r10902: adding quota fix from Alex Deiter
Gerald Carter [Tue, 11 Oct 2005 14:38:04 +0000 (14:38 +0000)]
r10900: updating relnotes with commit log
Gerald Carter [Tue, 11 Oct 2005 14:19:06 +0000 (14:19 +0000)]
r10899: merges for 3.0.20b
svn merge -r10819:10888 $SVNURL/branches/SAMBA_3_0
svn merge -r10730:10744 $SVNURL/branches/SAMBA_3_0
svn merge -r10676:10688 $SVNURL/branches/SAMBA_3_0
Start updating the WHATSNEW and setting the version
Gerald Carter [Tue, 11 Oct 2005 14:02:40 +0000 (14:02 +0000)]
r10898: creating tmp branch for the 3.0.20b release
Stefan Metzmacher [Tue, 11 Oct 2005 04:43:44 +0000 (04:43 +0000)]
r10890: r13601@SERNOX (orig r10878): vlendec | 2005-10-10 21:57:55 +0200
Reply to some comments by tridge and metze:
* rename the composite helper functions from comp_* to composite_*
* Move the lsa initialization to wb_connect_lsa.c
* Equip smb_composite_connect with a fallback_to_anonymous
The latter two simplify wb_init_domain.c quite a bit.
Volker
r13602@SERNOX (orig r10879): jra | 2005-10-10 22:03:34 +0200
Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Samba3 code. Jelmer please check !
Jeremy.
r13603@SERNOX (orig r10880): jra | 2005-10-10 22:05:29 +0200
Missed terminating ';', sorry.
Jeremy.
r13618@SERNOX (orig r10889): tridge | 2005-10-11 06:34:15 +0200
make searches for dn's less of a special case, and much faster when
part of more complex expressions
Simo Sorce [Mon, 10 Oct 2005 19:53:20 +0000 (19:53 +0000)]
r10877: merge from main tree
Stefan Metzmacher [Mon, 10 Oct 2005 15:12:56 +0000 (15:12 +0000)]
r10875: r13572@SERNOX (orig r10865): metze | 2005-10-10 11:33:06 +0200
merge branches/SOC/SAMBA_4_0 into main the main SAMBA_4_0 tree
metze
r8017@SERNOX: metze | 2005-06-30 13:44:23 +0200
create the SAMBA_4_0 branch for the Summer Of Code Project
metze
r8730@SERNOX: brad | 2005-07-24 03:09:48 +0200
Branching Samba 4
r8731@SERNOX: brad | 2005-07-24 06:39:00 +0200
added 'make installmisc' to howto.txt
added existing 'compression' option to level8 drsuapi torture test
added new 'neighbour_writeable' option to level8 drsuapi torture test
r8732@SERNOX: brad | 2005-07-24 06:42:38 +0200
added metze's dssync patch as source/torture/rpc/dssync.c
r8739@SERNOX: brad | 2005-07-25 00:24:46 +0200
added a test called RPC-DSSYNC to config.mk
hacking at dssync.c in an attempt to make it compile
r8754@SERNOX: brad | 2005-07-25 15:19:21 +0200
Changing dssync.c to use ldb routines for accessing ldap rather than raw ldap calls.
r8765@SERNOX: brad | 2005-07-26 03:35:38 +0200
more ldb changes to test_CompleteJoin(), it mostly kind of almost works now!
r8766@SERNOX: brad | 2005-07-26 03:56:00 +0200
Trying to fix the crazy nesting in the branch
r8769@SERNOX: brad | 2005-07-26 04:48:29 +0200
merging latest changes
r8770@SERNOX: brad | 2005-07-26 04:53:43 +0200
removing nested branch
r8793@SERNOX: jerry | 2005-07-27 05:04:57 +0200
merging on of Brad missing changes from the nested 4.0 branch debacle
r8794@SERNOX: jerry | 2005-07-27 05:14:42 +0200
syncing up with the main 4_0 branch for Brad
r8842@SERNOX: brad | 2005-07-29 00:26:30 +0200
merging changes from branches/SAMBA_4_0
r8850@SERNOX: brad | 2005-07-29 21:07:57 +0200
Bringing my tree up to date
r8851@SERNOX: brad | 2005-07-30 00:48:04 +0200
making dssync.c more ldb-centric, reverted samlogon.c from rev. 8845 to get my branch to compile again.
r8856@SERNOX: brad | 2005-07-30 03:20:33 +0200
I think I have the ldb code down in test_CompleteJoin (not complete yet though)
r8860@SERNOX: brad | 2005-07-30 07:08:13 +0200
Changed comments to C style /**/ (thanks Richard), some more changes to test_CompleteJoin().
r8862@SERNOX: brad | 2005-07-31 04:45:32 +0200
Bringing the SOC/SAMBA_4_0 branch up to date.
r8863@SERNOX: brad | 2005-07-31 20:00:41 +0200
Updated some missing files from the branch
r8864@SERNOX: brad | 2005-07-31 20:25:50 +0200
Removing autogenerated files from branch
r8865@SERNOX: brad | 2005-07-31 20:43:58 +0200
last of the unneeded files in SOC/SAMBA_4_0
r9004@SERNOX: brad | 2005-08-03 18:51:23 +0200
r5214@buttercup: j0j0 | 2005-08-03 10:44:30 -0600
r@buttercup: j0j0 | 2005-08-02 22:54:13 -0600
creating a local branch of branches/SAMBA_4_0
r9013@SERNOX: brad | 2005-08-03 20:57:48 +0200
r5228@buttercup: j0j0 | 2005-08-03 13:00:11 -0600
Fixing differences between this branch and /branches/SAMBA_4_0
r9014@SERNOX: brad | 2005-08-03 21:18:05 +0200
r5231@buttercup: j0j0 | 2005-08-03 13:23:12 -0600
Updating config.mk so that smbtorture builds again
r9061@SERNOX: brad | 2005-08-04 18:17:36 +0200
r5249@buttercup: j0j0 | 2005-08-03 21:01:02 -0600
Start using libnet_Join() for DC join.
r9062@SERNOX: brad | 2005-08-04 18:17:47 +0200
r5250@buttercup: j0j0 | 2005-08-04 10:21:34 -0600
Some more work towards performing a dc join.
r9064@SERNOX: brad | 2005-08-04 18:53:51 +0200
r5253@buttercup: j0j0 | 2005-08-04 10:53:00 -0600
Fixed a bug (passing a TALLOC_CTX to libnet_context_init() )
r9069@SERNOX: brad | 2005-08-04 21:59:55 +0200
r5279@buttercup: j0j0 | 2005-08-04 14:04:55 -0600
Some more work on the domain join
r9117@SERNOX: brad | 2005-08-05 16:50:26 +0200
r5281@buttercup: j0j0 | 2005-08-05 08:55:58 -0600
Committing minor changes before merge
r9180@SERNOX: brad | 2005-08-07 17:25:25 +0200
r5314@buttercup: j0j0 | 2005-08-07 09:30:12 -0600
Reworked libnet_join to use two join levels, AUTOMATIC and SPECIFIED.
r9181@SERNOX: brad | 2005-08-07 17:25:36 +0200
r5315@buttercup: j0j0 | 2005-08-07 09:31:22 -0600
Working with libnet_Join(), code cleanup needed in the near future.
r9192@SERNOX: brad | 2005-08-07 21:40:22 +0200
r5373@buttercup: j0j0 | 2005-08-07 13:46:09 -0600
Some code cleanup to make things a little more readable.
r9249@SERNOX: brad | 2005-08-12 01:31:48 +0200
r5375@buttercup: j0j0 | 2005-08-11 17:38:44 -0600
Split libnet_JoinDomain() into libnet_JoinDomain() and libnet_JoinADSDomain().
r9256@SERNOX: brad | 2005-08-12 04:55:11 +0200
r5413@buttercup: j0j0 | 2005-08-11 21:02:27 -0600
Clean up libnet_JoinADSDomain() a little, added a comment to the test_join struct.
r9314@SERNOX: brad | 2005-08-16 03:53:20 +0200
r5436@buttercup: j0j0 | 2005-08-15 20:01:21 -0600
libnet_JoinDomain() should honour LIBNET_JOIN_TORTURE now.
torture_join_domain() should properly use libnet_JoinDomain().
dssync.c uses torture_join_domain() again.
r9351@SERNOX: brad | 2005-08-17 07:15:31 +0200
r5438@buttercup: j0j0 | 2005-08-16 23:23:58 -0600
Removed LIBNET_JOIN_TORTURE level, as it became unnecessary once libnet_Join_primary_domain() handled netbios names better.
Corrected libnet_JoinDomain() and libnet_JoinADSDomain().
r9352@SERNOX: brad | 2005-08-17 07:24:49 +0200
r5440@buttercup: j0j0 | 2005-08-16 23:33:25 -0600
Fixed a typo.
r9354@SERNOX: metze | 2005-08-17 10:28:25 +0200
remove object files from svn
metze
r9376@SERNOX: brad | 2005-08-18 05:15:48 +0200
r5476@buttercup: j0j0 | 2005-08-17 21:24:33 -0600
Proof that I shouldn't code when i'm tired (silly bugfixes).
r9405@SERNOX: brad | 2005-08-19 22:50:10 +0200
r5500@buttercup: j0j0 | 2005-08-19 14:56:25 -0600
Get dssync.c compiling again after merge (ldb_dn changes from rev. 9391).
r9407@SERNOX: brad | 2005-08-20 03:22:42 +0200
r5502@buttercup: j0j0 | 2005-08-19 19:28:22 -0600
libnet/libnet_join.c
Some more fixes so ldb uses ldb_dn's.
torture/rpc/dssync.c
Some debugging printf()'s.
ldb_dn fixes.
torture/rpc/testjoin.c
Change torture_join_domain() to use libnet_JoinDomain() rather than libnet_Join().
Some more debugging statements.
I'm not sure why, but GUID_all_zero(user_handle.uuid) is returning true in torture_leave_domain() when called it from torture_destroy_context() in torture/rpc/dssync.c.
That's what i'm working out now.
r9427@SERNOX: brad | 2005-08-20 18:38:29 +0200
r5504@buttercup: j0j0 | 2005-08-20 10:44:52 -0600
Some bugfixes.
Removed a bunch of debugging code.
torture_leave_domain() works again! not 100% perfect yet though...
r9428@SERNOX: brad | 2005-08-20 19:09:26 +0200
r5506@buttercup: j0j0 | 2005-08-20 11:15:54 -0600
Restructure torture_join_domain() so that it joins itself, removes itself, and joins itself to the domain again to ensure that its account information is all current and as expected.
r9452@SERNOX: brad | 2005-08-21 19:33:51 +0200
r5508@buttercup: j0j0 | 2005-08-21 11:40:36 -0600
Bugfixes, trying to get things straight between contexts.
r9467@SERNOX: brad | 2005-08-22 04:00:48 +0200
r5510@buttercup: j0j0 | 2005-08-21 20:06:55 -0600
Another round of bugfixing.
r9521@SERNOX: brad | 2005-08-23 15:26:44 +0200
r5596@buttercup: j0j0 | 2005-08-23 07:33:06 -0600
Merging changes
r9524@SERNOX: metze | 2005-08-23 16:09:42 +0200
- fix the build caused by changes in the main samba4 tree,
- add an option "dssync:german=yes" to allow me to run against my german w2k3 server
this should be replaces by CLDAP calls to get the Default-First-Site-Name dynamicly
- remove some temporary comments, as DsAddEntry works now
metze
r9528@SERNOX: metze | 2005-08-23 18:22:22 +0200
the RPC-DSSYNC test is now able to fetch the whole tree,
including the unicodePwd, ntPwdHistory fields
metze
r9559@SERNOX: brad | 2005-08-24 04:11:47 +0200
r5612@buttercup: j0j0 | 2005-08-23 20:19:12 -0600
Some fixes around using talloc in a hierarchical fashion.
Still not right, but better.
r9564@SERNOX: brad | 2005-08-24 05:43:11 +0200
r5614@buttercup: j0j0 | 2005-08-23 21:50:38 -0600
Gave libnet_JoinADSDomain() its own tmp_ctx rather than passing it from libnet_JoinDomain() as a parameter (yuk).
As a side effect, it proves that my bug lies in libnet_JoinDomain(), not libnet_JoinADSDomain().
r9565@SERNOX: brad | 2005-08-24 06:09:46 +0200
r5616@buttercup: j0j0 | 2005-08-23 22:17:12 -0600
Small fix, if r->out.error_string and r2->samr_handle.out.error_string weren't set to NULL, torture_join_domain() would segfault on the second join.
r9630@SERNOX: brad | 2005-08-26 06:42:50 +0200
Commented out the parts of the dssync test which perform the dc join and create/remove associated ldap entries.
Commented out the test for the 'german' dssync option, because now we detect the Site-Name using CLDAP. If cldap_netlogon() does not return ok, the code defaults to 'Default-First-Site-Name'.
r9670@SERNOX: brad | 2005-08-27 02:30:11 +0200
Added a patch from metze.
To showcase what i've learned today, i've created two new parameters which can be set at runtime, drsuapi:last_usn and drsuapi:partition.
drsuapi:last_usn takes an integer representing the USN of the last recieved replication update for a particular partition (uses the domain dn if drsuapi:parition isn't set).
That value is passed in the DsGetNCChanges() call so that only info which has been updated since that point in time is returned. If this option is not set, 0 is used by default, and all updates for that partition are returned.
drsuapi:partition takes a string dn and uses that as the name of the AD partition to replicate.
Some debugging output was also added.
r9723@SERNOX: brad | 2005-08-29 01:07:51 +0200
Added some copyright notices.
Changed some things in net_join.c to try and figure out why 'net join <domain> bdc' segfaults.
It occurs when the last talloc_free() happens, so i'm sure it's something to do with the memory fiddling i'm doing in libnet_join.
Added some drsuapi attribute ids that I figured out today.
I put some (many, dry) notes together while doing that, so i'll try to put them up on a blog at samba.org a little later tonight.
r9740@SERNOX: metze | 2005-08-29 16:58:03 +0200
fix up the DsGetNCchanges loop,
and remove misleading comments
metze
r9743@SERNOX: metze | 2005-08-29 17:26:45 +0200
make the logic a bit clearer
metze
r9815@SERNOX: brad | 2005-08-31 02:36:21 +0200
Added cldap_netlogon() AD Site-Name lookup into libnet/libnet_join.c.
Bugfixing rampage in libnet_join.c to resolve misunderstanding of talloc_steal().
libnet_join now creates the CN=<netbios name>,CN=Servers,CN=<site name>,CN=Sites,CN=Configuration,<domain dn> container on a dc join.
r9858@SERNOX: brad | 2005-09-01 03:17:17 +0200
Removed extraneous NDR_ALL subsystem requirement from torture/config.mk.
Added lots of error checking as per metze's advice.
Removed commented out code.
More bug chasing.
r9863@SERNOX: brad | 2005-09-01 05:53:19 +0200
Cleaned up dssync.c, removed the unneeded DsCrackNames() call, removed DC join/leave related stuff.
It no longer looks like my house does!
r9887@SERNOX: metze | 2005-09-01 11:34:03 +0200
- fix dssync:highest_usn parameter handling
- ask for LINKED_ATTRIBUTE replication
metze
r9891@SERNOX: metze | 2005-09-01 14:13:18 +0200
make the code more readable, and fix a few bugs
metze
r9911@SERNOX: brad | 2005-09-01 20:36:27 +0200
Bugfixes in libnet_join.c.
Cleaned up comments.
Added domain_dn_str and account_dn_str to struct libnet_JoinDomain.
Removed struct dcerpc_pipe *samr_pipe and struct policy_handle user_handle from struct libnet_Join.
r9920@SERNOX: brad | 2005-09-01 23:34:13 +0200
Added disclaimer (I can't seem to get libnet_JoinDomain() to keep the samr_pipe and u_handle open past the function call, grrrr....).
r9921@SERNOX: brad | 2005-09-01 23:37:54 +0200
Added copyright statement.
Cleaned up unneeded variables from torture_join_domain().
r9932@SERNOX: brad | 2005-09-02 01:49:42 +0200
Really rushed project notes.
r10841@SERNOX: metze | 2005-10-08 20:01:45 +0200
remove diff to main SAMBA_4_0 branch
metze
r10862@SERNOX: metze | 2005-10-10 10:31:52 +0200
remove the differences between SAMBA_4_0 and SOC/SAMBA_4_0
metze
r10863@SERNOX: metze | 2005-10-10 10:34:26 +0200
fix the build
metze
r10864@SERNOX: metze | 2005-10-10 11:10:08 +0200
remove README file to reduce, diffs to main SAMBA_4_0 branch:
metze
README:
This project was centered around adding a torture test to Samba 4, which used drsuapi_DsGetNCChanges() to retrieve the contents of an Active Directory in the same manner as an Active Directory DC replication event.
As the project unfolded, I also applied some changes to the functionality of the libnet library related to joining a machine account to a domain.
One of the first things that I implemented in this project was a 'neighbour_writeable' option for the RPC-DRSUAPI torture test. The command line to execute this torture test is as follows:
smbtorture --option=drsuapi:neighbour_writeable=True -W <domain name> -U <admin username>%<password> ncacn_ip_tcp:<domain controller dns name> RPC-DRSUAPI
This option provides us with runtime control over the DRSUAPI_DS_REPLICA_NEIGHBOUR_WRITEABLE flag in the struct drsuapi_DsGetNCChanges.in.req.req<level>.replica_flags, allowing us to easily test for differences in the behaviour of AD replication with the switch on or off.
In the course of the project, I also implemented two more flags for the RPC-DSSYNC test. dssync:last_usn takes an integer representing the USN (Universal Serial Number) of the last recieved replication update for a particular partition (uses the domain DN if drsuapi:parition isn't set). That value is passed in the DsGetNCChanges() call so that only info which has been updated since that point in time is returned. If this option is not set, 0 is used by default, and all updates for that partition are returned. dssync:partition takes a string DN and uses that as the name of the AD partition to replicate.
Based initially on a patch provided to me by one of my mentors, Stephan (metze) Metzmacher, the RPC-DSSYNC test was implemented for this project. Initially functionality was included to perform a DC join prior to initiating replication, but the code was removed when it was realized that replication could indeed take place without being a member of the domain in any way. It has been recently suggested that we may need a DC join after all to get all of the information we may want from the AD replication. This is probably best added using a torture_join_domain() call once the libnet code is able to keep the user policy handle and SAMR RPC pipe open.
The DC join code was taken out of the RPC-DSSYNC and implemented for the most part in the libnet libraries. To test this, the RPC-NETLOGON test was modified to perform a domain join, leave and rejoin. Currently, the test has a fault in that it is unable to leave the domain using the same SAMR RPC pipe and user_policy information as was used for the first join. This is because I was unable to get the code working properly in libnet to provide that functionality. Currently missing from the DC join in libnet is the code to create the CN=NTDS Settings,CN=<DC NETBIOS NAME>,CN=<Site-Name>,CN=Sites,CN=Configuration,<domain DN> container using the dcerpc_drsuapi_DsAddEntry() call. I did not want to implement this functionality in libnet while there were still problems with the code.
I also provided the ability in libnet and the RPC-DSSYNC test to look up the proper site name using the cldap library.
In my investigations, I was unable to find out any information regarding the UnicodePwd attribute, except that the same password is represented differently for two different users in the same directory.
I was also able to resolve and confirm the meaning of some DRSUAPI_ATTRIBUTE ID's.
DRSUAPI_OBJECTCLASS_domain (0xA0042)
DRSUAPI_OBJECTCLASS_domainDNS (0xA0043)
wellKnownObjects (0x9026A)
fSMORoleOwner (0x90171)
name or dc (0x90001)
whenCreated (0x20002)
instanceType (0x20001)
gPLink (0x9037B)
These were added to the IDL for drsuapi (source/librpc/idl/drsuapi.idl).
I would like to thank everyone on the Samba team who worked with me and assisted me with this project, specifically all the work done by Stephan Metzmacher, Andrew Bartlett and Jerry Carter. Working on this project with the Samba team really has been a life changing experience, as corny as that sounds.
I've realized that I was born to be a systems developer, and it has helped confirm in my mind that Open Source (specifically Samba) development is exactly what i've been missing!
I would also like to take this opportunity to thank Chris Dibona and Google for the amazing opportunity. I don't know if I would have taken the leap in other circumstances.
I know these notes sound a little rushed, but it is 23:55 after all! :)
r13574@SERNOX (orig r10867): metze | 2005-10-10 13:21:02 +0200
add WERR_UNKNOWN_REVISION errorcode
metze
r13575@SERNOX (orig r10868): metze | 2005-10-10 13:47:23 +0200
make flag(NDR_PAHEX) possible to use and show the union level in hex
metze
r13576@SERNOX (orig r10869): metze | 2005-10-10 14:10:10 +0200
add dummy functions and dummy parsing of XPRESS decompression,
this is the compression algorithm used by w2k3 for DsGetNCChanges().
This algorithm isn't known yet, but it seems to be some sort of Lempel-Ziv
algorithm.
metze
r13577@SERNOX (orig r10870): metze | 2005-10-10 14:14:29 +0200
decompress DsGetNCChangesCtr7 replies, that uses type 2 (MSZIP)
compression
metze
r13578@SERNOX (orig r10871): metze | 2005-10-10 14:31:05 +0200
make xpress compression choosable, by --option="dssync:xpress=yes",
default is to not use it, as it's currently not supported
metze
r13579@SERNOX (orig r10872): metze | 2005-10-10 15:25:11 +0200
fix the length of the dummy XPRESS decompressed buffer
metze
r13580@SERNOX (orig r10873): metze | 2005-10-10 16:10:37 +0200
check the complete payload header
metze
Volker Lendecke [Mon, 10 Oct 2005 15:03:52 +0000 (15:03 +0000)]
r10874: Merge trunk up to r10873
Stefan Metzmacher [Mon, 10 Oct 2005 06:37:57 +0000 (06:37 +0000)]
r10860: r13507@SERNOX (orig r10836): metze | 2005-10-08 18:35:33 +0200
giving NT_STATUS_NO_MEMORY, when the connection fails wasn't a good idea...
metze
r13509@SERNOX (orig r10838): vlendec | 2005-10-08 19:45:27 +0200
Get us an schannel'ed netlogon pipe.
Abartlet, now I think I need some assistance to implement the pam auth & crap
auth calls.
Volker
r13510@SERNOX (orig r10839): jelmer | 2005-10-08 19:55:28 +0200
Add some [ref] (required for ethereal and Samba3 parser generators)
r13511@SERNOX (orig r10840): jelmer | 2005-10-08 19:55:56 +0200
Fix indentation
r13513@SERNOX (orig r10842): jelmer | 2005-10-08 22:19:35 +0200
Fix some issues with [out] unions that have a discriminator that is only
[in]
r13514@SERNOX (orig r10843): vlendec | 2005-10-09 10:32:06 +0200
Reformatting
r13515@SERNOX (orig r10844): abartlet | 2005-10-09 14:13:05 +0200
Add challenge-response authentication to Samba4's winbindd for VL.
Plaintext should be simple, but I'm going to do some infrustructure
work first.
Andrew Bartlett
r13516@SERNOX (orig r10845): abartlet | 2005-10-09 14:38:23 +0200
Add new function to decrypt the session keys in samlogon responses.
Andrew Bartlett
r13517@SERNOX (orig r10846): vlendec | 2005-10-09 14:50:35 +0200
Create a "wbsrv_domain", change wb_finddcs to the style of the rest of the
async helpers.
Volker
r13518@SERNOX (orig r10847): abartlet | 2005-10-09 15:03:52 +0200
Fix up new 'decrypt samlogon reply' routine to be more robust, and use
it in the RPC-SAMLOGON test.
Andrew Bartlett
r13519@SERNOX (orig r10848): jelmer | 2005-10-09 15:40:55 +0200
Fix warning
r13520@SERNOX (orig r10849): jelmer | 2005-10-09 15:53:48 +0200
Fix handling of [charset] for strings with fixed or "inline" size
r13523@SERNOX (orig r10852): vlendec | 2005-10-09 22:32:24 +0200
Continuation-based programming can become a bit spaghetti...
Initialize a domain structure properly. Excerpt from wb_init_domain.c:
/*
* Initialize a domain:
*
* - With schannel credentials, try to open the SMB connection with the machine
* creds. Fall back to anonymous.
*
* - If we have schannel creds, do the auth2 and open the schannel'ed netlogon
* pipe.
*
* - Open LSA. If we have machine creds, try to open with ntlmssp. Fall back
* to schannel and then to anon bind.
*
* - With queryinfopolicy, verify that we're talking to the right domain
*
* A bit complex, but with all the combinations I think it's the best we can
* get. NT4, W2k3SP1 and W2k all have different combinations, but in the end we
* have a signed&sealed lsa connection on all of them.
*
* Is this overkill? In particular the authenticated SMB connection seems a
* bit overkill, given that we do schannel for netlogon and ntlmssp for
* lsa later on w2k3, the others don't do this anyway.
*/
Thanks to Jeremy for his detective work, and to the Samba4 team for providing
such a great infrastructure.
Next step is to connect to SAM. Do it via LDAP if we can, fall back to samr
with all we have.
Volker
r13524@SERNOX (orig r10853): vlendec | 2005-10-09 22:57:49 +0200
Convert wbinfo -n to properly init the domain.
Volker
r13525@SERNOX (orig r10854): jelmer | 2005-10-09 23:30:41 +0200
talloc_get_type() can return NULL..
r13526@SERNOX (orig r10855): abartlet | 2005-10-10 00:19:20 +0200
Put the domain SID in secrets.ldb by default, and add http as a
default SPN alias.
Andrew Bartlett
r13527@SERNOX (orig r10856): tridge | 2005-10-10 01:29:26 +0200
we need aclocal.m4 in ldb for standalone configure
r13530@SERNOX (orig r10859): vlendec | 2005-10-10 08:18:17 +0200
Make the flow a bit clearer
Simo Sorce [Mon, 10 Oct 2005 01:35:26 +0000 (01:35 +0000)]
r10858: this should make samba4 happy with the new ldb api
the tree compiles but unfortunately my make test fails
on messaging_int()
so this is untested (ldb's make test works so I'm
confident this is ok anyway)
Simo
Simo Sorce [Mon, 10 Oct 2005 00:36:11 +0000 (00:36 +0000)]
r10857: change ldb to use the new ldb_request interface internally
this patch passes ldb's make test
Simo Sorce [Sun, 9 Oct 2005 15:46:41 +0000 (15:46 +0000)]
r10851: add a new branch to work experiment ldap controls
Simo Sorce [Sun, 9 Oct 2005 15:21:35 +0000 (15:21 +0000)]
r10850: remove old branch ldbPlugins
Jelmer Vernooij [Sun, 9 Oct 2005 13:53:48 +0000 (13:53 +0000)]
r10849: Fix handling of [charset] for strings with fixed or "inline" size
Jelmer Vernooij [Sun, 9 Oct 2005 13:40:55 +0000 (13:40 +0000)]
r10848: Fix warning
Andrew Bartlett [Sun, 9 Oct 2005 13:03:52 +0000 (13:03 +0000)]
r10847: Fix up new 'decrypt samlogon reply' routine to be more robust, and use
it in the RPC-SAMLOGON test.
Andrew Bartlett
Volker Lendecke [Sun, 9 Oct 2005 12:50:35 +0000 (12:50 +0000)]
r10846: Create a "wbsrv_domain", change wb_finddcs to the style of the rest of the
async helpers.
Volker
Andrew Bartlett [Sun, 9 Oct 2005 12:38:23 +0000 (12:38 +0000)]
r10845: Add new function to decrypt the session keys in samlogon responses.
Andrew Bartlett
Andrew Bartlett [Sun, 9 Oct 2005 12:13:05 +0000 (12:13 +0000)]
r10844: Add challenge-response authentication to Samba4's winbindd for VL.
Plaintext should be simple, but I'm going to do some infrustructure
work first.
Andrew Bartlett
Volker Lendecke [Sun, 9 Oct 2005 08:32:06 +0000 (08:32 +0000)]
r10843: Reformatting
Jelmer Vernooij [Sat, 8 Oct 2005 20:19:35 +0000 (20:19 +0000)]
r10842: Fix some issues with [out] unions that have a discriminator that is only
[in]
Jelmer Vernooij [Sat, 8 Oct 2005 17:55:56 +0000 (17:55 +0000)]
r10840: Fix indentation
Jelmer Vernooij [Sat, 8 Oct 2005 17:55:28 +0000 (17:55 +0000)]
r10839: Add some [ref] (required for ethereal and Samba3 parser generators)
Volker Lendecke [Sat, 8 Oct 2005 17:45:27 +0000 (17:45 +0000)]
r10838: Get us an schannel'ed netlogon pipe.
Abartlet, now I think I need some assistance to implement the pam auth & crap
auth calls.
Volker
Stefan Metzmacher [Sat, 8 Oct 2005 16:35:33 +0000 (16:35 +0000)]
r10836: giving NT_STATUS_NO_MEMORY, when the connection fails wasn't a good idea...
metze
Stefan Metzmacher [Sat, 8 Oct 2005 16:30:35 +0000 (16:30 +0000)]
r10835: r13499@SERNOX (orig r10834): vlendec | 2005-10-08 18:25:00 +0200
Work in progress on winbind. With some helper routines the composite functions
start to look sane.
Question: What about providing all winbind commands as irpc interfaces that
are called from the samba3 compatibility layer? This way it would be easy for
other samba components to access its functionality. Does that make sense?
Volker
Volker Lendecke [Sat, 8 Oct 2005 16:25:00 +0000 (16:25 +0000)]
r10834: Work in progress on winbind. With some helper routines the composite functions
start to look sane.
Question: What about providing all winbind commands as irpc interfaces that
are called from the samba3 compatibility layer? This way it would be easy for
other samba components to access its functionality. Does that make sense?
Volker
Stefan Metzmacher [Sat, 8 Oct 2005 09:56:29 +0000 (09:56 +0000)]
r10833: r13497@SERNOX (orig r10832): metze | 2005-10-08 11:55:38 +0200
free the old session info
metze
Stefan Metzmacher [Sat, 8 Oct 2005 09:55:38 +0000 (09:55 +0000)]
r10832: free the old session info
metze
Stefan Metzmacher [Sat, 8 Oct 2005 08:14:57 +0000 (08:14 +0000)]
r10831: r13460@SERNOX (orig r10809): abartlet | 2005-10-07 12:06:44 +0200
Add struct decl
r13461@SERNOX (orig r10810): abartlet | 2005-10-07 13:31:45 +0200
This adds the hooks required to communicate the current user from the
authenticated session down into LDB. This associates a session info
structure with the open LDB, allowing a future ldb_ntacl module to
allow/deny operations on that basis.
Along the way, I cleaned up a few things, and added new helper functions
to assist. In particular the LSA pipe uses simpler queries for some of
the setup.
In ldap_server, I have removed the 'ldasrv:hacked' module, which hasn't
been worked on (other than making it continue to compile) since January,
and I think the features of this module are being put into ldb anyway.
I have also changed the partitions in ldap_server to be initialised
after the connection, with the private pointer used to associate the ldb
with the incoming session.
Andrew Bartlett
r13462@SERNOX (orig r10811): abartlet | 2005-10-07 13:37:38 +0200
Revert accidental commit, I still need to finish the displayName and
syntatical mapping work.
Andrew Bartlett
r13463@SERNOX (orig r10812): abartlet | 2005-10-07 13:50:46 +0200
Fix capitalisation (thanks tridge).
Andrew Bartlett
r13471@SERNOX (orig r10820): abartlet | 2005-10-07 14:30:46 +0200
Use talloc_get_type as suggested by tridge.
Andrew Bartlett
r13476@SERNOX (orig r10825): vlendec | 2005-10-07 21:08:51 +0200
Complete wbinfo -n
r13480@SERNOX (orig r10829): jelmer | 2005-10-08 02:33:19 +0200
Documentation updates
Update TODO
Some small fixes to the modules
r13495@SERNOX (orig r10830): metze | 2005-10-08 09:41:57 +0200
we should use the same name in all places:-)
metze
Stefan Metzmacher [Sat, 8 Oct 2005 07:41:57 +0000 (07:41 +0000)]
r10830: we should use the same name in all places:-)
metze
Jelmer Vernooij [Sat, 8 Oct 2005 00:33:19 +0000 (00:33 +0000)]
r10829: Documentation updates
Update TODO
Some small fixes to the modules
Volker Lendecke [Fri, 7 Oct 2005 19:08:51 +0000 (19:08 +0000)]
r10825: Complete wbinfo -n
Andrew Bartlett [Fri, 7 Oct 2005 12:30:46 +0000 (12:30 +0000)]
r10820: Use talloc_get_type as suggested by tridge.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 11:50:46 +0000 (11:50 +0000)]
r10812: Fix capitalisation (thanks tridge).
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 11:37:38 +0000 (11:37 +0000)]
r10811: Revert accidental commit, I still need to finish the displayName and
syntatical mapping work.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 11:31:45 +0000 (11:31 +0000)]
r10810: This adds the hooks required to communicate the current user from the
authenticated session down into LDB. This associates a session info
structure with the open LDB, allowing a future ldb_ntacl module to
allow/deny operations on that basis.
Along the way, I cleaned up a few things, and added new helper functions
to assist. In particular the LSA pipe uses simpler queries for some of
the setup.
In ldap_server, I have removed the 'ldasrv:hacked' module, which hasn't
been worked on (other than making it continue to compile) since January,
and I think the features of this module are being put into ldb anyway.
I have also changed the partitions in ldap_server to be initialised
after the connection, with the private pointer used to associate the ldb
with the incoming session.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 10:06:44 +0000 (10:06 +0000)]
r10809: Add struct decl
Stefan Metzmacher [Fri, 7 Oct 2005 09:56:39 +0000 (09:56 +0000)]
r10808: r13416@SERNOX (orig r10787): jelmer | 2005-10-06 22:07:53 +0200
Fix silly nodiscriminant-issue
r13417@SERNOX (orig r10788): jelmer | 2005-10-06 22:53:55 +0200
- Give unions a name
- Check initialisation function return value
r13419@SERNOX (orig r10790): tridge | 2005-10-07 02:40:29 +0200
allow updating of existing ldb opaque values (thanks to abartlet for
spotting this)
r13420@SERNOX (orig r10791): abartlet | 2005-10-07 03:01:44 +0200
Add copyright, fix comments (this isn't the timestamps module any more)
Andrew Bartlett
r13425@SERNOX (orig r10796): abartlet | 2005-10-07 04:07:25 +0200
Make getting an anonymous session info a utility function.
Andrew Bartlett
r13429@SERNOX (orig r10800): abartlet | 2005-10-07 06:00:11 +0200
Indent
r13432@SERNOX (orig r10803): abartlet | 2005-10-07 08:25:45 +0200
Remove a duplicate krbtgt test, and add a test looking for the
'support account'. This shows that we need to be searching on
displayName, and probably CN too.
Andrew Bartlett
r13433@SERNOX (orig r10804): abartlet | 2005-10-07 10:12:05 +0200
Move the DRSUAPI cracknames test into a seperate file, and collapse
the file size by converting it to a table-driven system.
Andrew Bartlett
r13434@SERNOX (orig r10805): abartlet | 2005-10-07 10:51:35 +0200
Move RPC-SAMLOGON to C99 initialisation
Andrew Bartlett
r13435@SERNOX (orig r10806): abartlet | 2005-10-07 10:56:01 +0200
Add missing file.
r13436@SERNOX (orig r10807): abartlet | 2005-10-07 11:19:59 +0200
Make the split-out files actually compile...
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 09:19:59 +0000 (09:19 +0000)]
r10807: Make the split-out files actually compile...
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 08:56:01 +0000 (08:56 +0000)]
r10806: Add missing file.
Andrew Bartlett [Fri, 7 Oct 2005 08:51:35 +0000 (08:51 +0000)]
r10805: Move RPC-SAMLOGON to C99 initialisation
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 08:12:05 +0000 (08:12 +0000)]
r10804: Move the DRSUAPI cracknames test into a seperate file, and collapse
the file size by converting it to a table-driven system.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 06:25:45 +0000 (06:25 +0000)]
r10803: Remove a duplicate krbtgt test, and add a test looking for the
'support account'. This shows that we need to be searching on
displayName, and probably CN too.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 04:00:11 +0000 (04:00 +0000)]
r10800: Indent
Andrew Bartlett [Fri, 7 Oct 2005 02:07:25 +0000 (02:07 +0000)]
r10796: Make getting an anonymous session info a utility function.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Oct 2005 01:01:44 +0000 (01:01 +0000)]
r10791: Add copyright, fix comments (this isn't the timestamps module any more)
Andrew Bartlett
Andrew Tridgell [Fri, 7 Oct 2005 00:40:29 +0000 (00:40 +0000)]
r10790: allow updating of existing ldb opaque values (thanks to abartlet for
spotting this)
Jelmer Vernooij [Thu, 6 Oct 2005 20:53:55 +0000 (20:53 +0000)]
r10788: - Give unions a name
- Check initialisation function return value
Jelmer Vernooij [Thu, 6 Oct 2005 20:07:53 +0000 (20:07 +0000)]
r10787: Fix silly nodiscriminant-issue
Stefan Metzmacher [Thu, 6 Oct 2005 15:23:46 +0000 (15:23 +0000)]
r10774: - use periodic push notifycation, this is just for now
as it needs to be configurable and and be triggered when the local database
has changes since the last notify
- I also need to work out how to decide if the partner supports
persistent connections and WREPL_REPL_INFORM* messages
metze
Stefan Metzmacher [Thu, 6 Oct 2005 15:18:49 +0000 (15:18 +0000)]
r10773: - add composite functions for push notification
metze
Stefan Metzmacher [Thu, 6 Oct 2005 15:13:51 +0000 (15:13 +0000)]
r10772: - make the connection code more generic to handle the pull cached connection,
push cached connection or given connections
- when we don't use a cached connection, disconnection when a pull_cycle is done
- fix the build and use the configured source ip
metze
Stefan Metzmacher [Thu, 6 Oct 2005 15:04:48 +0000 (15:04 +0000)]
r10771: add a function to create a wreplsrv_in_connection from a client connection
metze
Stefan Metzmacher [Thu, 6 Oct 2005 14:56:01 +0000 (14:56 +0000)]
r10770: - move the table filling to a seperate function, will be reused later
- fix the build, wrepl_nbt_name fixes
- remove state -> update_state
metze
Stefan Metzmacher [Thu, 6 Oct 2005 14:45:06 +0000 (14:45 +0000)]
r10769: r13393@SERNOX (orig r10768): metze | 2005-10-06 16:44:37 +0200
add a function to create a stream_connection from an already
existing socket connection, that's used for protocols
which switch the client/server roles inside a session
metze
Stefan Metzmacher [Thu, 6 Oct 2005 14:44:37 +0000 (14:44 +0000)]
r10768: add a function to create a stream_connection from an already
existing socket connection, that's used for protocols
which switch the client/server roles inside a session
metze
Stefan Metzmacher [Thu, 6 Oct 2005 14:38:42 +0000 (14:38 +0000)]
r10767: r13372@SERNOX (orig r10763): abartlet | 2005-10-06 12:29:28 +0200
PROOF of the single, easily understood cause of all of our schannel PAIN!
This test currently passes against Win2k3 SP0, but not SP1. The
problem was not a convoluted series of changes in policy handles, but
a simple rule that schannel logins would be regarded as ANONYMOUS not
SYSTEM.
Andrew Bartlett
r13373@SERNOX (orig r10764): abartlet | 2005-10-06 13:15:20 +0200
To match Win2k3 SP1, we need to set an anonymous user token for
schannel connections.
Test for Win2k3 SP1 behaviour in RPC-SCHANNEL.
Andrew Bartlett
r13374@SERNOX (orig r10765): jelmer | 2005-10-06 13:57:25 +0200
Actually use VALS() setting for enums
r13391@SERNOX (orig r10766): metze | 2005-10-06 16:38:07 +0200
- make it possible to mark a wrepl_request as send only,
used for WREPL_REPL_INFORM* messsages
- make it possible to close the connection after a request was send
used for WREPL_ASSOCIATION_STOP
- fix the torture test that tests the assoc context handling
between connections, you can issue a request and get the reply
on another connection, I think we should not implement that in our server
code, as I think it's a security hole, you can cause a windows server
to send the replies to someone another client, that doesn't wait for data,
and as there're no massage_id in the protocol the client would be confused
by a replies that doesn't belong to a query
metze
Stefan Metzmacher [Thu, 6 Oct 2005 14:38:07 +0000 (14:38 +0000)]
r10766: - make it possible to mark a wrepl_request as send only,
used for WREPL_REPL_INFORM* messsages
- make it possible to close the connection after a request was send
used for WREPL_ASSOCIATION_STOP
- fix the torture test that tests the assoc context handling
between connections, you can issue a request and get the reply
on another connection, I think we should not implement that in our server
code, as I think it's a security hole, you can cause a windows server
to send the replies to someone another client, that doesn't wait for data,
and as there're no massage_id in the protocol the client would be confused
by a replies that doesn't belong to a query
metze
Jelmer Vernooij [Thu, 6 Oct 2005 11:57:25 +0000 (11:57 +0000)]
r10765: Actually use VALS() setting for enums
Andrew Bartlett [Thu, 6 Oct 2005 11:15:20 +0000 (11:15 +0000)]
r10764: To match Win2k3 SP1, we need to set an anonymous user token for
schannel connections.
Test for Win2k3 SP1 behaviour in RPC-SCHANNEL.
Andrew Bartlett
Andrew Bartlett [Thu, 6 Oct 2005 10:29:28 +0000 (10:29 +0000)]
r10763: PROOF of the single, easily understood cause of all of our schannel PAIN!
This test currently passes against Win2k3 SP0, but not SP1. The
problem was not a convoluted series of changes in policy handles, but
a simple rule that schannel logins would be regarded as ANONYMOUS not
SYSTEM.
Andrew Bartlett
Stefan Metzmacher [Thu, 6 Oct 2005 07:36:29 +0000 (07:36 +0000)]
r10762: r13368@SERNOX (orig r10759): tridge | 2005-10-06 08:57:09 +0200
make modules easier to write by allowing modules to only implement the
functions they care about, instead of all functions. This also makes
it more likely that future changes to ldb will not break existing
modules
r13369@SERNOX (orig r10760): metze | 2005-10-06 09:04:36 +0200
remove only one star from the pointers, and not from the stars that
come from the array nesting
this fixes a compiler warning and but in the eventlog.h,
where the idl uses nstring strings[num_strings]
metze
r13370@SERNOX (orig r10761): metze | 2005-10-06 09:26:05 +0200
we need to use a pointer to a nbt_name to fix compiler warnings, because we can
only use a pointers to unknown types in proto.h
metze
Stefan Metzmacher [Thu, 6 Oct 2005 07:26:05 +0000 (07:26 +0000)]
r10761: we need to use a pointer to a nbt_name to fix compiler warnings, because we can
only use a pointers to unknown types in proto.h
metze
Stefan Metzmacher [Thu, 6 Oct 2005 07:04:36 +0000 (07:04 +0000)]
r10760: remove only one star from the pointers, and not from the stars that
come from the array nesting
this fixes a compiler warning and but in the eventlog.h,
where the idl uses nstring strings[num_strings]
metze
Andrew Tridgell [Thu, 6 Oct 2005 06:57:09 +0000 (06:57 +0000)]
r10759: make modules easier to write by allowing modules to only implement the
functions they care about, instead of all functions. This also makes
it more likely that future changes to ldb will not break existing
modules
Stefan Metzmacher [Thu, 6 Oct 2005 06:11:29 +0000 (06:11 +0000)]
r10758: r13323@SERNOX (orig r10732): jelmer | 2005-10-05 16:52:35 +0200
Generate _ctr structures for unions
r13325@SERNOX (orig r10734): jelmer | 2005-10-05 19:13:29 +0200
Generate ptr, size, offset, and length elements in unions just once.
r13328@SERNOX (orig r10737): jelmer | 2005-10-05 21:41:53 +0200
Fix some alignment issues
r13330@SERNOX (orig r10739): jelmer | 2005-10-05 21:53:41 +0200
Reduce number of calls to prs_align_custom()
r13333@SERNOX (orig r10742): jelmer | 2005-10-06 00:18:59 +0200
Support multi-level pointers + ref pointer fixes
r13343@SERNOX (orig r10752): tridge | 2005-10-06 06:45:33 +0200
make sure we set the exist status correctly for the tdb tests
r13344@SERNOX (orig r10753): tridge | 2005-10-06 07:24:46 +0200
don't require every ldb module to implement both a search_bytree() and
a search() function, instead each module now only implements the
bytree method, and the expression based search is handled generically
by the modules code. This makes for more consistency and less code
duplication.
fixed the tdb backend to handle BASE searches much more
efficiently. They now always only lookup one record, regardless of the
search expression
r13345@SERNOX (orig r10754): tridge | 2005-10-06 07:25:35 +0200
fixed a valgrind error for unmatched SMB replies
r13346@SERNOX (orig r10755): tridge | 2005-10-06 07:41:32 +0200
fixed the construction of expressions from subtrees for SUBSTRING searches
r13365@SERNOX (orig r10756): tridge | 2005-10-06 07:53:46 +0200
another fix for the construction of expressions from subtrees for
SUBSTRING searches. This time fix multi-part substring searches.
r13366@SERNOX (orig r10757): tridge | 2005-10-06 08:01:56 +0200
remove the proxy module (it is not complete yet)
Andrew Tridgell [Thu, 6 Oct 2005 06:01:56 +0000 (06:01 +0000)]
r10757: remove the proxy module (it is not complete yet)
Andrew Tridgell [Thu, 6 Oct 2005 05:53:46 +0000 (05:53 +0000)]
r10756: another fix for the construction of expressions from subtrees for
SUBSTRING searches. This time fix multi-part substring searches.
Andrew Tridgell [Thu, 6 Oct 2005 05:41:32 +0000 (05:41 +0000)]
r10755: fixed the construction of expressions from subtrees for SUBSTRING searches
Andrew Tridgell [Thu, 6 Oct 2005 05:25:35 +0000 (05:25 +0000)]
r10754: fixed a valgrind error for unmatched SMB replies
Andrew Tridgell [Thu, 6 Oct 2005 05:24:46 +0000 (05:24 +0000)]
r10753: don't require every ldb module to implement both a search_bytree() and
a search() function, instead each module now only implements the
bytree method, and the expression based search is handled generically
by the modules code. This makes for more consistency and less code
duplication.
fixed the tdb backend to handle BASE searches much more
efficiently. They now always only lookup one record, regardless of the
search expression
Andrew Tridgell [Thu, 6 Oct 2005 04:45:33 +0000 (04:45 +0000)]
r10752: make sure we set the exist status correctly for the tdb tests
Jelmer Vernooij [Wed, 5 Oct 2005 22:18:59 +0000 (22:18 +0000)]
r10742: Support multi-level pointers + ref pointer fixes
Jelmer Vernooij [Wed, 5 Oct 2005 19:53:41 +0000 (19:53 +0000)]
r10739: Reduce number of calls to prs_align_custom()
Jelmer Vernooij [Wed, 5 Oct 2005 19:41:53 +0000 (19:41 +0000)]
r10737: Fix some alignment issues
Jelmer Vernooij [Wed, 5 Oct 2005 17:13:29 +0000 (17:13 +0000)]
r10734: Generate ptr, size, offset, and length elements in unions just once.
Jelmer Vernooij [Wed, 5 Oct 2005 14:52:35 +0000 (14:52 +0000)]
r10732: Generate _ctr structures for unions
Stefan Metzmacher [Wed, 5 Oct 2005 12:16:58 +0000 (12:16 +0000)]
r10728: r13292@SERNOX (orig r10715): jelmer | 2005-10-04 19:21:31 +0200
More Samba3 parser generator improvements:
- Actually generate parsers for unions and structs.
- Support some more builtin types.
- Some more work on supporting arrays.
- Several other small fixes.
I've updated the example output at http://samba.org/~jelmer/
r13293@SERNOX (orig r10716): jelmer | 2005-10-04 20:24:21 +0200
Use correct Samba3 data types for strings. Also use Samba3 types
for a couple of other types (policy handles, SIDs, times)
r13294@SERNOX (orig r10717): jelmer | 2005-10-04 21:38:35 +0200
Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl.
r13295@SERNOX (orig r10718): jelmer | 2005-10-04 23:25:18 +0200
Another large set of small improvements. All generated files compile
without warnings now. The only things left to do that are
required for DFS:
- add allocation of arrays in marshalling phase
- handling primitive and deferred data in embedded structures / unions.
Example output is again available from http://samba.org/~jelmer/pidl_samba3/
r13296@SERNOX (orig r10719): jelmer | 2005-10-04 23:42:39 +0200
Remove __FUNCTION__ macro as it might not be available at all systems
(pointed out by John E. Malmberg)
r13298@SERNOX (orig r10721): jelmer | 2005-10-05 02:29:47 +0200
Handle allocations and primitive / deferred data correctly. In theory,
the generated output for DFS should work now (it compiles cleanly, but
I haven't tested it yet).
Not supported:
- subcontexts()
- relative pointers
- unions of pointers
- DATA_BLOB
- several other things
Also still need to do:
- Remove some spurious spaces in the output
- Do range() checking
Example output is still available at http://samba.org/~jelmer/pidl_samba3/
r13303@SERNOX (orig r10726): tridge | 2005-10-05 08:32:00 +0200
fix to talloc_parent() from Michael O'Brien
Stefan Metzmacher [Wed, 5 Oct 2005 12:11:05 +0000 (12:11 +0000)]
r10727: fix the build
metze
Andrew Tridgell [Wed, 5 Oct 2005 06:32:00 +0000 (06:32 +0000)]
r10726: fix to talloc_parent() from Michael O'Brien
Jelmer Vernooij [Wed, 5 Oct 2005 00:29:47 +0000 (00:29 +0000)]
r10721: Handle allocations and primitive / deferred data correctly. In theory,
the generated output for DFS should work now (it compiles cleanly, but
I haven't tested it yet).
Not supported:
- subcontexts()
- relative pointers
- unions of pointers
- DATA_BLOB
- several other things
Also still need to do:
- Remove some spurious spaces in the output
- Do range() checking
Example output is still available at http://samba.org/~jelmer/pidl_samba3/
Jelmer Vernooij [Tue, 4 Oct 2005 21:42:39 +0000 (21:42 +0000)]
r10719: Remove __FUNCTION__ macro as it might not be available at all systems
(pointed out by John E. Malmberg)
Jelmer Vernooij [Tue, 4 Oct 2005 21:25:18 +0000 (21:25 +0000)]
r10718: Another large set of small improvements. All generated files compile
without warnings now. The only things left to do that are
required for DFS:
- add allocation of arrays in marshalling phase
- handling primitive and deferred data in embedded structures / unions.
Example output is again available from http://samba.org/~jelmer/pidl_samba3/
Jelmer Vernooij [Tue, 4 Oct 2005 19:38:35 +0000 (19:38 +0000)]
r10717: Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl.
Jelmer Vernooij [Tue, 4 Oct 2005 18:24:21 +0000 (18:24 +0000)]
r10716: Use correct Samba3 data types for strings. Also use Samba3 types
for a couple of other types (policy handles, SIDs, times)
Jelmer Vernooij [Tue, 4 Oct 2005 17:21:31 +0000 (17:21 +0000)]
r10715: More Samba3 parser generator improvements:
- Actually generate parsers for unions and structs.
- Support some more builtin types.
- Some more work on supporting arrays.
- Several other small fixes.
I've updated the example output at http://samba.org/~jelmer/