Andrew Bartlett
7e0ef3fd0e
Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).
...
To make Samba4, using the python provision system, pass this test
required some major rework. Untested code is broken code, and some of
the refactoring for a seperate provision test (which also now passes)
broke things.
Similarly, the iconv work has compiled, but these codepaths have never
been run (NULL pointer de-reference).
In working to use a local, rather than global, loadparm context, and
to support using a target directory, a few things needed to be
reworked, particularly around path handling.
Andrew Bartlett
(This used to be commit 1169e8d7bee20477b0efbfea3534ac63c83fb3d6)
2008-03-06 21:55:26 +11:00
Jelmer Vernooij
b617f58cc3
Fix accidently introduced bug - thanks metze.
...
(This used to be commit d0dfdab85ac751c62b0a6d6e6b1ff128940098ed)
2008-02-19 14:25:20 +01:00
Jelmer Vernooij
7d5987c2e0
Remove uses of global_loadparm.
...
(This used to be commit 138aaef0781e0754cc17b3ffdaa6062ba70c0c6a)
2008-02-19 13:39:27 +01:00
Andrew Bartlett
8bceed449d
Fix segfaults in codepaths only tested by the NET-API-BECOME-DC test.
...
(I presume this has resulted from the global variable elimination)
Perhaps the iconv handle argument to ndr_push_struct needs to be
marked as 'not NULL' or similar?
Andrew Bartlett
(This used to be commit e8081333b8d43d96974c9e06a26aaa25dd34da56)
2008-01-23 15:34:44 +11:00
Andrew Bartlett
4d58fc88cb
r26697: Leak less memory into the ldb context.
...
(Trying to chase down memory leaks in provision)
Andrew Bartlett
(This used to be commit a0cf47c3359ca5dfab90c1a5831a73b89ff9f027)
2008-01-08 23:42:02 -06:00
Jelmer Vernooij
dcc282590b
r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
...
(This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07adef1f020173f2cd6d947d0ef505ce)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
0500b87092
r26540: Revert my previous commit after concerns raised by Andrew.
...
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
3e75f222bc
r26539: Remove unnecessary statics.
...
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21 05:52:05 +01:00
Kai Blin
1cd5cc6e65
r26528: dsdb: Fix a warning.
...
(This used to be commit 41a1f59850345c5a2944818a9a00bc6118d05c8a)
2007-12-21 05:51:51 +01:00
Jelmer Vernooij
71e2cafe96
r26483: Merge ldb module dependency fixes, fix auth python module.
...
(This used to be commit 85eeecf997a071ca7e7ad0247e8d34d49b7ffcbb)
2007-12-21 05:50:41 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21 05:49:56 +01:00
Andrew Bartlett
a7f008a939
r26412: Add comments and refactor to reuse common code.
...
Andrew Bartlett
(This used to be commit a8b0f5af9afcc19bd869ff19e1456dbe9d2713b6)
2007-12-21 05:49:43 +01:00
Jelmer Vernooij
39ee38d9c1
r26316: Use contexts for conversion functions.
...
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-12-21 05:48:30 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)
2007-12-21 05:45:02 +01:00
Andrew Bartlett
605032d997
r25786: Add function required by linked_attributes module (We need a list of
...
all linked attributes in the schema, so we can try and find them).
Andrew Bartlett
(This used to be commit 9cc706e06079899e58d4806ec27f86ae019cff60)
2007-12-21 05:43:58 +01:00
Andrew Bartlett
bb96624d68
r25749: Add function required by linked_attributes module.
...
Andrew Bartlett
(This used to be commit cd6409478744b9755c3a048d8d411dbe99f977f0)
2007-12-21 05:43:42 +01:00
Jelmer Vernooij
05e7c48146
r25553: Convert to standard bool type.
...
(This used to be commit b7371f1a191fb86834c0d586d094f39f0b04544b)
2007-10-10 15:07:54 -05:00
Jelmer Vernooij
cd962355ab
r25000: Fix some more C++ compatibility warnings.
...
(This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
61ffa08f4c
r24712: No longer expose the 'BOOL' data type in any interfaces.
...
(This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)
2007-10-10 15:02:54 -05:00
Andrew Bartlett
dfa4e5f784
r24631: Fix up format warnings, found on my Fedora 7 x86_64 workstation.
...
Andrew Bartlett
(This used to be commit 3d74d178bfd89127ff387939e848b240e638cc35)
2007-10-10 15:02:27 -05:00
Andrew Bartlett
4e697b288b
r24060: Fix bug #4806 by Matthias Wallnöfer <mwallnoefer@yahoo.de>: We need to
...
include the attribute allowedChildClassesEffective for MMC to allow
the creation of containers.
This may need further refinement, but it seems to work for now.
Andrew Bartlett
(This used to be commit d053b8e218767cb12e20a00fb18995e30869db11)
2007-10-10 15:01:21 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -05:00
Andrew Tridgell
b4d9778a80
r23699: when we create the global schema, remember to set the ldb opaque so we
...
can find it again
(This used to be commit 968e70b2aa478cfd49321e3386b505fd00a81527)
2007-10-10 14:59:04 -05:00
Andrew Bartlett
80ae1c2a2a
r23695: By not using the NULL context for these large structures, we don't
...
falsely report them as leaked.
Andrew Bartlett
(This used to be commit e3eb6c2cf63edf50d93a87f656df3ae5aa6efc00)
2007-10-10 14:59:02 -05:00
Andrew Bartlett
e9d19477e4
r23560: - Activate metze's schema modules (from metze's schema-loading-13 patch).
...
- samba3sam.js: rework the samba3sam test to not use objectCategory,
as it's has special rules (dnsName a simple match)
- ldap.js: Test the ordering of the objectClass attributes for the baseDN
- schema_init.c: Load the mayContain and mustContain (and system...) attributes when
reading the schema from ldb
- To make the schema load not suck in terms of performance, write the
schema into a static global variable
- ldif_handlers.c: Match objectCategory for equality and canonicolisation
based on the loaded schema, not simple tring manipuation
- ldb_msg.c: don't duplicate attributes when adding attributes to a list
- kludge_acl.c: return allowedAttributesEffective based on schema results
and privilages
Andrew Bartlett
(This used to be commit dcff83ebe463bc7391841f55856d7915c204d000)
2007-10-10 14:53:27 -05:00
Stefan Metzmacher
64b985bc16
r23419: initialize variable...
...
metze
(This used to be commit d19293982bb534c9c4ebfe82f72224813e14bec9)
2007-10-10 14:53:17 -05:00
Stefan Metzmacher
d7e913d193
r22992: add a function to attach the dsdb_schema to a ldb_context
...
loaded from ldif files. The first file should contain
the info's about the 'prefixMap' attribute in the first ldif chunk.
The 2nd file should contain all attributes and classes.
metze
(This used to be commit 587f70e153f17bcb6695bed831d9cadf93522690)
2007-10-10 14:52:37 -05:00
Stefan Metzmacher
41c5453507
r21839: add my email address
...
metze
(This used to be commit e3be33c1d9f9e44ef37e6ef72a23576474f6e725)
2007-10-10 14:49:35 -05:00
Stefan Metzmacher
eb7596e66b
r20973: add functions to create the autocreated subSchema Attributes:
...
attributeTypes, objectClasses and dITContentRules
this is just a start and doesn't create anything useful yet...
metze
(This used to be commit 4c8b717092c201c30be4d266bbb45b1142a9d627)
2007-10-10 14:44:06 -05:00
Stefan Metzmacher
9f876c9fae
r20766: when creating dsdb_attribute or dsdb_class structs from ldb, try the oid mapping
...
if the dsdb_schema has mappings attached
metze
(This used to be commit 6ecd1342ded63b99b51250714127344a5304c47f)
2007-10-10 14:40:49 -05:00
Stefan Metzmacher
e8d9ccd574
r20764: fix some little bugs
...
metze
(This used to be commit 1c3d1723e9a386038aaf34a5df7c279afa7d48a2)
2007-10-10 14:40:48 -05:00
Stefan Metzmacher
b93d6b41cb
r20763: add function to get the oid mappings in drsuapi or ldb form
...
metze
(This used to be commit cab3acb9bbb617bd6450134399f5bd7ad2770454)
2007-10-10 14:40:48 -05:00
Stefan Metzmacher
43063d5b14
r20733: add a function to load the oid mappings from ldb_val's
...
metze
(This used to be commit b7f681a8a144907fa8e0a6503345da7c391dd156)
2007-10-10 14:40:34 -05:00
Stefan Metzmacher
6bffcc6d45
r20576: add functions to get and set dsdb_schema on the ldb context
...
metze
(This used to be commit 2e054be8e023e23420e7ddd8cd73497400a875f9)
2007-10-10 14:37:05 -05:00
Stefan Metzmacher
35c5e2d318
r20523: match the lDAPDisplayName case insensitive
...
metze
(This used to be commit c32ec0a10041dba50be23611f25e4aae8c45830c)
2007-10-10 14:36:48 -05:00
Stefan Metzmacher
536ca21c55
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)
2007-10-10 14:36:01 -05:00
Stefan Metzmacher
16d6d8d4c5
r20484: get rid of the special case for DN strings
...
metze
(This used to be commit 4c2addf2dd5b74fa0026249ce373ff4becaaef40)
2007-10-10 14:35:59 -05:00
Stefan Metzmacher
b885bc4a20
r20477: get rid of the spcial case for unicode strings
...
metze
(This used to be commit ececda44c74ae4ccbaa0492acb67a88aa5c05126)
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
d70852659b
r20476: get rid of extra case for uint32 values
...
metze
(This used to be commit 13ccd405b5dbb595e5ab67879260462e5a767a8b)
2007-10-10 14:35:57 -05:00
Stefan Metzmacher
2754a73d22
r20475: remove special case for GUID values
...
metze
(This used to be commit b7ab1c0039cd8000861cd89ca072d9d2b0bbf9de)
2007-10-10 14:35:56 -05:00
Stefan Metzmacher
391d97168f
r20473: remove special case for boolean values
...
metze
(This used to be commit 8d80629c5dde44a06b597e1247ec96ef1cd3f2e1)
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
3af2dcf358
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)
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
1e1044028a
r20471: implement conversation functions for PRESENTATION_ADDRESS attribute syntax
...
metze
(This used to be commit 49e6e88778785ba33042c5d4f6bcdfbd27275083)
2007-10-10 14:35:55 -05:00
Stefan Metzmacher
73f1e42481
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)
2007-10-10 14:35:54 -05:00
Stefan Metzmacher
e18585ba39
r20466: I removed the _all only for tests and forgot to revert it
...
metze
(This used to be commit 5a15c2748847e0b82e0fd4945c37d21025fad273)
2007-10-10 14:35:53 -05:00
Stefan Metzmacher
efd617fd71
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)
2007-10-10 14:35:52 -05:00
Stefan Metzmacher
af38447505
r20461: this attribute syntaxes are not used for any attribute definitions in the w2k3 schema
...
metze
(This used to be commit ef477b314b09bac16c8da93700a0f952f632a2ea)
2007-10-10 14:35:51 -05:00
Stefan Metzmacher
7ffdd1246d
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)
2007-10-10 14:35:49 -05:00