bbaumbach/samba-autobuild/.git
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)

16 years agor20191: fix bug found by the IBM checker
Stefan Metzmacher [Fri, 15 Dec 2006 22:00:56 +0000 (22:00 +0000)]
r20191: fix bug found by the IBM checker

metze
(This used to be commit 4c1e4bfeef8d93583b6d4345dbb1b8fa90368308)

16 years agor20190: fix the ldb_ldap backend
Stefan Metzmacher [Fri, 15 Dec 2006 21:04:01 +0000 (21:04 +0000)]
r20190: fix the ldb_ldap backend

metze
(This used to be commit 6b7eb5d68e769fd5450c5d92c3ece4c471aaeae9)

16 years agor20189: remove unused struct element
Stefan Metzmacher [Fri, 15 Dec 2006 20:22:17 +0000 (20:22 +0000)]
r20189: remove unused struct element

metze
(This used to be commit d20d1872d5ed1176928b85ef9811c6a5177d0148)

16 years agor20188: move back to an default attribute handler and not use the '*' attribute
Stefan Metzmacher [Fri, 15 Dec 2006 18:56:56 +0000 (18:56 +0000)]
r20188: move back to an default attribute handler and not use the '*' attribute
to not conflict with the one that maybe added via the @ATTRIBUTES object

this is just to make the test-tdb-feature.sh torture test happy

There's still a bug when a attribute is registered multiple time
without removing old ldb_schema_attribute instances. But this bug
was there before my changes too and was just triggered by my changes

metze
(This used to be commit 70c4a367433f8c54bdd940eb0a6a24ab976a4063)

16 years agor20187: fix the build on systems without sqlite3
Stefan Metzmacher [Fri, 15 Dec 2006 17:54:47 +0000 (17:54 +0000)]
r20187: fix the build on systems without sqlite3

metze
(This used to be commit 216713d9a034984ffb40889b42837b91abae862a)

16 years agor20185: - SMB_ENABLE() needs upper case YES/NO
Stefan Metzmacher [Fri, 15 Dec 2006 13:12:18 +0000 (13:12 +0000)]
r20185: - SMB_ENABLE() needs upper case YES/NO
- fix compilation of the ldb_sqlite3 module

metze
(This used to be commit 39c41be0ac5bfa39c4ff3267b1a8291857e3a034)

16 years agor20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointer
Stefan Metzmacher [Fri, 15 Dec 2006 13:08:57 +0000 (13:08 +0000)]
r20184: change ldb_attrib_handler into ldb_schema_attribute, which has a pointer
to a ldb_schema_syntax struct.

the default attribute handler is now registered dynamicly as "*"
attribute, instead of having its own code path.

ldb_schema_attribute's can be added to the ldb_schema given a
ldb_schema_syntax struct or the syntax name

we may also need to introduce a ldb_schema_matching_rule,
and add a pointer to a default ldb_schema_matching_rule
in the ldb_schema_syntax.

metze
(This used to be commit b97b8f5dcbce006f005e53ca79df3330e62f117b)

16 years agor20182: make the composite api usage more consistant (only cosmetic change)
Stefan Metzmacher [Fri, 15 Dec 2006 11:07:35 +0000 (11:07 +0000)]
r20182: make the composite api usage more consistant (only cosmetic change)

metze
(This used to be commit 1f67433914bfab83bf1950263809c9e152ad6dcc)

16 years agor20177: return the actual function status code.
Rafal Szczesniak [Thu, 14 Dec 2006 22:45:12 +0000 (22:45 +0000)]
r20177: return the actual function status code.

rafal
(This used to be commit 2d046cc0df820edc141a74e7d204e4fba462e037)

16 years agor20176: Info method returns null object if the user is not found.
Rafal Szczesniak [Thu, 14 Dec 2006 22:14:07 +0000 (22:14 +0000)]
r20176: Info method returns null object if the user is not found.

rafal
(This used to be commit a20b05183d274a3a780ae197dc7014428739cc7a)

16 years agor20175: use libnet context instead mem_ctx as the latter gets
Rafal Szczesniak [Thu, 14 Dec 2006 22:12:53 +0000 (22:12 +0000)]
r20175: use libnet context instead mem_ctx as the latter gets
freed just before the function returns.

rafal
(This used to be commit ca8259fd27d1e92bcb650441461afdfd613e93bf)

16 years agor20168: start separating attributes and syntaxes
Stefan Metzmacher [Thu, 14 Dec 2006 10:03:21 +0000 (10:03 +0000)]
r20168: start separating attributes and syntaxes

metze
(This used to be commit 8dda4342f648aa71878ac9eeb7941710e2813aee)

16 years agor20167: reenable the ejsnet tests
Stefan Metzmacher [Thu, 14 Dec 2006 08:25:24 +0000 (08:25 +0000)]
r20167: reenable the ejsnet tests

metze
(This used to be commit 1e4289fae4fb71725d9c37ed772eab0ff5853e65)

16 years agor20166: we have a dom_sid_add_rid() function that adds the rid after allocating
Stefan Metzmacher [Thu, 14 Dec 2006 08:23:55 +0000 (08:23 +0000)]
r20166: we have a dom_sid_add_rid() function that adds the rid after allocating
enough memory for the new sub_auth element.

the old version wrote behind the buffer.

also make the output sid a pointer.

metze
(This used to be commit b9901d5f8c9aa777bafd3a670d27209552bc56b7)

16 years agor20164: Disable the test till tomorrow when I find out what caused
Rafal Szczesniak [Wed, 13 Dec 2006 23:53:42 +0000 (23:53 +0000)]
r20164: Disable the test till tomorrow when I find out what caused
the crash.

rafal
(This used to be commit 5d7908038b6508f53cc8714f73ae7c5bfc6bce58)

16 years agor20163: Return null object if no user is found.
Rafal Szczesniak [Wed, 13 Dec 2006 23:37:22 +0000 (23:37 +0000)]
r20163: Return null object if no user is found.

rafal
(This used to be commit af539fec4acb3ad78b8f0fa4f7c2f4e6cebea0b7)

16 years agor20162: Always return some error string.
Rafal Szczesniak [Wed, 13 Dec 2006 23:36:34 +0000 (23:36 +0000)]
r20162: Always return some error string.

rafal
(This used to be commit 0c373605776eb166ffe46db0dd21395efc3bb186)

16 years agor20161: Prevent potential segfault in case account is unknown.
Rafal Szczesniak [Wed, 13 Dec 2006 23:35:50 +0000 (23:35 +0000)]
r20161: Prevent potential segfault in case account is unknown.

rafal
(This used to be commit 9f5f9ee9b4b815715c0b580e21ab0906fa15ae96)

16 years agor20152: Commit missing files from last night's commit. We no longer maintain
Andrew Bartlett [Wed, 13 Dec 2006 20:47:24 +0000 (20:47 +0000)]
r20152: Commit missing files from last night's commit.  We no longer maintain
a distinction between PDC and BDC in the configuration files, only as
an entry in the ldb.

Andrew Bartlett
(This used to be commit dc9eee7cb37e4a6828c2cba23b0d836df9eac7b5)

16 years agor20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
Andrew Bartlett [Wed, 13 Dec 2006 11:19:51 +0000 (11:19 +0000)]
r20149: Remove the smb.conf distinction between PDC and BDC.  Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
(This used to be commit 67d8365e831adf3eaecd8b34dcc481fc82565893)

16 years agor20145: fix whitespaces
Stefan Metzmacher [Tue, 12 Dec 2006 23:48:28 +0000 (23:48 +0000)]
r20145: fix whitespaces

metze
(This used to be commit d2d9842914bb049189f9349ff96b32c088cd02a8)

16 years agor20144: add NET-API-BECOME-DC test that tests libnet_BecomeDC()/libnet_UnbecomeDC()
Stefan Metzmacher [Tue, 12 Dec 2006 23:23:50 +0000 (23:23 +0000)]
r20144: add NET-API-BECOME-DC test that tests libnet_BecomeDC()/libnet_UnbecomeDC()

metze
(This used to be commit 0359d9a00b3e30e2bd67b89d6b11236e5af0106b)

16 years agor20143: a bit of experiments before doing serious changes in ejsnet.
Rafal Szczesniak [Tue, 12 Dec 2006 23:01:51 +0000 (23:01 +0000)]
r20143: a bit of experiments before doing serious changes in ejsnet.

rafal
(This used to be commit 3cdd43ebcedfa7d1d59bd33b3bfed4e80560ec82)

16 years agor20142: only the DDNS updates are missing for the full libnet_BecomeDC(),
Stefan Metzmacher [Tue, 12 Dec 2006 22:57:43 +0000 (22:57 +0000)]
r20142: only the DDNS updates are missing for the full libnet_BecomeDC(),
but that's not needed untill we can support the DsGetNCChanges()
in the server...

metze
(This used to be commit 9c3267e17f984a0a47abd35cecb56c43cf97efcd)

16 years agor20141: use the gensec_features of the cli_credentials for ildap connections,
Stefan Metzmacher [Tue, 12 Dec 2006 22:43:35 +0000 (22:43 +0000)]
r20141: use the gensec_features of the cli_credentials for ildap connections,
instead of hardcoded GENSEC_FEATURE_SEAL.

That means plain LDAP is now the default.

metze
(This used to be commit b69471866c2a6c61002147938f233f2f63963ba4)

16 years agor20139: only add GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG if the caller requested it!
Stefan Metzmacher [Tue, 12 Dec 2006 22:38:23 +0000 (22:38 +0000)]
r20139: only add GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG if the caller requested it!

this is needed to create plain, singed or sealed LDAP connections.

this should go into lorikeet and main heimdal...

metze
(This used to be commit 75c037cae21714e394a63f2506387e1049eb4406)

16 years agor20138: return the proper status for the other functions as well.
Rafal Szczesniak [Tue, 12 Dec 2006 22:34:35 +0000 (22:34 +0000)]
r20138: return the proper status for the other functions as well.

rafal
(This used to be commit 0b82b9dba1f67b1d340b7cf2b35a826135c101d4)