kai/samba.git
16 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}

metze
(This used to be commit ebbd8a83c982efdc58e53798d1fd191f08731005)

16 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}

metze
(This used to be commit 09ca6aae12d8e10b76971cf269f7c62f228a4c87)

16 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....

Volker
(This used to be commit f24c5052576d4951738f83c3b238d2c251d4553b)

16 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

metze
(This used to be commit 21f433018afbb7b94089969f7ee9acda40ee1a70)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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)

16 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
  reissued.

- 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)

16 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...

metze
(This used to be commit a6223a20434df1269cc87ba3b1db74473b6ff9bb)

16 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?

metze
(This used to be commit 46df7ff6e5e74eddcb81b5a195e82688d83afaf4)

16 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.

Volker
(This used to be commit d0550a01af219344ec2e4c16d5253814afc89974)

16 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

metze
(This used to be commit c32ec0a10041dba50be23611f25e4aae8c45830c)

16 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

metze
(This used to be commit 045ddfe1ec626fab5e8fd75c5b47f0525b7ebb01)

16 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

metze
(This used to be commit 0a73d3262d5deb5a9d0052751336413fbea370b1)

16 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 autogen.sh 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)

16 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)

16 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)

16 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)

16 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
SWAT.
(This used to be commit b43620d4b8eff815f4a6dc02522a8dfc9fdcaef4)

16 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

metze
(This used to be commit d883815c8d64429e4dac26a93a15e67d31dc263e)

16 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

metze
(This used to be commit 89f5389e8d9046a2bc96f76297cab5ffef847a25)

16 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)

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

metze
(This used to be commit 58066e2252001b7689705d296a16438733cfdfc4)

16 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)

16 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
HIDDEN.

Volker
(This used to be commit 83a20912061c663ff422b038b41f01a9c7583afe)

16 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

metze
(This used to be commit f3c83dfb0199c8914f9c0ce53b045268b7e0e88f)

16 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)

16 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

metze
(This used to be commit d47c81923d0731edd314215c6f0b2eb3d1ee252d)

16 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.

Volker
(This used to be commit 4df4d37c3d4d9e6c430afd36e88684f02c73700e)

16 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)

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

Andrew Bartlett
(This used to be commit a9a61eb54309cebfcdc28ff03130244477aa3d2e)

16 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)

16 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)

16 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

metze
(This used to be commit 4c2addf2dd5b74fa0026249ce373ff4becaaef40)

16 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:-(

metze
(This used to be commit e11885f8a78698ad479826784491548e8b695a04)

16 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)

16 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.

Volker
(This used to be commit 42070b09cba8adda1e7606e08764b1f202b33321)

16 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

metze
(This used to be commit ececda44c74ae4ccbaa0492acb67a88aa5c05126)

16 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

metze
(This used to be commit 13ccd405b5dbb595e5ab67879260462e5a767a8b)

16 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

metze
(This used to be commit b7ab1c0039cd8000861cd89ca072d9d2b0bbf9de)

16 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
test.

Volker
(This used to be commit 6b91bb93fad84e054c19f8c9bc4145234f171a3c)

16 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

metze
(This used to be commit 8d80629c5dde44a06b597e1247ec96ef1cd3f2e1)

16 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...

metze
(This used to be commit 56e17f4c0cf2edab732658ab190723299850e2cd)

16 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

metze
(This used to be commit 49e6e88778785ba33042c5d4f6bcdfbd27275083)

16 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  helo..lk 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. .lkj..lk
[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

metze
(This used to be commit 4aa96d287e9b834f1f6cc95cf2b6a98c0a8eefc0)

16 years agor20468: Patch from Martin Kuehl <kuehl@univention.de> to make it easier to load
Andrew Bartlett [Tue, 2 Jan 2007 11:50:04 +0000 (11:50 +0000)]
r20468: Patch from Martin Kuehl <kuehl@univention.de> 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)

16 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)

16 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

metze
(This used to be commit 5a15c2748847e0b82e0fd4945c37d21025fad273)

16 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)

16 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...

metze
(This used to be commit cc1798f85bb52b2b2fb8971e4cd5d6153e58a3c7)

16 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

metze
(This used to be commit 49c7da812c290e23bb65b98a2710fb90c4a0ece2)

16 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

metze
(This used to be commit ef477b314b09bac16c8da93700a0f952f632a2ea)

16 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)

16 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)

16 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)

16 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)

16 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)

16 years agor20455: Apply some of the patches from Martin Kuehl <kuehl@univention.de> to
Andrew Bartlett [Tue, 2 Jan 2007 01:07:44 +0000 (01:07 +0000)]
r20455: Apply some of the patches from Martin Kuehl <kuehl@univention.de> 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)

16 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...

metze
(This used to be commit 9b31e8c1f73aaf71522e33174c8c5415a95ac626)

16 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

metze
(This used to be commit 72d059e8ca5e0b4708e2a62688592813d0482c82)

16 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

metze
(This used to be commit 6383e56be88898bf533cc2476ab9e533b2cb0eec)

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

metze
(This used to be commit dbabec633881d7b2521aa17b484e425e6db36e01)

16 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)

16 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)

16 years agor20444: WEB Application framework / SWAT.
Derrell Lipman [Sun, 31 Dec 2006 20:05:29 +0000 (20:05 +0000)]
r20444: WEB Application framework / SWAT.

We're now at the stage where the web application framework should build and
install automatically.

Derrell
(This used to be commit 0201baef46c1701007e0a4cdd95edee287939318)

16 years agor20441: fix compiler warnings
Stefan Metzmacher [Sun, 31 Dec 2006 13:05:30 +0000 (13:05 +0000)]
r20441: fix compiler warnings

metze
(This used to be commit 44d09e37082a4584040d0acf36109f221a96b184)

16 years agor20440: some OID syntax attributes need special handling
Stefan Metzmacher [Sun, 31 Dec 2006 12:56:11 +0000 (12:56 +0000)]
r20440: some OID syntax attributes need special handling

metze
(This used to be commit 0ce5a3471a6a4e7dfc2eab1ae69964a8c5bb0aea)

16 years agor20439: this should be const pointers
Stefan Metzmacher [Sun, 31 Dec 2006 12:55:28 +0000 (12:55 +0000)]
r20439: this should be const pointers

metze
(This used to be commit 1313b4774542fe5a0013d501225d5b4e8d585128)

16 years agor20438: - bail out on conversation errors
Stefan Metzmacher [Sun, 31 Dec 2006 12:32:15 +0000 (12:32 +0000)]
r20438: - bail out on conversation errors
- create a valid ldb_message
- dump the ldb_message if --option="become dc:dump objects=yes" is passed to smbtorture

metze
(This used to be commit 34e126f6590e3fc7ac1f46e09e777993ca10401d)

16 years agor20437: add conversation function for OID's
Stefan Metzmacher [Sun, 31 Dec 2006 12:30:06 +0000 (12:30 +0000)]
r20437: add conversation function for OID's

metze
(This used to be commit 76ae50389d9bd2e8fc58ec5914544a865b1b8969)

16 years agor20436: add more comments and add macros signed versions of the 64 bit
Stefan Metzmacher [Sun, 31 Dec 2006 12:28:16 +0000 (12:28 +0000)]
r20436: add more comments and add macros signed versions of the 64 bit
macros

metze
(This used to be commit e77d0d1532e800e0a7b0a4a30cf9b4d97761ee52)

16 years agor20435: implement the syntax conversation functions for most of the attribute syntaxes
Stefan Metzmacher [Sun, 31 Dec 2006 12:18:59 +0000 (12:18 +0000)]
r20435: implement the syntax conversation functions for most of the attribute syntaxes

metze
(This used to be commit d704c3fca819b042cec50141d25dd2d6a8356418)

16 years agor20425: a w2k3 forest doesn't have objects with attribute values
Stefan Metzmacher [Sat, 30 Dec 2006 20:06:27 +0000 (20:06 +0000)]
r20425: a w2k3 forest doesn't have objects with attribute values
using the following attribute syntaxes by default:

String(Numeric)
String(Printable)
String(Teletex)
String(IA5)
String(UTC-Time)
String(Case Sensitive)
Object(OR-Name)
Object(Access-Point)
Object(DN-String)

metze
(This used to be commit c10e1487708003d5a6c06b1547ce46ed4e4b0fe7)

16 years agor20423: Fix debug output
Volker Lendecke [Sat, 30 Dec 2006 17:53:28 +0000 (17:53 +0000)]
r20423: Fix debug output
(This used to be commit 6afc394d9349782788cc06a38750f0723a5a55e7)

16 years agor20422: A torture test extension for Jeremy
Volker Lendecke [Sat, 30 Dec 2006 17:39:27 +0000 (17:39 +0000)]
r20422: A torture test extension for Jeremy
(This used to be commit 1bcc421dab53adaf3b6c6d7f51c23c80cb637a95)

16 years agor20421: - delay the schema analysis untill the full schema is tranferred
Stefan Metzmacher [Sat, 30 Dec 2006 11:56:00 +0000 (11:56 +0000)]
r20421: - delay the schema analysis untill the full schema is tranferred
- call translation hooks for all attributes (but ignore the error for now)

metze
(This used to be commit c84668bf0da5a791a36f82533b6c0de99b0fe6bf)

16 years agor20420: create infrastructure to convert attribute values from drsuapi to ldb
Stefan Metzmacher [Sat, 30 Dec 2006 11:51:35 +0000 (11:51 +0000)]
r20420: create infrastructure to convert attribute values from drsuapi to ldb

metze
(This used to be commit 17c52ed27613051beecd5bbf72c6e6e749a21d27)

16 years agor20419: remove unused ojectSid and NTTIME_1sec cases
Stefan Metzmacher [Sat, 30 Dec 2006 11:46:22 +0000 (11:46 +0000)]
r20419: remove unused ojectSid and NTTIME_1sec cases

metze
(This used to be commit a801041f1f03b97154d79139d764010453bd9263)

16 years agor20418: start to get step by step rid of the union for the attribute
Stefan Metzmacher [Sat, 30 Dec 2006 10:51:04 +0000 (10:51 +0000)]
r20418: start to get step by step rid of the union for the attribute
specific attribute values.

start with ntSecurityDescriptor

metze
(This used to be commit c72f5a16b4de2b8cc4f4a9c21b0dc3915a1d6c9f)

16 years agor20417: - fix pushing of drsuapi_DsAttributeValueDataBlob
Stefan Metzmacher [Sat, 30 Dec 2006 10:42:01 +0000 (10:42 +0000)]
r20417: - fix pushing of drsuapi_DsAttributeValueDataBlob
- make drsuapi_DsReplicaAttribute public so that the ndr_print_*
  function can be used from the outside

metze
(This used to be commit f12776b9a9de55d5c67335d5e59c0d83a74ac939)

16 years agor20416: fix compiler warnings
Stefan Metzmacher [Sat, 30 Dec 2006 10:15:54 +0000 (10:15 +0000)]
r20416: fix compiler warnings

metze
(This used to be commit bfb0c04dffdff62a6535aa31b888db636ac2f8d5)

16 years agor20415: add a function to get the lDAPDisplayName for an objectClass
Stefan Metzmacher [Sat, 30 Dec 2006 09:48:05 +0000 (09:48 +0000)]
r20415: add a function to get the lDAPDisplayName for an objectClass
or attribute

metze
(This used to be commit 437db390795be8d6a375f2d44240b66d4406e148)

16 years agor20414: Start to make SWAT usable by others. This is just a start...
Derrell Lipman [Sat, 30 Dec 2006 05:09:59 +0000 (05:09 +0000)]
r20414: Start to make SWAT usable by others.  This is just a start...
(This used to be commit 26a34037a7ca6fbd05c5a6f7c2d5973e34bc6918)

16 years agor20410: add functions to access dsdb_attributes and dsdb_classes by oid, uint32_id...
Stefan Metzmacher [Fri, 29 Dec 2006 12:36:41 +0000 (12:36 +0000)]
r20410: add functions to access dsdb_attributes and dsdb_classes by oid, uint32_id or ldap name

they will be optimized uing binary searches later...

metze
(This used to be commit e6a24c2172009b0225fa189b7107217838d286d3)

16 years agor20409: load the attribute syntax for the attribute
Stefan Metzmacher [Fri, 29 Dec 2006 11:50:33 +0000 (11:50 +0000)]
r20409: load the attribute syntax for the attribute

metze
(This used to be commit d042aac3f72ab2022479bee48e49a0ab289315f5)

16 years agor20408: fix cut'n'paste error
Stefan Metzmacher [Fri, 29 Dec 2006 11:48:15 +0000 (11:48 +0000)]
r20408: fix cut'n'paste error

metze
(This used to be commit af78a86d2cf0f05a048c5dfd86ea21c92a9d75b0)

16 years agor20407: the oMObjectClass values are not padded to 10 bytes!
Stefan Metzmacher [Fri, 29 Dec 2006 11:46:52 +0000 (11:46 +0000)]
r20407: the oMObjectClass values are not padded to 10 bytes!

metze
(This used to be commit f860dd2dca391edf55975d582dda0c1d01ddb6e3)

16 years agor20406: Metze's change in -r 19662 broke Kerberos logins from Win2k3.
Andrew Bartlett [Fri, 29 Dec 2006 11:01:37 +0000 (11:01 +0000)]
r20406: Metze's change in -r 19662 broke Kerberos logins from Win2k3.

The reason is long and complex, but is due to forwardable tickets:

We would extract the forwardable ticket from the GSSAPI payload, and
look for the expiry time of the ticket for krbtgt/REALM@REALM.

However, with -r 19662 the ticket is given to the client as being for
krbtgt/realm@REALM, as it asked for a lower case realm.  Heimdal is
case sensitive for realms, and bails out.  (It should just not store
the forwarded ticket).

We need to co-ordinate changes in the KDC with relaxation of checks in
Heimdal, and a better kerberos behaviour testsuite.

Andrew Bartlett
(This used to be commit be4c1a36b0e31cbb680d55e8d933818dc3c7435b)

16 years agor20405: add an array with attribute syntexes
Stefan Metzmacher [Fri, 29 Dec 2006 10:35:44 +0000 (10:35 +0000)]
r20405: add an array with attribute syntexes

metze
(This used to be commit 1a21eb700003db1d7853c9be330b2583db9bff03)

16 years agor20404: add error code for missing attribute syntax
Stefan Metzmacher [Fri, 29 Dec 2006 10:34:15 +0000 (10:34 +0000)]
r20404: add error code for missing attribute syntax

metze
(This used to be commit 769ce9799b0e9d1ccc5f2155440e5dedf655d40c)

16 years agor20400: this let ndrdump display the content of a frsrpc_FrsSendCommPkt()
Stefan Metzmacher [Fri, 29 Dec 2006 07:31:04 +0000 (07:31 +0000)]
r20400: this let ndrdump display the content of a frsrpc_FrsSendCommPkt()
call between 2 w2k3 boxes nicely, but I'm not sure if the amount
of 9 chunks is fixed...

metze
(This used to be commit adceac88519b5d61b759eac6e0b152da0529f85c)

16 years agor20399: More SWAT updates
Derrell Lipman [Fri, 29 Dec 2006 04:15:45 +0000 (04:15 +0000)]
r20399: More SWAT updates

The LDB Browser has now been rewritten as a SWAT module.  That brings the
current number of modules to three: Samba Statistics/Status, LDB Browser and
API Documentation.  This should provide a good working example for Brad and
his class, for how additional modules can be added.

The basic infrastructure for SWAT is now entirely in place.  Next step is to
deal with putting the qooxdoo developers' kit someplace, as it is required for
making changes to SWAT, and reorganizing the swat directory hierarchy to
remove (or move to elsewhere) a bunch of old cruft.  The final step will be
ensuring that SWAT installs during a Samba build, so that it becomes useful.
(Much of this "next" and "final" step stuff will likely have to wait until
after New Years.

Derrell
(This used to be commit 1f33d1276c1b207a1e235f347fef66f316a88f65)

16 years agor20398: Revert this patch, which caused failures in the samba3sam.js build farm test.
Andrew Bartlett [Fri, 29 Dec 2006 01:51:45 +0000 (01:51 +0000)]
r20398: Revert this patch, which caused failures in the samba3sam.js build farm test.

The interaction of the samldb.c module and this function is complex...

Andrew Bartlett
(This used to be commit bf7ab75875f722cc8499d24d455a94dd83b986ad)

16 years agor20397: Another user of the DsCrackNames call needs a rename following IDL clarification.
Andrew Bartlett [Fri, 29 Dec 2006 00:36:57 +0000 (00:36 +0000)]
r20397: Another user of the DsCrackNames call needs a rename following IDL clarification.

Andrew Bartlett
(This used to be commit 77169958fc42d8ea4561f6218919a34c330259d3)

16 years agor20396: Missed one user of the renamed elements.
Andrew Bartlett [Thu, 28 Dec 2006 23:32:43 +0000 (23:32 +0000)]
r20396: Missed one user of the renamed elements.

Andrew Bartlett
(This used to be commit a7c83eb7b8e000c51790a9eae67c59c04a4a877c)