12 years agor20591: Revert accidental commit that broke the build.
James Peach [Sun, 7 Jan 2007 01:04:49 +0000 (01:04 +0000)]
r20591: Revert accidental commit that broke the build.
(This used to be commit 22957f78e94e5821e1e03922a07556d8471f1850)

12 years agor20590: Heimdal uses warn(), so we should prototype it here too.
James Peach [Sun, 7 Jan 2007 00:44:17 +0000 (00:44 +0000)]
r20590: Heimdal uses warn(), so we should prototype it here too.
(This used to be commit c1c25767e3fc655dfb70147b0477404617835feb)

12 years agor20588: handle extended operations in the ldb_next_request() call
Stefan Metzmacher [Sat, 6 Jan 2007 10:21:32 +0000 (10:21 +0000)]
r20588: handle extended operations in the ldb_next_request() call

(This used to be commit b98ca57a6504c1b0fce015b1b2c3e4d228dd452e)

12 years agor20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
Stefan Metzmacher [Sat, 6 Jan 2007 10:15:02 +0000 (10:15 +0000)]
r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling

(This used to be commit ef3b325db060d43a7c2e058f6b8914b5867cd321)

12 years agor20586: - allocate an OID range for LDB/LDAP extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 10:14:15 +0000 (10:14 +0000)]
r20586: - allocate an OID range for LDB/LDAP extended operations

(This used to be commit 6397f014482172573facd3d87d1f9eec1b320ac5)

12 years agor20583: implement the frontend calls for extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 09:49:29 +0000 (09:49 +0000)]
r20583: implement the frontend calls for extended operations

(This used to be commit cfcd05adc03effeaf85dc776c2d5bb5244f0d6d4)

12 years agor20582: use void *data in the ldb_extended struct to match what we have in ldb_control
Stefan Metzmacher [Sat, 6 Jan 2007 09:25:54 +0000 (09:25 +0000)]
r20582: use void *data in the ldb_extended struct to match what we have in ldb_control

add a request element for extended requests

(This used to be commit 530b3cd2501efb7763cbb7d3301ff0550689effe)

12 years agor20581: - the ldb modules have explicit hooks for extended operations
Stefan Metzmacher [Sat, 6 Jan 2007 09:03:28 +0000 (09:03 +0000)]
r20581: - the ldb modules have explicit hooks for extended operations
  so call them
- reorder the request operations first all with explixit hooks

(This used to be commit aababcbb05ad476507bba35723eaef01d18b4d4e)

12 years agor20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
Stefan Metzmacher [Sat, 6 Jan 2007 01:13:59 +0000 (01:13 +0000)]
r20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
when applying replicated objects.

the samldb module ignores such requests now...
and the repl_meta_data module has different functions
for the replicated and originating cases...

(This used to be commit a4d5e0126cfd6135ab829f4984269e265a868a28)

12 years agor20577: - allocate an OID range for samba4 LDB/LDAP Controls
Stefan Metzmacher [Sat, 6 Jan 2007 01:09:16 +0000 (01:09 +0000)]
r20577: - allocate an OID range for samba4 LDB/LDAP Controls
- allocate an OID for LDB Control that hold meta data when applying
  replicated objects

(This used to be commit 2660c5ab211f353324452694b4bd5fd8bd17745b)

12 years agor20576: add functions to get and set dsdb_schema on the ldb context
Stefan Metzmacher [Sat, 6 Jan 2007 01:04:12 +0000 (01:04 +0000)]
r20576: add functions to get and set dsdb_schema on the ldb context

(This used to be commit 2e054be8e023e23420e7ddd8cd73497400a875f9)

12 years agor20575: apply records to the test_samdb.ldb (my birthday present to myself...:-)
Stefan Metzmacher [Fri, 5 Jan 2007 23:00:46 +0000 (23:00 +0000)]
r20575: apply records to the test_samdb.ldb (my birthday present to myself...:-)

we need to modify some modules to only handle originating changes...

(This used to be commit 0f387d58e69a6ee806fea02229ef8fa030f2918d)

12 years agor20574: reorganization of common modules
Derrell Lipman [Fri, 5 Jan 2007 21:42:49 +0000 (21:42 +0000)]
r20574: reorganization of common modules
(This used to be commit 5075e008941177d5be1d9471387c9d27aba65f81)

12 years agor20573: fix handling of pointers handling to elements with the charset property
Stefan Metzmacher [Fri, 5 Jan 2007 21:36:57 +0000 (21:36 +0000)]
r20573: fix handling of pointers handling to elements with the charset property

(This used to be commit 895416c2202cac561e3bda80fe5c05a782dde0b0)

12 years agor20572: - prepare a test_samdb.ldb in the NET-API-BECOME-DC torture test
Stefan Metzmacher [Fri, 5 Jan 2007 21:27:24 +0000 (21:27 +0000)]
r20572: - prepare a test_samdb.ldb in the NET-API-BECOME-DC torture test
- we call a ejs script from the torture test for this task
  so that we can use the provision template ldif's.

(This used to be commit e84b0c7d4004df312ae58ed76dd708a2c3c37986)

12 years agor20571: fix '' case
Jelmer Vernooij [Fri, 5 Jan 2007 21:26:28 +0000 (21:26 +0000)]
r20571: fix '' case
(This used to be commit 1618921a7e24213d39e042a4e2f9d5cb59997f50)

12 years agor20570: use talloc_asprintf() instead of talloc_asprintf_append()
Stefan Metzmacher [Fri, 5 Jan 2007 21:22:15 +0000 (21:22 +0000)]
r20570: use talloc_asprintf() instead of talloc_asprintf_append()
because talloc_asprintf_append() doesn't work like talloc_append_string()
which uses strlen() on the old string instead of (tc->size - 1)

This matter in this case because strlower_talloc() over allocates

tridge: how should we fix this in lib/talloc/?

(This used to be commit 1748af20b1f7b325048619a1e66a1c8b69474c5f)

12 years agor20569: Web Application Framework
Derrell Lipman [Fri, 5 Jan 2007 21:20:11 +0000 (21:20 +0000)]
r20569: Web Application Framework

- Fix handling of predicates in finite state machine

- Make use of predicates to handle a specific PermissionDenied failure, vs
  some other generic failure

- Add JSON-RPC error constants
(This used to be commit 38ae9658cb52149d66f910582d8b55fe954650fb)

12 years agor20568: split out the rootdse ldif
Stefan Metzmacher [Fri, 5 Jan 2007 20:58:21 +0000 (20:58 +0000)]
r20568: split out the rootdse ldif

and set the isSyncronized = TRUE when we done

(This used to be commit 5875ce1ac6ff694d07787ff0cf81b3429580311b)

12 years agor20567: Print proper errors with filename and line numbers in ParseExpr()
Jelmer Vernooij [Fri, 5 Jan 2007 20:52:12 +0000 (20:52 +0000)]
r20567: Print proper errors with filename and line numbers in ParseExpr()
(This used to be commit f5dc1b47ecf18068a47f8f68016463ef4a55dc03)

12 years agor20566: Prepending with r-> is no longer necessary.
Jelmer Vernooij [Fri, 5 Jan 2007 20:51:19 +0000 (20:51 +0000)]
r20566: Prepending with r-> is no longer necessary.
(This used to be commit 1df96af3103795f609165e7a7344e1bf6046be79)

12 years agor20565: configure the list of global ldb modules also in js code
Stefan Metzmacher [Fri, 5 Jan 2007 20:31:24 +0000 (20:31 +0000)]
r20565: configure the list of global ldb modules also in js code

(This used to be commit cbebe559a2563a3ab9dd2e002c79676a803b71a4)

12 years agor20564: Regenerate.
Jelmer Vernooij [Fri, 5 Jan 2007 20:23:48 +0000 (20:23 +0000)]
r20564: Regenerate.
(This used to be commit a4d6e340cdfdab8c6ac49c4fc8a504f8910cefed)

12 years agor20563: Start using the new parser in ParseExpr(). It's now trivial to use this
Jelmer Vernooij [Fri, 5 Jan 2007 20:18:33 +0000 (20:18 +0000)]
r20563: Start using the new parser in ParseExpr(). It's now trivial to use this
to check for NULL pointers when pointers are being dereferenced (#4218).

There are exactly 500 tests for pidl now :-)
(This used to be commit d3146f3bcd4541f890d6c1b072ff34853e9239d2)

12 years agor20562: Start building expr parser. Add separate copy of Yapp::Driver
Jelmer Vernooij [Fri, 5 Jan 2007 20:13:48 +0000 (20:13 +0000)]
r20562: Start building expr parser. Add separate copy of Yapp::Driver
rather than including it in each individual parser.
(This used to be commit 26853d7d99f7305981bcadaabfe6accf254321e7)

12 years agor20561: Add parser for subexpressions used in IDL attributes.
Jelmer Vernooij [Fri, 5 Jan 2007 20:12:21 +0000 (20:12 +0000)]
r20561: Add parser for subexpressions used in IDL attributes.
(This used to be commit 7e7fdb01d3fba449f33b7b67ba0e3a0089dd3902)

12 years agor20560: make it possible to configure the backend and modules
Stefan Metzmacher [Fri, 5 Jan 2007 20:10:38 +0000 (20:10 +0000)]
r20560: make it possible to configure the backend and modules
for all partitions and make it not use LDAP in the variable names
because it isn't specific to the ldap backend case.

(This used to be commit 3e337ec2764038e4ff05c3e926220abaa5583702)

12 years agor20559: Web Application Framework
Derrell Lipman [Fri, 5 Jan 2007 19:29:45 +0000 (19:29 +0000)]
r20559: Web Application Framework

- Disallow, for now, any ScriptTransport access.  A serious security issue has
  been described, and since we don't currently need it for anything, disable
  it completely.

- Continued clean-up towards implementing the common authentication code
(This used to be commit 07817a5489dd8cc6c85c10116f4dba43d798ef03)

12 years agor20557: use ${DOMAINDN} instead of ${BASEDN}
Stefan Metzmacher [Fri, 5 Jan 2007 17:40:43 +0000 (17:40 +0000)]
r20557: use ${DOMAINDN} instead of ${BASEDN}

(This used to be commit 2a6e6a2695b256411c91768c7bee748228e40e6f)

12 years agor20556: Add more tests to make sure nothing breaks when I replace the ParseExpr code.
Jelmer Vernooij [Fri, 5 Jan 2007 17:18:22 +0000 (17:18 +0000)]
r20556: Add more tests to make sure nothing breaks when I replace the ParseExpr code.
(This used to be commit 0ba52e459bb322a0aee59c6616d7696658934b38)

12 years agor20555: fix typo...
Stefan Metzmacher [Fri, 5 Jan 2007 16:26:16 +0000 (16:26 +0000)]
r20555: fix typo...

(This used to be commit 09622f01227093b4b351fcc79fe29d5b2f388376)

12 years agor20554: - use ${ROOTDN} for the rootDomainNamingContext
Stefan Metzmacher [Fri, 5 Jan 2007 16:19:00 +0000 (16:19 +0000)]
r20554: - use ${ROOTDN} for the rootDomainNamingContext
- the ${CONFIGDN} is a child of the ${ROOTDN}

(This used to be commit ebbd8a83c982efdc58e53798d1fd191f08731005)

12 years agor20553: add ${CONFIGDN} and ${SCHEMADN} instead of using hardcoded paths
Stefan Metzmacher [Fri, 5 Jan 2007 16:12:30 +0000 (16:12 +0000)]
r20553: add ${CONFIGDN} and ${SCHEMADN} instead of using hardcoded paths
under ${BASEDN}

(This used to be commit 09ca6aae12d8e10b76971cf269f7c62f228a4c87)

12 years agor20552: Little Samba3 test to force smb_close to return an error. Set delete on close,
Volker Lendecke [Fri, 5 Jan 2007 16:02:42 +0000 (16:02 +0000)]
r20552: Little Samba3 test to force smb_close to return an error. Set delete on close,
and then remove perms from the parent dir....

(This used to be commit f24c5052576d4951738f83c3b238d2c251d4553b)

12 years agor20551: use variable instead of hardcoded value for the default site
Stefan Metzmacher [Fri, 5 Jan 2007 15:53:19 +0000 (15:53 +0000)]
r20551: use variable instead of hardcoded value for the default site

(This used to be commit 21f433018afbb7b94089969f7ee9acda40ee1a70)

12 years agor20550: Use standard error mechanism in parser.
Jelmer Vernooij [Fri, 5 Jan 2007 15:20:23 +0000 (15:20 +0000)]
r20550: Use standard error mechanism in parser.
Make sure errors are reported correctly.
(This used to be commit 9f794c55a60b09536d6e0dbadfc172e1e74497ff)

12 years agor20549: obvious bug fix..
Volker Lendecke [Fri, 5 Jan 2007 15:12:32 +0000 (15:12 +0000)]
r20549: obvious bug fix..
(This used to be commit f0aa63e39050c7ac10b9d51c5cecc753b257be9a)

12 years agor20548: Remove unnecessary "use lib", fix warnings.
Jelmer Vernooij [Fri, 5 Jan 2007 15:03:21 +0000 (15:03 +0000)]
r20548: Remove unnecessary "use lib", fix warnings.
(This used to be commit 30d721569fdf33e4784eb1f7c650e75ed1b80527)

12 years agor20547: Add tests for expected errors/warnings.
Jelmer Vernooij [Fri, 5 Jan 2007 14:55:26 +0000 (14:55 +0000)]
r20547: Add tests for expected errors/warnings.
(This used to be commit 2d960d4d7b0bc39c3ec4c2face546adc2cb345ee)

12 years agor20545: Fix is_constant().
Jelmer Vernooij [Fri, 5 Jan 2007 14:25:21 +0000 (14:25 +0000)]
r20545: Fix is_constant().
(This used to be commit ae9b0895e8b7fd98335ece82aae3e391b94d2ec9)

12 years agor20543: Merge some pidl bug fixes:
Jelmer Vernooij [Fri, 5 Jan 2007 12:56:15 +0000 (12:56 +0000)]
r20543: Merge some pidl bug fixes:
 * C expressions that just started with a constant were erroneously flagged
   as being a constant.
 * 1-length variable names in expressions were broken.
(This used to be commit 44775a6ac456247fe7ab4da75498bb550c74c854)

12 years agor20540: darn, also need to fix this event_context reference
Andrew Tridgell [Fri, 5 Jan 2007 10:31:54 +0000 (10:31 +0000)]
r20540: darn, also need to fix this event_context reference
(This used to be commit c8bd3ec09d3c370475df3a3cd77de6743b316c9e)

12 years agor20539: - split the common timer related events code into events_timed.c
Andrew Tridgell [Fri, 5 Jan 2007 09:35:49 +0000 (09:35 +0000)]
r20539: - split the common timer related events code into events_timed.c

- make it easier to plug in a new events backend

- add simpler 'select' and 'epoll' backends

This is part of the effort to add good AIO support. The events_aio.c
backend is done, but sometimes dies with a SEGV, which is why it isn't
enabled yet.
(This used to be commit 934f18283dbc7958944931a93a854526bcd54884)

12 years agor20538: Web Application Framework
Derrell Lipman [Fri, 5 Jan 2007 04:33:38 +0000 (04:33 +0000)]
r20538: Web Application Framework

- correct an error message in the JSON-RPC server

- provide a common RPC request function

- make it easier to have multiple pending RPC requests.  this allows an
  application-specified request to return "not logged in"; authentication
  information to be requested and sent; and the original request to be

- in statistics module, if a time is provided as zero, leave it blank rather
  than displaying 1 Jan 1970.  this showed up in the last_used_at field in the
  SMB status report.

- clean up makefile: remove no-longer-used hard-coded path and install target;
  remove "chmod" and "nice" commands which were part of the original skeleton,
  since that is not deemed appropriate for samba makefiles
(This used to be commit 339ee73ce2809905f608b1003cc645231f256420)

12 years agor20531: - create the rdn attribute which is an alias for the 'name' attribute
Stefan Metzmacher [Thu, 4 Jan 2007 21:09:29 +0000 (21:09 +0000)]
r20531: - create the rdn attribute which is an alias for the 'name' attribute
  because the rdn attribute isn't explicit replicated
- create the whenChanged attribute out of the meta data
- create the objectGUID attribute out of the guid of the DsReplicaObjectIdentifier*
- create the replPropertyMetaData attribute from the meta data
- dump a more verbose form of the meta data that contains the attribute names
- dump linked attributes

a lot if this functionality will move into the repl_meta_data ldb module
in one of the next steps...

(This used to be commit a6223a20434df1269cc87ba3b1db74473b6ff9bb)

12 years agor20529: very, very ugly...
Stefan Metzmacher [Thu, 4 Jan 2007 20:36:12 +0000 (20:36 +0000)]
r20529: very, very ugly...

But this is currently needed to make regpatch linking in
the dsdb/schema/schema_*.o object files.

the problem is that the linker doesn't find any references to public symbols
in this files and removes them from the link list.

gnu ld has a --whole-archive option, but it seems to be not portable...

I think the solution with prelinking using 'ld -r' to create one object file
for a subsystem instead of using 'ar -rcs' to create an archive for a subsystem...

jelmer: any ideas about this problem?

(This used to be commit 46df7ff6e5e74eddcb81b5a195e82688d83afaf4)

12 years agor20525: Closing a dir with del-on-close set requires the same as files: Don't actually
Volker Lendecke [Thu, 4 Jan 2007 16:26:15 +0000 (16:26 +0000)]
r20525: Closing a dir with del-on-close set requires the same as files: Don't actually
unlink/rmdir if another process still has it open.

Jeremy, this is a potential merger to 3.0.24.

(This used to be commit d0550a01af219344ec2e4c16d5253814afc89974)

12 years agor20523: match the lDAPDisplayName case insensitive
Stefan Metzmacher [Thu, 4 Jan 2007 14:42:13 +0000 (14:42 +0000)]
r20523: match the lDAPDisplayName case insensitive

(This used to be commit c32ec0a10041dba50be23611f25e4aae8c45830c)

12 years agor20522: make a copy of the objectguid ldb module because:
Stefan Metzmacher [Thu, 4 Jan 2007 12:10:55 +0000 (12:10 +0000)]
r20522: make a copy of the objectguid ldb module because:

- I'll add handling of replication meta data to it
  for orginating changes
- I'll pass replication meta data via a ldb control
  for applying replicated changes
- It will also update the replUpToDateVector attribute in
  in root object of the partition
- It will handle deleted records by adding the isDeleted=TRUE attribute
  and move them to the CN=Deleted Objects container of the partition
- I make a copy to play with the code without breaking
  the LDAP backend setup

(This used to be commit 045ddfe1ec626fab5e8fd75c5b47f0525b7ebb01)

12 years agor20520: allow the caller to pass NULL if it doesn't want a session info
Stefan Metzmacher [Thu, 4 Jan 2007 09:47:49 +0000 (09:47 +0000)]
r20520: allow the caller to pass NULL if it doesn't want a session info

this can be used when we start to support the FAST BIND LDAP Control

(This used to be commit 0a73d3262d5deb5a9d0052751336413fbea370b1)

12 years agor20519: Web Application Framework
Derrell Lipman [Wed, 3 Jan 2007 21:11:44 +0000 (21:11 +0000)]
r20519: Web Application Framework

- No path given to web server means use old scripts (missed check-in)

- Build Web Application (qooxdoo stuff) from since python isn't
  available or is differently-configured on various build-farm machines

- Don't continually check in generated files

- Properly identify SWAT "Statistics" module as "Status and Statistics"
(This used to be commit 9d89b7663af218ee6ed941ac6c0597fab93cd03b)

12 years agor20518: reapply finite state machine mods which got lost in the webapps remove/restor...
Derrell Lipman [Wed, 3 Jan 2007 20:50:45 +0000 (20:50 +0000)]
r20518: reapply finite state machine mods which got lost in the webapps remove/restore process
(This used to be commit 1d867863b64fb39aedbf713f7f3dd17948b433ef)

12 years agor20517: re-add cleaned-up webapps
Derrell Lipman [Wed, 3 Jan 2007 20:17:37 +0000 (20:17 +0000)]
r20517: re-add cleaned-up webapps
(This used to be commit 5a3d6ad0b7cf0ecf8b57b4088b19f7d4291c990b)

12 years agor20516: svn gets royally screwed up when renaming or relocating files. attempt to...
Derrell Lipman [Wed, 3 Jan 2007 20:07:31 +0000 (20:07 +0000)]
r20516: svn gets royally screwed up when renaming or relocating files.  attempt to correct.
(This used to be commit efffee706d62a4260b2d9782b19a9df1971dddb2)

12 years agor20515: Continued work on the Web Application Framework. Until we get all of the
Derrell Lipman [Wed, 3 Jan 2007 19:57:40 +0000 (19:57 +0000)]
r20515: Continued work on the Web Application Framework.  Until we get all of the
functionality of the old scripts incorporated into the new framework, the old
scripts need to still be available.  I've reverted to having the old scripts
be the default pages, and added an option to access the preview of the new
(This used to be commit b43620d4b8eff815f4a6dc02522a8dfc9fdcaef4)

12 years agor20514: implement idl for DsGetNT4ChangeLog() which transferres the meta data
Stefan Metzmacher [Wed, 3 Jan 2007 19:09:34 +0000 (19:09 +0000)]
r20514: implement idl for DsGetNT4ChangeLog() which transferres the meta data
for NT4 DC's in mixed mode domains.

This call is triggered by tranferring the PDC FSMO Role to another DC

the real meta data is encoded in the user buffer which is just a DATA_BLOB in idl

(This used to be commit d883815c8d64429e4dac26a93a15e67d31dc263e)

12 years agor20513: this values are the same as in drsuapi_DsReplicaObjectIdentifier3Binary
Stefan Metzmacher [Wed, 3 Jan 2007 19:01:35 +0000 (19:01 +0000)]
r20513: this values are the same as in drsuapi_DsReplicaObjectIdentifier3Binary
the extra binary blob

(This used to be commit 89f5389e8d9046a2bc96f76297cab5ffef847a25)

12 years agor20511: Combine warnings/errors/fatal functions and move them to Parse::Pidl.
Jelmer Vernooij [Wed, 3 Jan 2007 15:34:01 +0000 (15:34 +0000)]
r20511: Combine warnings/errors/fatal functions and move them to Parse::Pidl.
(This used to be commit 959adfd0a682a4894c3bdd4ae9c6fc3ebfeeef1f)

12 years agor20510: fix spelling
Stefan Metzmacher [Wed, 3 Jan 2007 15:18:17 +0000 (15:18 +0000)]
r20510: fix spelling

(This used to be commit 58066e2252001b7689705d296a16438733cfdfc4)

12 years agor20509: Warn about the fact that no tests have been run rather than showing division by
Jelmer Vernooij [Wed, 3 Jan 2007 13:24:24 +0000 (13:24 +0000)]
r20509: Warn about the fact that no tests have been run rather than showing division by
zero errors.
(This used to be commit 62f55b33949783a178dee9a36895c3423bdd625d)

12 years agor20508: Confirm a special case in samba3 reply_getatr that getatr("") always returns
Volker Lendecke [Wed, 3 Jan 2007 12:02:44 +0000 (12:02 +0000)]
r20508: Confirm a special case in samba3 reply_getatr that getatr("") always returns

(This used to be commit 83a20912061c663ff422b038b41f01a9c7583afe)

12 years agor20506: - fix parsing of LinkedAttribute values
Stefan Metzmacher [Wed, 3 Jan 2007 11:42:28 +0000 (11:42 +0000)]
r20506: - fix parsing of LinkedAttribute values
- I also found the meaning of the time field
- and the uint32 field

(This used to be commit f3c83dfb0199c8914f9c0ce53b045268b7e0e88f)

12 years agor20505: I had the wrong ldif name here.
Andrew Bartlett [Wed, 3 Jan 2007 11:23:56 +0000 (11:23 +0000)]
r20505: I had the wrong ldif name here.

Andrew Bartlett
(This used to be commit 5781d0f41ac1847c38ebda290f5e85423dd20186)

12 years agor20504: we handle the attribute values always as DATA_BLOB's and
Stefan Metzmacher [Wed, 3 Jan 2007 09:58:14 +0000 (09:58 +0000)]
r20504: we handle the attribute values always as DATA_BLOB's and
don't need the union with the attribute id as switch anymore

(This used to be commit d47c81923d0731edd314215c6f0b2eb3d1ee252d)

12 years agor20497: Two changes to RAW-OPEN that Samba does not fulfil:
Volker Lendecke [Wed, 3 Jan 2007 06:29:22 +0000 (06:29 +0000)]
r20497: Two changes to RAW-OPEN that Samba does not fulfil:

Samba3 returns the SPARSE flag for files with size > allocation, and on many
configs Samba3 does not support EAs. Cope with both.

Tridge, please check this is acceptable for this test.

(This used to be commit 4df4d37c3d4d9e6c430afd36e88684f02c73700e)

12 years agor20495: Further notes on joining with fedora DS.
Andrew Bartlett [Wed, 3 Jan 2007 05:31:50 +0000 (05:31 +0000)]
r20495: Further notes on joining with fedora DS.

Add in a hook for adding an ACI, needed to allow anonymous access
until we hook across a SYSTEM token to the LDAP server.

Andrew Bartlett
(This used to be commit f45504e2714680978f101b4a98516686a17531df)

12 years agor20494: Dave CB <> found some stray characters in the docs,
Andrew Bartlett [Wed, 3 Jan 2007 04:11:22 +0000 (04:11 +0000)]
r20494: Dave CB <> found some stray characters in the docs,
while stress-testing an xml parser.  Bug 4319

Andrew Bartlett
(This used to be commit a9a61eb54309cebfcdc28ff03130244477aa3d2e)

12 years agor20493: Add support for the 'Netscape' varient of GUID formatting, used in the
Andrew Bartlett [Wed, 3 Jan 2007 03:59:44 +0000 (03:59 +0000)]
r20493: Add support for the 'Netscape' varient of GUID formatting, used in the
Fedora DS.

Andrew Bartlett
(This used to be commit 918e52fa5f527c427b46c1e1794131bcddab38f1)

12 years agor20492: Add in instructions/sample LDIF to setup Fedora DS as a backend.
Andrew Bartlett [Wed, 3 Jan 2007 03:19:02 +0000 (03:19 +0000)]
r20492: Add in instructions/sample LDIF to setup Fedora DS as a backend.

Add a new module entrypoint to handle the new, interesting and
different mappings required for Fedora DS.

Andrew Bartlett
(This used to be commit 600c7f1a68c175b835ce45d13794a6f66bcc8493)

12 years agor20484: get rid of the special case for DN strings
Stefan Metzmacher [Tue, 2 Jan 2007 19:29:32 +0000 (19:29 +0000)]
r20484: get rid of the special case for DN strings

(This used to be commit 4c2addf2dd5b74fa0026249ce373ff4becaaef40)

12 years agor20483: Sorry Volker:-)
Stefan Metzmacher [Tue, 2 Jan 2007 19:24:32 +0000 (19:24 +0000)]
r20483: Sorry Volker:-)

I missed to commit this file:-(

(This used to be commit e11885f8a78698ad479826784491548e8b695a04)

12 years agor20481: Fix the build -- Stefan, please look at this ;-))
Volker Lendecke [Tue, 2 Jan 2007 16:39:32 +0000 (16:39 +0000)]
r20481: Fix the build -- Stefan, please look at this ;-))
(This used to be commit bbb3aaa41b4b025eb6536d6da3caf64db8731bdf)

12 years agor20480: In Samba3 we don't yet have support for all 4 file times on all platforms (do
Volker Lendecke [Tue, 2 Jan 2007 16:18:51 +0000 (16:18 +0000)]
r20480: In Samba3 we don't yet have support for all 4 file times on all platforms (do
we have any?? ;-), so don't mark failure to correctly cope with the close
write time as critical.

(This used to be commit 42070b09cba8adda1e7606e08764b1f202b33321)

12 years agor20477: get rid of the spcial case for unicode strings
Stefan Metzmacher [Tue, 2 Jan 2007 14:53:45 +0000 (14:53 +0000)]
r20477: get rid of the spcial case for unicode strings

(This used to be commit ececda44c74ae4ccbaa0492acb67a88aa5c05126)

12 years agor20476: get rid of extra case for uint32 values
Stefan Metzmacher [Tue, 2 Jan 2007 14:14:35 +0000 (14:14 +0000)]
r20476: get rid of extra case for uint32 values

(This used to be commit 13ccd405b5dbb595e5ab67879260462e5a767a8b)

12 years agor20475: remove special case for GUID values
Stefan Metzmacher [Tue, 2 Jan 2007 13:54:37 +0000 (13:54 +0000)]
r20475: remove special case for GUID values

(This used to be commit b7ab1c0039cd8000861cd89ca072d9d2b0bbf9de)

12 years agor20474: Skip the delete-on-close test on a non-empty directory in raw-unlink for
Volker Lendecke [Tue, 2 Jan 2007 13:48:42 +0000 (13:48 +0000)]
r20474: Skip the delete-on-close test on a non-empty directory in raw-unlink for
Samba3. This is a known deficiency also taken care of in the base-delete

(This used to be commit 6b91bb93fad84e054c19f8c9bc4145234f171a3c)

12 years agor20473: remove special case for boolean values
Stefan Metzmacher [Tue, 2 Jan 2007 13:18:09 +0000 (13:18 +0000)]
r20473: remove special case for boolean values

(This used to be commit 8d80629c5dde44a06b597e1247ec96ef1cd3f2e1)

12 years agor20472: add a comment for Object(Replica-Link), it's not clear that
Stefan Metzmacher [Tue, 2 Jan 2007 12:59:00 +0000 (12:59 +0000)]
r20472: add a comment for Object(Replica-Link), it's not clear that
the DATA_BLOB conversation functions are correct here...

(This used to be commit 56e17f4c0cf2edab732658ab190723299850e2cd)

12 years agor20471: implement conversation functions for PRESENTATION_ADDRESS attribute syntax
Stefan Metzmacher [Tue, 2 Jan 2007 12:48:38 +0000 (12:48 +0000)]
r20471: implement conversation functions for PRESENTATION_ADDRESS attribute syntax

(This used to be commit 49e6e88778785ba33042c5d4f6bcdfbd27275083)

12 years agor20469: w2k3 handles String(Numeric), String(Printable), String(Teletex) and String...
Stefan Metzmacher [Tue, 2 Jan 2007 12:02:43 +0000 (12:02 +0000)]
r20469: w2k3 handles String(Numeric), String(Printable), String(Teletex) and String(IA5)
as byte arrays without any constraints on the used bytes.

Only the rangeLower,rangeUpper constraints may reject invalid values

I have tested the following values:

internationalISDNNumber:1 => String(Numeric)
[000] E2 82 AC E2 82 AC E2 82  AC E2 82 AC E2 82 AC 31  ........ .......1
displayNamePrintable:1 => String(Printable)
[000] 68 65 6C 6F C3 B6 6C 6B  6A C3 B6 6C 6B 6A C3 B6 j..lkj..
[010] 6C 6B 6A C3 B6 6C 6B 6A  C3 B6 6C 6B 6A C3 B6 6C  lkj..lkj ..lkj..l
[020] 6B 6A C3 B6 6C 6B 6A C3  B6 6C 6B 6A C3 B6 6C 6B  kj..lkj.
[030] 6A C3 B6 6C 6B 6A C3 B6  6C 6B 6A C3 B6 6B 6A C3  j..lkj.. lkj..kj.
[040] B6 6C 6B 6A C3 B6 6A 38  37 70 6F 38 36 6F 37 36  .lkj..j8 7po86o76
[050] 34 65 64 74 7A 68 6F 69  6A 7A 6F 69 7A 6F 69 38  4edtzhoi jzoizoi8
[060] 69 37 36 72 35 75 66 75  35 72                    i76r5ufu 5r
networkAddress:1 => String(Teletex)
[000] 61 02 63 04 66 67 00 68  69                       a.c.fg.h i
msRADIUSCallbackNumber:1 => String(IA5)
[000] 61 02 63 04 66 67 00 68  69                       a.c.fg.h i

(This used to be commit 4aa96d287e9b834f1f6cc95cf2b6a98c0a8eefc0)

12 years agor20468: Patch from Martin Kuehl <> to make it easier to load
Andrew Bartlett [Tue, 2 Jan 2007 11:50:04 +0000 (11:50 +0000)]
r20468: Patch from Martin Kuehl <> to make it easier to load
into an exsting LDAP server.  (Allow some parts to pre-exist, and try
to blow away less data).

Andrew Bartlett
(This used to be commit 99faff0ad8fa12d596c599064a0125a6b3365134)

12 years agor20467: Don't segfault if we don't have an OID map
Andrew Bartlett [Tue, 2 Jan 2007 11:36:50 +0000 (11:36 +0000)]
r20467: Don't segfault if we don't have an OID map
(This used to be commit c0276c373c51696b5168cdd1b048e1b9858baf62)

12 years agor20466: I removed the _all only for tests and forgot to revert it
Stefan Metzmacher [Tue, 2 Jan 2007 11:17:38 +0000 (11:17 +0000)]
r20466: I removed the _all only for tests and forgot to revert it

(This used to be commit 5a15c2748847e0b82e0fd4945c37d21025fad273)

12 years agor20464: Make it clear what does the process group stuff
Andrew Bartlett [Tue, 2 Jan 2007 11:13:03 +0000 (11:13 +0000)]
r20464: Make it clear what does the process group stuff
(This used to be commit 27750e0b5f118b76c199f87cbf92ee951c3e7db7)

12 years agor20463: implement conversation of NTTIME_UTC attribute syntax
Stefan Metzmacher [Tue, 2 Jan 2007 11:11:47 +0000 (11:11 +0000)]
r20463: implement conversation of NTTIME_UTC attribute syntax

Note: if we'll store the UTCTime string in our ldb we'll loose information...

(This used to be commit cc1798f85bb52b2b2fb8971e4cd5d6153e58a3c7)

12 years agor20462: add functions to handle UTCTime strings
Stefan Metzmacher [Tue, 2 Jan 2007 10:59:38 +0000 (10:59 +0000)]
r20462: add functions to handle UTCTime strings

(This used to be commit 49c7da812c290e23bb65b98a2710fb90c4a0ece2)

12 years agor20461: this attribute syntaxes are not used for any attribute definitions in the...
Stefan Metzmacher [Tue, 2 Jan 2007 08:46:55 +0000 (08:46 +0000)]
r20461: this attribute syntaxes are not used for any attribute definitions in the w2k3 schema

(This used to be commit ef477b314b09bac16c8da93700a0f952f632a2ea)

12 years agor20460: Simplfy the handling of password hashes in the samba3sam module.
Andrew Bartlett [Tue, 2 Jan 2007 03:40:29 +0000 (03:40 +0000)]
r20460: Simplfy the handling of password hashes in the samba3sam module.

Andrew Bartlett
(This used to be commit 2959b4ba8bb5764ea654ae7b152284a4e02405ab)

12 years agor20459: LDB map cleanup:
Andrew Bartlett [Tue, 2 Jan 2007 03:39:01 +0000 (03:39 +0000)]
r20459: LDB map cleanup:

- Replace 'return 0' with return LDB_SUCCESS in more places.

- Do not return NULL attribute values, these are not permitted.
  Instead, fail the whole conversion.

- Cleanup old comments.

Andrew Bartlett
(This used to be commit f28cf842dab2fe5e691d755f28c6048c986e284f)

12 years agor20458: This data is invalid, and causes the samba3sam test to fail, because
Andrew Bartlett [Tue, 2 Jan 2007 03:37:07 +0000 (03:37 +0000)]
r20458: This data is invalid, and causes the samba3sam test to fail, because
we now convert these values.

Andrew Bartlett
(This used to be commit a0b401d41ab1396f270518411c4b48e8f5b200a7)

12 years agor20457: Print more information before asserting
Andrew Bartlett [Tue, 2 Jan 2007 03:36:02 +0000 (03:36 +0000)]
r20457: Print more information before asserting
(This used to be commit 0b7a5b7284f7820e5b2f48f40e85830243189b58)

12 years agor20456: Rename variables to avoid shadowing global function names.
Andrew Bartlett [Tue, 2 Jan 2007 01:39:53 +0000 (01:39 +0000)]
r20456: Rename variables to avoid shadowing global function names.

Andrew Bartlett
(This used to be commit c353f2bb91d6cf7553325b94baae8986e85e8ee5)

12 years agor20455: Apply some of the patches from Martin Kuehl <> to
Andrew Bartlett [Tue, 2 Jan 2007 01:07:44 +0000 (01:07 +0000)]
r20455: Apply some of the patches from Martin Kuehl <> to
better handle the Samba3 backend.

I've refactored the password format patch to use the routines in
lib/samba3/smbpasswd.c, which has required me to move this into a
seperate subsystem, due to recursive dependencies.

Andrew Bartlett
(This used to be commit 14e2c877a82d1fcf060455f9b46de5767b71438d)

12 years agor20453: add conversation for the DN_BINARY attribute syntax
Stefan Metzmacher [Mon, 1 Jan 2007 19:35:03 +0000 (19:35 +0000)]
r20453: add conversation for the DN_BINARY attribute syntax

the ldb_to_drsuapi version need to be completed, but it's
currently not used...

(This used to be commit 9b31e8c1f73aaf71522e33174c8c5415a95ac626)

12 years agor20452: add conversation for DN strings.
Stefan Metzmacher [Mon, 1 Jan 2007 18:33:20 +0000 (18:33 +0000)]
r20452: add conversation for DN strings.

TODO: we need to implement linked attributes here,
      and keep the guid and sid

(This used to be commit 72d059e8ca5e0b4708e2a62688592813d0482c82)

12 years agor20450: implement conversation of unicode strings
Stefan Metzmacher [Mon, 1 Jan 2007 17:40:19 +0000 (17:40 +0000)]
r20450: implement conversation of unicode strings

(This used to be commit 6383e56be88898bf533cc2476ab9e533b2cb0eec)

12 years agor20449: Happy New Year!
Stefan Metzmacher [Mon, 1 Jan 2007 17:29:50 +0000 (17:29 +0000)]
r20449: Happy New Year!

(This used to be commit dbabec633881d7b2521aa17b484e425e6db36e01)

12 years agor20446: rename swat directory to swat.obsolete; keeping it around since there is...
Derrell Lipman [Sun, 31 Dec 2006 20:12:12 +0000 (20:12 +0000)]
r20446: rename swat directory to swat.obsolete; keeping it around since there is lots of useful info in it.
(This used to be commit 5f9f72a9cfab80561b23284001b67c4ea961757b)

12 years agor20445: add README file indicating that the swat directory is no longer relevant
Derrell Lipman [Sun, 31 Dec 2006 20:07:22 +0000 (20:07 +0000)]
r20445: add README file indicating that the swat directory is no longer relevant
(This used to be commit bea98d5f1a341b2867ef6d10fd1d2bd56ae887d0)