samba.git
16 years agor20382: systemAuxiliaryClass and auxiliaryClass are also multivalued attributes
Stefan Metzmacher [Thu, 28 Dec 2006 13:06:29 +0000 (13:06 +0000)]
r20382: systemAuxiliaryClass and auxiliaryClass are also multivalued attributes

metze
(This used to be commit 5440c0a99fd8dced9020a47af4dbee74df504219)

16 years agor20381: verify the incoming oid mappings and schema info for the config and domain...
Stefan Metzmacher [Thu, 28 Dec 2006 12:54:55 +0000 (12:54 +0000)]
r20381: verify the incoming oid mappings and schema info for the config and domain partition too

metze
(This used to be commit 1fab753b1da608d49bd976e01286f800c2d42965)

16 years agor20380: verify the incoming schema info and oid mappings
Stefan Metzmacher [Thu, 28 Dec 2006 12:50:39 +0000 (12:50 +0000)]
r20380: verify the incoming schema info and oid mappings

metze
(This used to be commit 27193e4b3d7d43e6fee6f35094ab60ff2531a474)

16 years agor20379: - make sure the schema info blob is 21 bytes long
Stefan Metzmacher [Thu, 28 Dec 2006 12:49:53 +0000 (12:49 +0000)]
r20379: - make sure the schema info blob is 21 bytes long
- add a function to verify the incoming mapping and schema info

metze
(This used to be commit 5f0da4a3ae4eae8a6f14f813a65583cef78e73e4)

16 years agor20378: add new error code that says the schema mismatches between DC's
Stefan Metzmacher [Thu, 28 Dec 2006 12:17:01 +0000 (12:17 +0000)]
r20378: add new error code that says the schema mismatches between DC's

metze
(This used to be commit e769029f42f848db8121c7dcfe5be261861776c8)

16 years agor20377: Rework the CrackNames implementation to handle some of the BUILTIN sid
Andrew Bartlett [Thu, 28 Dec 2006 04:52:45 +0000 (04:52 +0000)]
r20377: Rework the CrackNames implementation to handle some of the BUILTIN sid
cases.

Adjust our 'look for this value in this attribute, of the result'
function samdb_find_attribute() to use the correct comparison
function, no matter what that may be.

Andrew Bartlett
(This used to be commit 3c5ff4e68748cce0bb93d7d141083922d92c3845)

16 years agor20376: make module registration substantially cleaner
Derrell Lipman [Thu, 28 Dec 2006 04:44:34 +0000 (04:44 +0000)]
r20376: make module registration substantially cleaner
(This used to be commit 466f17ea3c8fa4a0a93047abd3529651b4fc9bdc)

16 years agor20375: Work to improve our CrackNames implementation.
Andrew Bartlett [Thu, 28 Dec 2006 03:33:52 +0000 (03:33 +0000)]
r20375: Work to improve our CrackNames implementation.

We now correctly handle the canonical name as a CrackNames source, for
more than just the DNS domain object.

Andrew Bartlett
(This used to be commit 629c72f0c27333cc9ede158e3525e8b03dd295d3)

16 years agor20374: It's still 2006 (just...). Add copyright.
Andrew Bartlett [Thu, 28 Dec 2006 03:31:50 +0000 (03:31 +0000)]
r20374: It's still 2006 (just...).   Add copyright.

Andrew Bartlett
(This used to be commit 21b38ae1e4c48dab4b89f234f4dc26a3aed401c3)

16 years agor20373: When adding a base to a "" DN, don't precede it with a comma (,)
Andrew Bartlett [Thu, 28 Dec 2006 03:31:18 +0000 (03:31 +0000)]
r20373: When adding a base to a "" DN, don't precede it with a comma (,)

Andrew Bartlett
(This used to be commit ef1ca30180b1b225579a8200b65a4853a135602f)

16 years agor20369: Remember to break if we find a match.
Andrew Bartlett [Wed, 27 Dec 2006 23:54:40 +0000 (23:54 +0000)]
r20369: Remember to break if we find a match.

Andrew Bartlett
(This used to be commit 4bd8dbcf41f04be28e2f5d6e15a22f08ba80b948)

16 years agor20367: don't re-load API documentation each time the module is selected
Derrell Lipman [Wed, 27 Dec 2006 22:33:10 +0000 (22:33 +0000)]
r20367: don't re-load API documentation each time the module is selected
(This used to be commit 233fc754c44692034c15c82fbafbc47cc40edeb6)

16 years agor20366: remove auto-genereated file
Derrell Lipman [Wed, 27 Dec 2006 21:25:18 +0000 (21:25 +0000)]
r20366: remove auto-genereated file
(This used to be commit 2080227ac69101a3409e77f47e3ae6869ab604a6)

16 years agor20365: SWAT updates, part 2
Derrell Lipman [Wed, 27 Dec 2006 21:24:27 +0000 (21:24 +0000)]
r20365: SWAT updates, part 2
(This used to be commit 5b6b134a0375a527b123617d7d94fa52d7604c02)

16 years agor20364: SWAT updates, part 1
Derrell Lipman [Wed, 27 Dec 2006 21:22:01 +0000 (21:22 +0000)]
r20364: SWAT updates, part 1

These next few check-ins will add a working Statistics module to SWAT, and add
an API Documentation module as well.

Next step will be to modify the LDB browser to work with this new module and
fsm structure.

Derrell
(This used to be commit 29db71587f1332a9c44d5993a2be389f3a392ce4)

16 years agor20360: level -4 of DsReplicaGetInfo(), which gives back all open bind handles
Stefan Metzmacher [Wed, 27 Dec 2006 18:00:20 +0000 (18:00 +0000)]
r20360: level -4 of DsReplicaGetInfo(), which gives back all open bind handles
returned by DsBind() on all drsuapi connection also contains the client
ip address. Also the u1 value of the clients DsBindInfoX structure is returned
in u5 here...

metze
(This used to be commit 1adb0fb291d788d0bf10a49b05970ac72eb4764e)

16 years agor20359: level -1 of DsGetDomainControllerInfo gives back a list
Stefan Metzmacher [Wed, 27 Dec 2006 17:57:20 +0000 (17:57 +0000)]
r20359: level -1 of DsGetDomainControllerInfo gives back a list
of all active connections to the Directory Service Agent (DSA)
(This can be LDAP or DRSUAPI connections)

abartlet: you had just luck by using flag(BIG_ENDIAN) as BIG_ENDIAN is
          defined in <endian.h>, it should be flag(NDR_BIG_ENDIAN)...

metze
(This used to be commit c7e639763de1f8ddccfb954227feeaddb7386edc)

16 years agor20358: - fix ejs generated code for ipv4address
Stefan Metzmacher [Wed, 27 Dec 2006 15:36:50 +0000 (15:36 +0000)]
r20358: - fix ejs generated code for ipv4address
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE}))
  is much more generic than ($e->{TYPE} ne "string")
  and handles ipv4address and other special types...

metze
(This used to be commit 02d2ce65e614a0c99ef3246bc738eb0f8d91b24a)

16 years agor20357: run_trans2test and torture_trans2_scan are two separate tests
Volker Lendecke [Wed, 27 Dec 2006 15:24:48 +0000 (15:24 +0000)]
r20357: run_trans2test and torture_trans2_scan are two separate tests
(This used to be commit 2e06c38a98e3891ed1f9e823614c3f0c3d279afe)

16 years agor20354: Trusted domains don't have a surname, I think we want 'cn' here.
Andrew Bartlett [Wed, 27 Dec 2006 03:23:25 +0000 (03:23 +0000)]
r20354: Trusted domains don't have a surname, I think we want 'cn' here.

Andrew Bartlett
(This used to be commit 05debeaced7296762b293cc804a71abcfb096066)

16 years agor20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because as
Andrew Bartlett [Wed, 27 Dec 2006 02:01:38 +0000 (02:01 +0000)]
r20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because as
usual things are more complex than they appear.

Also remove the incorrect server-side implementation, which blindly
assumed some sense of consistancy across the API switch levels.

Andrew Bartlett
(This used to be commit 79941adbff843f5027dacd31b972deca4a1557ec)

16 years agor20352: Use the common function to find the DN for a domain.
Andrew Bartlett [Wed, 27 Dec 2006 01:59:33 +0000 (01:59 +0000)]
r20352: Use the common function to find the DN for a domain.

Andrew Bartlett
(This used to be commit 929fd1beee5cab647702a9b8d8d5e4c2aab23d11)

16 years agor20351: ensure these variables are set in the right place in the Makefile
Andrew Tridgell [Wed, 27 Dec 2006 00:36:03 +0000 (00:36 +0000)]
r20351: ensure these variables are set in the right place in the Makefile
(This used to be commit 0ed2c0a0afea5b0d4c5f49e2493cb6eae694fe40)

16 years agor20350: configure svn:ignore values via a .ignore file
Derrell Lipman [Mon, 25 Dec 2006 19:39:36 +0000 (19:39 +0000)]
r20350: configure svn:ignore values via a .ignore file
(This used to be commit 53c5ac7ea6bded2f6019c93027511d5583166bb7)

16 years agor20348: don't check in auto-generated code
Derrell Lipman [Mon, 25 Dec 2006 19:30:02 +0000 (19:30 +0000)]
r20348: don't check in auto-generated code
(This used to be commit 7ddf1247eee19f8d1430c9487c6823e7d6d51c42)

16 years agor20347: added generic rpc fsm and statistics-specific fsm. next step: statistics gui
Derrell Lipman [Mon, 25 Dec 2006 19:23:33 +0000 (19:23 +0000)]
r20347: added generic rpc fsm and statistics-specific fsm.  next step: statistics gui
(This used to be commit 68fd2c76e4377ce59636aac6e3ce7a2ba798f402)

16 years agor20346: This is the beginnings of a framework for a complete SWAT. It will provide
Derrell Lipman [Sun, 24 Dec 2006 21:42:02 +0000 (21:42 +0000)]
r20346: This is the beginnings of a framework for a complete SWAT.  It will provide
for easily adding modules, and using as much common code as possible.
Although all modules are loaded to the browser as part of the application,
modules are not actually initialized, their finite state machines generated,
or their graphical user interfaces built until they are selected to be viewed
for the first time.

I'm checking this in at this early stage because I promised Brad some
check-ins a week ago, and the flu has kept me unable to do anything for the
past 10 days.  Now that I'm back in working order, I hope to be building on
this regularly over the next few days.

Derrell
(This used to be commit 9302ef10173a8eaa31935323f899e65f6e7ae95c)

16 years agor20341: Make sure we do not regress on r20338 in Samba3
Volker Lendecke [Sun, 24 Dec 2006 15:09:47 +0000 (15:09 +0000)]
r20341: Make sure we do not regress on r20338 in Samba3
(This used to be commit 64ee399c964c2935c1386123e2e636c266c8c6a8)

16 years agor20332: add mastered-By and msDs-mastered-By attributes to the domain object
Stefan Metzmacher [Sat, 23 Dec 2006 10:55:45 +0000 (10:55 +0000)]
r20332: add mastered-By and msDs-mastered-By attributes to the domain object
the config and schema head objects already have them

metze
(This used to be commit 6d43c1963856c5140ca3447aa2f9a276035eff8c)

16 years agor20331: the last entry in the oid mapping array which starts with 0xFF
Stefan Metzmacher [Sat, 23 Dec 2006 10:39:26 +0000 (10:39 +0000)]
r20331: the last entry in the oid mapping array which starts with 0xFF
is the content of the schemaInfo attribute of the schema head object

metze
(This used to be commit bfb7756bb0f1bbd9a7a17c9689cf2ea351247116)

16 years agor20328: use prereq function instead of local implementation.
Rafal Szczesniak [Fri, 22 Dec 2006 22:34:45 +0000 (22:34 +0000)]
r20328: use prereq function instead of local implementation.

rafal
(This used to be commit f79dcd41e78662c376d29cf210436c0a28cce4e8)

16 years agor20327: start to analyse the schema content
Stefan Metzmacher [Fri, 22 Dec 2006 21:31:57 +0000 (21:31 +0000)]
r20327: start to analyse the schema content

metze
(This used to be commit fa59f168b2c4e56c88c415110c220515a148a592)

16 years agor20326: always set the binding->target_hostname!
Stefan Metzmacher [Fri, 22 Dec 2006 19:38:32 +0000 (19:38 +0000)]
r20326: always set the binding->target_hostname!
we crashed before trying ncacn_np: for frsrpc
as frsrpc doesn't have a ncacn_np endpoint listed
in the idl header and the endpoint mapping code
was trying our smbcli lib with a
NULL target_hostname -> called_name

metze
(This used to be commit ed49e4b1f87db483768dec36732b0c9765d1d4bc)

16 years agor20325: handle NULL strings in is_ipaddress()
Stefan Metzmacher [Fri, 22 Dec 2006 18:53:39 +0000 (18:53 +0000)]
r20325: handle NULL strings in is_ipaddress()

metze
(This used to be commit b8b69ff6bec0c1d412b1f935721b45ef07e9c9f5)

16 years agor20323: allow empty dcerpc reqeusts, this fixes the RPC-COUNTCALLS test
Stefan Metzmacher [Fri, 22 Dec 2006 18:22:40 +0000 (18:22 +0000)]
r20323: allow empty dcerpc reqeusts, this fixes the RPC-COUNTCALLS test

metze
(This used to be commit bbd086f2edf81028f2370be8ce0739144cd64b02)

16 years agor20322: I assume the options attribute of the nTDSDSA object contains
Stefan Metzmacher [Fri, 22 Dec 2006 17:40:34 +0000 (17:40 +0000)]
r20322: I assume the options attribute of the nTDSDSA object contains
mutiple flags not just 1 for being a global catalog

metze
(This used to be commit 202645e196b1425f9043bd34dd02a1418e2e3dd9)

16 years agor20321: fix the samdb_partitions_dn() and samdb_sites_dn() calls,
Stefan Metzmacher [Fri, 22 Dec 2006 17:39:01 +0000 (17:39 +0000)]
r20321: fix the samdb_partitions_dn() and samdb_sites_dn() calls,
to use the new samdb_config_dn() call.

also add samdb_ wrappers for samdb_schema_dn() and samdb_config_dn()

metze
(This used to be commit 80b8a968243aadeef7512c03278dbb0d4e88a9f2)

16 years agor20320: add missing prototypes
Stefan Metzmacher [Fri, 22 Dec 2006 17:27:07 +0000 (17:27 +0000)]
r20320: add missing prototypes

metze
(This used to be commit b9d0ea3954e3f76436e976555540dd29dacd621d)

16 years agor20319: fix compiler warnings
Stefan Metzmacher [Fri, 22 Dec 2006 17:26:09 +0000 (17:26 +0000)]
r20319: fix compiler warnings

metze
(This used to be commit 3769270a6a22dd29845e889b0601fcdf7c46acb5)

16 years agor20318: do what the printf statement says:-)
Stefan Metzmacher [Fri, 22 Dec 2006 17:13:57 +0000 (17:13 +0000)]
r20318: do what the printf statement says:-)

metze
(This used to be commit dd9ef6e5ab471665d019fbda87c90f5c95bd57ea)

16 years agor20317: store references to all important naming contexts.
Stefan Metzmacher [Fri, 22 Dec 2006 16:59:07 +0000 (16:59 +0000)]
r20317: store references to all important naming contexts.

add ldb_get_config_basedn(), ldb_get_schema_basedn()
and ldb_get_root_basedn()

metze
(This used to be commit e28cb83904299fe01e8c0797f5429387f254ed1e)

16 years agor20316: fix compiler warning
Stefan Metzmacher [Fri, 22 Dec 2006 16:53:12 +0000 (16:53 +0000)]
r20316: fix compiler warning

metze
(This used to be commit 58cbbaa4b49bfed6d4e9c5802af988864e06675f)

16 years agor20315: Implement the server side of DsGetDomainControllerInfo. This is a
Andrew Bartlett [Fri, 22 Dec 2006 07:04:06 +0000 (07:04 +0000)]
r20315: Implement the server side of DsGetDomainControllerInfo.  This is a
supprisingly complex call...

It turns out that the in/out parameter 'level' is not in/out, but set
seperatly by the server-side code from r->req.req1.level.

This commit also breaks out some common code from samldb into samdb.

Andrew Bartlett
(This used to be commit 2eb9e6445c64840399171f4f56b1e43786dbcfa7)

16 years agor20314: I think some hosts need this to get the right ASN1 header deps
Andrew Bartlett [Fri, 22 Dec 2006 07:01:29 +0000 (07:01 +0000)]
r20314: I think some hosts need this to get the right ASN1 header deps
(This used to be commit 82a09a111b61a099f2ea5cf013eb523191bf9de2)

16 years agor20311: Check one more samba3 error path for t2mkdir
Volker Lendecke [Thu, 21 Dec 2006 22:16:16 +0000 (22:16 +0000)]
r20311: Check one more samba3 error path for t2mkdir
(This used to be commit 0f018cca6f70cb44ab436b3a66edb01e57351eaf)

16 years agor20309: Don't treat non-supported EAs as fatal against Samba3.
Volker Lendecke [Thu, 21 Dec 2006 21:15:59 +0000 (21:15 +0000)]
r20309: Don't treat non-supported EAs as fatal against Samba3.

Volker
(This used to be commit 52d9c7ed0acbc286151117bb876559e13981fd44)

16 years agor20308: ContextSimple can be zero length -- seen in a multi-step gssapi ldap bind...
Volker Lendecke [Thu, 21 Dec 2006 21:14:53 +0000 (21:14 +0000)]
r20308: ContextSimple can be zero length -- seen in a multi-step gssapi ldap bind. Did
not find that in Samba3 code, so there's nothing to port.

Volker
(This used to be commit 9bdc19b6d5fe3dff57a07f4b760840d0043a53ad)

16 years agor20307: remove unused vars
Stefan Metzmacher [Thu, 21 Dec 2006 20:52:31 +0000 (20:52 +0000)]
r20307: remove unused vars

metze
(This used to be commit 0352b7bbc659f3683355b793630fe44e9fd5b8cb)

16 years agor20306: remove the static oid mapping table
Stefan Metzmacher [Thu, 21 Dec 2006 20:51:50 +0000 (20:51 +0000)]
r20306: remove the static oid mapping table
and attach the table to the dsdb_schema

metze
(This used to be commit df63995ec5f322d17145664c1f174783861e1723)

16 years agor20305: as the oid mapping table is dynnamic it makes no sense
Stefan Metzmacher [Thu, 21 Dec 2006 20:00:55 +0000 (20:00 +0000)]
r20305: as the oid mapping table is dynnamic it makes no sense
to test the mappings when we got the schema via LDAP
as we don't get the mappings

metze
(This used to be commit cfcd6285e1a5367ea4cfa9190658085ed65910b5)

16 years agor20303: try to fix 'make install' on solaris 8, ln -fs doesn't seem to work if
Stefan Metzmacher [Thu, 21 Dec 2006 10:04:08 +0000 (10:04 +0000)]
r20303: try to fix 'make install' on solaris 8, ln -fs doesn't seem to work if
the link already exist

metze
(This used to be commit 6a089d48ec1424eea876ef9c1c65e74b5ee33781)

16 years agor20302: added support for 64 bit file offsets in NBENCH
Andrew Tridgell [Thu, 21 Dec 2006 06:48:42 +0000 (06:48 +0000)]
r20302: added support for 64 bit file offsets in NBENCH
(This used to be commit 9a9f18914139370311a13044bde7948a2a901738)

16 years agor20301: add an option torture:readonly which allows the NBENCH test to be run
Andrew Tridgell [Thu, 21 Dec 2006 05:34:26 +0000 (05:34 +0000)]
r20301: add an option torture:readonly which allows the NBENCH test to be run
read only. This is only any use with customer loadfiles, and
pre-created data. I'm using this to test performance as a video
server, with pre-created video files.
(This used to be commit 48a322a9c19f10fa95c1f8092c643d8e10df1303)

16 years agor20300: Trim number of shared libs significantly.
Jelmer Vernooij [Thu, 21 Dec 2006 03:39:33 +0000 (03:39 +0000)]
r20300: Trim number of shared libs significantly.
(This used to be commit 40406355135d5bebd9dad27168ab695657271f4f)

16 years agor20299: Disable two new tests that are apparently broken.
Jelmer Vernooij [Thu, 21 Dec 2006 02:48:46 +0000 (02:48 +0000)]
r20299: Disable two new tests that are apparently broken.
(This used to be commit b3f64869fc4590850203a231ecf6810ae9f1d8cf)

16 years agor20298: Fix pidl tests (missing symlink..).
Jelmer Vernooij [Thu, 21 Dec 2006 01:51:35 +0000 (01:51 +0000)]
r20298: Fix pidl tests (missing symlink..).
(This used to be commit ab3d57394630cefc1fefe859c8bd3d56f6e63695)

16 years agor20297: Finally got to the bottom of why we were failing the RPC-CRACKNAMES
Andrew Bartlett [Thu, 21 Dec 2006 00:53:38 +0000 (00:53 +0000)]
r20297: Finally got to the bottom of why we were failing the RPC-CRACKNAMES
test against my win2k3 domain.  I have a child domain, and as such the
BUILTIN domain SID appears multiple times in the tree, and is
therefore not unique.

Andrew Bartlett
(This used to be commit 41e42843be783dd88785ba8d3a9bccacc68053a8)

16 years agor20295: Add a couple more tests to the CrackNames test.
Andrew Bartlett [Thu, 21 Dec 2006 00:22:20 +0000 (00:22 +0000)]
r20295: Add a couple more tests to the CrackNames test.
(This used to be commit 115ed29fd8fcfd0ad3ebbabbe01fbc6259ce84bc)

16 years agor20294: Without this we don't do the ADS join against Win2k3 SP1
Andrew Bartlett [Wed, 20 Dec 2006 23:43:05 +0000 (23:43 +0000)]
r20294: Without this we don't do the ADS join against Win2k3 SP1

Andrew Bartlett
(This used to be commit 7a7f1a97644ab420cf43282d6979881c5c4c59b6)

16 years agor20293: implement store chunk hook for libnet_BecomeDC()
Stefan Metzmacher [Wed, 20 Dec 2006 21:54:06 +0000 (21:54 +0000)]
r20293: implement store chunk hook for libnet_BecomeDC()

metze
(This used to be commit aba497f2fdb79e4a61c028501d4d33a3f678ba73)

16 years agor20292: set ntds_dn_str if DsAddEntry() was successful
Stefan Metzmacher [Wed, 20 Dec 2006 21:17:19 +0000 (21:17 +0000)]
r20292: set ntds_dn_str if DsAddEntry() was successful

metze
(This used to be commit 5cb59860676e86764cfaf7cd1c6e632c95badeb9)

16 years agor20291: implement prepare_db hook of libnet_BecomeDC()
Stefan Metzmacher [Wed, 20 Dec 2006 21:14:44 +0000 (21:14 +0000)]
r20291: implement prepare_db hook of libnet_BecomeDC()

metze
(This used to be commit 07f1075d469833e10c2f0b0d4578221c6a189b04)

16 years agor20288: fix a mem leak and remove useless code
Stefan Metzmacher [Wed, 20 Dec 2006 16:58:10 +0000 (16:58 +0000)]
r20288: fix a mem leak and remove useless code

metze
(This used to be commit 6d0c788f3dffb7a553464404ebd9c0487d668bc5)

16 years agor20286: handle the non oid string cases for pushing too
Stefan Metzmacher [Wed, 20 Dec 2006 16:53:29 +0000 (16:53 +0000)]
r20286: handle the non oid string cases for pushing too

metze
(This used to be commit 0777a8e749e8df88dd1b9f7be9e4f3012559243b)

16 years agor20285: pass more info to check_options hook and move behavior versions etc.
Stefan Metzmacher [Wed, 20 Dec 2006 16:34:35 +0000 (16:34 +0000)]
r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures

metze
(This used to be commit 15157bf5b94dacc868c49dbf750421eb221868ba)

16 years agor20284: Simplify OID primitive BER parsing.
Simo Sorce [Wed, 20 Dec 2006 15:51:02 +0000 (15:51 +0000)]
r20284: Simplify OID primitive BER parsing.
Do not require an artificial ASN.1 context to be setup.

Simo.
(This used to be commit 14b3b9861ae47498c74a6643e6979b3d85260a61)

16 years agor20283: pass in callbacks to libnet_BecomeDC() from the caller
Stefan Metzmacher [Wed, 20 Dec 2006 15:34:32 +0000 (15:34 +0000)]
r20283: pass in callbacks to libnet_BecomeDC() from the caller
and implement the check_options call

metze
(This used to be commit fc9669e2a081a614599f7cdce1e031e8a8134c67)

16 years agor20282: prepare callback infrastructure to check if the forest/domain
Stefan Metzmacher [Wed, 20 Dec 2006 14:49:40 +0000 (14:49 +0000)]
r20282: prepare callback infrastructure to check if the forest/domain
behaviors and the schema version is what the caller expects.
also a callback prepares the new database and commits chunks
to the partitions

metze
(This used to be commit 9b5116be2eb246eda2a4c63e86cf4f15f90b915e)

16 years agor20281: remove debug statement
Stefan Metzmacher [Wed, 20 Dec 2006 14:47:07 +0000 (14:47 +0000)]
r20281: remove debug statement

metze
(This used to be commit ebbd6263bbc30001e25603c5e4f45393b5fadb3d)

16 years agor20280: if the uint8_t array starts with 0xFF, then it's not a OID
Stefan Metzmacher [Wed, 20 Dec 2006 14:44:14 +0000 (14:44 +0000)]
r20280: if the uint8_t array starts with 0xFF, then it's not a OID
and we return the array as hexstring. this is always in the last
array member of the meppings array, and I is always 21 bytes long

w2k in mixed mode:   FF0000000000000000000000000000000000000000
w2k3 in mixed mode:  FF00000002A5DA73B101C43B449028E2F832FE466F
w2k3 in native mode: FF00000001635D94BDE62E2C4C9BAC9D6AFA4F69F8

I assume it's some kind of schema version...

metze
(This used to be commit db16f6382da50167b6cefdaeb8488b00a45fb928)

16 years agor20278: make it possible to use oid strings in the drsuapi instead of uint8_t arrays
Stefan Metzmacher [Wed, 20 Dec 2006 13:05:13 +0000 (13:05 +0000)]
r20278: make it possible to use oid strings in the drsuapi instead of uint8_t arrays
with ber encoded oid's

metze
(This used to be commit bc13b3690166b29df246cc4778b378e9cf2a22d7)

16 years agor20277: make sure the asn1 structure has a welldefined state after a asn1_free()
Stefan Metzmacher [Wed, 20 Dec 2006 12:53:58 +0000 (12:53 +0000)]
r20277: make sure the asn1 structure has a welldefined state after a asn1_free()

metze
(This used to be commit 7e7d1a1da2d64d28915a06c399072de1caf108c4)

16 years agor20276: remove unneeded talloc_strdup()
Stefan Metzmacher [Wed, 20 Dec 2006 12:51:29 +0000 (12:51 +0000)]
r20276: remove unneeded talloc_strdup()

metze
(This used to be commit c4733b20c7c113dc1abfb2219a899b80bbcc2875)

16 years agor20275: we should check for the oid the caller gave us!
Stefan Metzmacher [Wed, 20 Dec 2006 12:50:03 +0000 (12:50 +0000)]
r20275: we should check for the oid the caller gave us!

metze
(This used to be commit 4b9e196288f2deb3594db9ba2dd36d774e774574)

16 years agor20274: add missing return statement and make it more explicit that we return a NULL...
Stefan Metzmacher [Wed, 20 Dec 2006 12:49:11 +0000 (12:49 +0000)]
r20274: add missing return statement and make it more explicit that we return a NULL DATA_BLOB

metze
(This used to be commit 7256481f08b5e860308e73c2b51926b55b1f4c43)

16 years agor20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com>
Volker Lendecke [Wed, 20 Dec 2006 07:46:22 +0000 (07:46 +0000)]
r20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com>
(This used to be commit b053a7df8453527a9c2dfc03f3c35487fe75676f)

16 years agor20259: add function to start a fake tag so that asn1_read_OID_String()
Stefan Metzmacher [Tue, 19 Dec 2006 19:28:49 +0000 (19:28 +0000)]
r20259: add function to start a fake tag so that asn1_read_OID_String()
can work alone

metze
(This used to be commit ea70f6ff07930951d98a952b03963d0ba358fec4)

16 years agor20258: add functions to read and write asn1 encoded OID strings without leading tag
Stefan Metzmacher [Tue, 19 Dec 2006 19:25:49 +0000 (19:25 +0000)]
r20258: add functions to read and write asn1 encoded OID strings without leading tag

metze
(This used to be commit 576d4c54cca844164b90e5d6ec71fe44b59607b7)

16 years agor20251: I found out that the oid-prefix to uint32-id-prefix mapping is transferred
Stefan Metzmacher [Tue, 19 Dec 2006 13:38:42 +0000 (13:38 +0000)]
r20251: I found out that the oid-prefix to uint32-id-prefix mapping is transferred
in replication replies, but I don't know the exact encoding.

for example the oids are transferred as:

2.5.4 => uint8_t v[] = { 0x55, 0x04 };
2.5.5 => uint8_t v[] = { 0x55, 0x05 };
2.5.6 => uint8_t v[] = { 0x55, 0x06 };
2.5.18 => uint8_t v[] = { 0x55, 0x12 };
2.5.20 => uint8_t v[] = { 0x55, 0x14 };
2.5.21 => uint8_t v[] = { 0x55, 0x15 };
1.2.840.113556.1.2 => uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x02 };
1.2.840.113556.1.3 => uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x03 };
1.2.840.113556.1.4 => uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x04 };
1.2.840.113556.1.5 => uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05 };
1.2.840.113556.1.5.7000 => uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x14, 0x01, 0x05, 0xb6, 0x58 };
1.2.840.113549.1.9 => uint8_t v[] = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09 };
2.16.840.1.113730.3 => uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03 };
2.16.840.1.113730.3.1 => uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x01 };
2.16.840.1.113730.3.2 => uint8_t v[] = { 0x60, 0x86, 0x48, 0x01, 0x86, 0xf8, 0x42, 0x03, 0x02 };
0.9.2342.19200300.100.1 => uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x01 };
0.9.2342.19200300.100.4 => uint8_t v[] = { 0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x04 };
1.3.6.1.4.1.250.1 => uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x81, 0x7a, 0x01 };
1.3.6.1.4.1.1466.101.119=> uint8_t v[] = { 0x2b, 0x06, 0x01, 0x04, 0x01, 0x8b, 0x3a, 0x65, 0x77 };

if someone knows how the encoding works, please tell me:-)
I assume some ASN.1 encoding...

metze
(This used to be commit aa720a15319392fee5c532959192d0df5bf4c718)

16 years agor20234: metze pointed out that we are re-loading the cache records on each
Andrew Tridgell [Sun, 17 Dec 2006 23:11:46 +0000 (23:11 +0000)]
r20234: metze pointed out that we are re-loading the cache records on each
write. We should only be doing this if another process writes and
changes the seqnum. This avoids the extra cache loads
(This used to be commit 65858ebb68c25a672e9284e8cba9a6675902f1df)

16 years agor20233: add functions to create a dsdb_attribute and dsdb_class from
Stefan Metzmacher [Sun, 17 Dec 2006 21:58:49 +0000 (21:58 +0000)]
r20233: add functions to create a dsdb_attribute and dsdb_class from
a drsuapi_DsReplicaObject

metze
(This used to be commit 9168236ddd3d8ed9daa1e47be1e6b12d2bc348b6)

16 years agor20232: specify attribute name and structure element name always together
Stefan Metzmacher [Sun, 17 Dec 2006 20:19:06 +0000 (20:19 +0000)]
r20232: specify attribute name and structure element name always together
there're a view elements where both values doesn't match

LDAP-SCHEMA now successful loads the schema

metze
(This used to be commit 5d7827f45ec05acaca28c94fd6a5d25f148d011c)

16 years agor20231: - add more oid => uint32 id mappings
Stefan Metzmacher [Sun, 17 Dec 2006 20:11:40 +0000 (20:11 +0000)]
r20231: - add more oid => uint32 id mappings
- handle the case where mappings for 1.2.3.4. and 1.2.3.4.5. prefixes
  exist
- extend test suite for the mappings

metze
(This used to be commit 3af0a9b2c490ed1e4cd0af7faf814823bc60c264)

16 years agor20230: I found more mappings of OID string to uint32 id
Stefan Metzmacher [Sun, 17 Dec 2006 19:36:09 +0000 (19:36 +0000)]
r20230: I found more mappings of OID string to uint32 id

metze
(This used to be commit 3d51ce92c272582e19046337ea6b8b2acd60997d)

16 years agor20226: rename macros with a _LDB at the end, because I'll add macros with _DS
Stefan Metzmacher [Sun, 17 Dec 2006 13:34:56 +0000 (13:34 +0000)]
r20226: rename macros with a _LDB at the end, because I'll add macros with _DS
soon

metze
(This used to be commit e5b67046c255c7dec07acf3ddc158278997502e3)

16 years agor20225: we can't use composite_error() in a _recv() function, as that would
Stefan Metzmacher [Sun, 17 Dec 2006 13:33:43 +0000 (13:33 +0000)]
r20225: we can't use composite_error() in a _recv() function, as that would
trigger the caller to call the _recv() function again and will be an endless
loop.

this is just a fix the to prevent this, and use a more usefull error code
than NT_STATUS_UNSUCCESSFUL

I think we should move the checks about valid responses into the function
which receives the the response (here continue_name_found()),
so that the _recv() function only needs to transfer the output vars to the caller
without any logic to analyse the network response.

metze
(This used to be commit c02048f4800fe14e975f1cf0b5bd45f14261ac18)

16 years agor20224: the struct element msDs_Schema_Extensions and the attribute name "msDs-Schema...
Stefan Metzmacher [Sun, 17 Dec 2006 13:20:57 +0000 (13:20 +0000)]
r20224: the struct element msDs_Schema_Extensions and the attribute name "msDs-Schema-Extensions"
doesn't match so we need to pass 2 parameters to the GET_BLOB() macro

metze
(This used to be commit e50cf96fea1318853a8cfc0061afcad9cbad7e2c)

16 years agor20223: this function is in the torture test now
Stefan Metzmacher [Sun, 17 Dec 2006 13:05:34 +0000 (13:05 +0000)]
r20223: this function is in the torture test now

metze
(This used to be commit 66c4b42f5f4c48e9c288781208ecdd4849c2f939)

16 years agor20222: return status unsuccessful when null pointers are returned
Rafal Szczesniak [Sun, 17 Dec 2006 13:01:35 +0000 (13:01 +0000)]
r20222: return status unsuccessful when null pointers are returned
from lookup call.

rafal
(This used to be commit 0eb605cf423faee2111b3d70cef1c578564a0fb5)

16 years agor20221: - move the dsdb_schema, dsdb_attribute, dsdb_class structs into
Stefan Metzmacher [Sun, 17 Dec 2006 02:19:56 +0000 (02:19 +0000)]
r20221: - move the dsdb_schema, dsdb_attribute, dsdb_class structs into
  a generic location
- this struct should be also used by the dsdb/samdb/ldb_modules/schema.c
  module later
- add functions to map from LDAP OID values to uint32_t values
- add torture test for the OID => uint32 mapping code

metze
(This used to be commit 58ba6ec195ce3a5e2352866809f6cb57f8d8260a)

16 years agor20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWAT
Derrell Lipman [Sat, 16 Dec 2006 19:07:37 +0000 (19:07 +0000)]
r20220: Apply patch from Brad Henry with some additional qooxdoo/json-rpc SWAT
functionality: basic admin console.
(This used to be commit 23f8dd44cbf85e05e4b3d38de9ed7798dd21defb)

16 years agor20219: add enough knowledge to display the content of attributeSchema objects
Stefan Metzmacher [Sat, 16 Dec 2006 19:05:50 +0000 (19:05 +0000)]
r20219: add enough knowledge to display the content of attributeSchema objects

metze
(This used to be commit 38ae6ce7b9b5dd733e4e838da04d1c570c450c97)

16 years agor20213: add 2 error codes related to the msDs-IntId attribute
Stefan Metzmacher [Sat, 16 Dec 2006 17:21:53 +0000 (17:21 +0000)]
r20213: add 2 error codes related to the msDs-IntId attribute

metze
(This used to be commit dd5df84cccd10e9880648eecbff6faf7252d5e73)

16 years agor20205: remove unused var
Stefan Metzmacher [Sat, 16 Dec 2006 01:24:43 +0000 (01:24 +0000)]
r20205: remove unused var

metze
(This used to be commit a77e1bd1b48e953773db47a5469b1712794f26cf)

16 years agor20204: use symbolic constant
Stefan Metzmacher [Sat, 16 Dec 2006 01:21:59 +0000 (01:21 +0000)]
r20204: use symbolic constant

metze
(This used to be commit a816c2973a5cded5d2e520f35a79dc519205f350)

16 years agor20198: let the IBM checker ignore the warning about a missing break
Stefan Metzmacher [Fri, 15 Dec 2006 23:00:24 +0000 (23:00 +0000)]
r20198: let the IBM checker ignore the warning about a missing break
statement...

metze
(This used to be commit 6b20123c10b8812759b0876990766adc207bc5b4)

16 years agor20195: fix typo
Stefan Metzmacher [Fri, 15 Dec 2006 22:51:31 +0000 (22:51 +0000)]
r20195: fix typo

metze
(This used to be commit 9d06a4b6e22e18bdaa4383c7b9ab8af058c157c0)

16 years agor20194: inline all static talloc functions
Stefan Metzmacher [Fri, 15 Dec 2006 22:47:50 +0000 (22:47 +0000)]
r20194: inline all static talloc functions

metze
(This used to be commit ee47b404412299ac0e341f0d269adc21a7ebc603)

16 years agor20193: - let talloc_parent_chunk() handle a NULL pointer
Stefan Metzmacher [Fri, 15 Dec 2006 22:45:36 +0000 (22:45 +0000)]
r20193: - let talloc_parent_chunk() handle a NULL pointer
- use talloc_parent_chunk() in talloc_parent_name()
- add prototype of talloc_parent_name()

metze
(This used to be commit 85fc18f047cd2132d0c455f739ee76ce5005d7ed)

16 years agor20192: I assume a 'break' is the correct thing to do here,
Stefan Metzmacher [Fri, 15 Dec 2006 22:37:06 +0000 (22:37 +0000)]
r20192: I assume a 'break' is the correct thing to do here,

simo,tridge: please check this.

found by the IBM checker

metze
(This used to be commit 5ac373c8b853d4527a095111253f3cb10522f5e8)