1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

397 Commits

Author SHA1 Message Date
Stefan Metzmacher
2a7cbb2c53 r20863: check that there's a current partition control attached to the request
metze
(This used to be commit b1377a2e24)
2007-10-10 14:43:41 -05:00
Stefan Metzmacher
1500cd79d9 r20855: pass the DSDB_CONTROL_CURRENT_PARTITION_OID control also for the
send_all case

metze
(This used to be commit b3fce383d3)
2007-10-10 14:43:40 -05:00
Stefan Metzmacher
f58e49ade8 r20853: attach the DSDB_CONTROL_CURRENT_PARTITION_OID control when requests
are passed to a specific partition

metze
(This used to be commit 06a46b1db4)
2007-10-10 14:43:40 -05:00
Stefan Metzmacher
a35a071fc9 r20849: first step to move away from using find_backend() and use find_partition()
instead

metze
(This used to be commit 0d75cca6f3)
2007-10-10 14:43:39 -05:00
Stefan Metzmacher
7730ff44af r20847: - split some code out into a new function find_partition()
- make all functions static

metze
(This used to be commit 3d313f08c7)
2007-10-10 14:43:39 -05:00
Stefan Metzmacher
21206f36c6 r20826: make the dsdb_control_current_partition struct public and allocate an oid for the
control

metze
(This used to be commit 684eee52e8)
2007-10-10 14:43:37 -05:00
Stefan Metzmacher
842e2804d8 r20809: rename struct partition into struct dsdb_control_current_partition
we'll soon pass this down as DSDB_CONTROL_CURRENT_PARTITION_OID control
so that the repl_meta_data module knows where to update the replUpToDateVector
attribute

metze
(This used to be commit e5de40f8c2)
2007-10-10 14:43:34 -05:00
Stefan Metzmacher
b15f4878e1 r20780: keep a dsdb_schema_fsmo struct as private data
and remember if we're the schema master

metze
(This used to be commit c42dab21fb)
2007-10-10 14:40:53 -05:00
Stefan Metzmacher
3b956f0779 r20779: fix compiler warnings
metze
(This used to be commit 0b98f11d3e)
2007-10-10 14:40:53 -05:00
Stefan Metzmacher
2fe86d1e42 r20778: we don't need a talloc_steal here
metze
(This used to be commit 0ef90769b4)
2007-10-10 14:40:53 -05:00
Stefan Metzmacher
47523dbc6a r20776: require a loaded dsdb_schema for originating add and modify operations
(later we'll require it for all originating changes...)

metze
(This used to be commit fc1a836ecc)
2007-10-10 14:40:52 -05:00
Stefan Metzmacher
dd4b91f2f4 r20771: add an ldb module which will force the Schema FSMO Role Owner
constraints and it also loads the dsdb_schema at startup.

currently it only loads the dsdb_schema

metze
(This used to be commit d78de0fb68)
2007-10-10 14:40:51 -05:00
Stefan Metzmacher
ee56bf2317 r20762: load the default dn's after the rootdse module is initialized,
so that following module can access the default dn's.

metze
(This used to be commit a934da4dcf)
2007-10-10 14:40:47 -05:00
Stefan Metzmacher
1687e73abe r20760: also handle the case where no private data is attached to the module
metze
(This used to be commit c8f5aad40a)
2007-10-10 14:40:46 -05:00
Stefan Metzmacher
21729fff11 r20729: add a version number to struct dsdb_extended_replicated_objects
metze
(This used to be commit 2e79863d54)
2007-10-10 14:40:33 -05:00
Stefan Metzmacher
82b4069171 r20728: the DSDB_CONTROL_REPLICATED_OBJECT_OID control isn't used anymore
because we now use DSDB_EXTENDED_REPLICATED_OBJECTS_OID extended operation

metze
(This used to be commit 4380cc9ed6)
2007-10-10 14:40:32 -05:00
Stefan Metzmacher
2cf643929c r20727: implement basic merging of replicated objects when it already exist
in the ldb

metze
(This used to be commit 262e42123d)
2007-10-10 14:40:32 -05:00
Stefan Metzmacher
7ff19c935d r20726: - only add the rdn attribute and it's meta_data when the 'name' attribute is there
- add the values for objectGUID and whenChanged inside the ldb module,
  so that the ldb module has only replicated attributes as input

metze
(This used to be commit 0ecb07e052)
2007-10-10 14:40:32 -05:00
Stefan Metzmacher
007c6f6e65 r20716: add a dsdb_cache ldb module which will load the dsdb_schema and other things
on startup into memory structures in future.

metze
(This used to be commit fbb1f85e32)
2007-10-10 14:40:31 -05:00
Stefan Metzmacher
33f8946640 r20713: sort the cursors in replUpToDateVector by source_dsa_invocation_id,
w2k3 seems to do the same.

It's later useful, when we would have a large array
be could use a binary search

metze
(This used to be commit cd654f20e1)
2007-10-10 14:40:30 -05:00
Stefan Metzmacher
ce87c63146 r20710: update or create the "repsFrom" values after applying replicated objects
metze
(This used to be commit 665d8f9626)
2007-10-10 14:40:30 -05:00
Stefan Metzmacher
18f8180469 r20709: pass a repsFromTo1 struct down as it contains all needed info for the source dsa
and the highwater mark vector

metze
(This used to be commit a31e017e53)
2007-10-10 14:40:29 -05:00
Stefan Metzmacher
ffa259f4a4 r20705: store the "replUpToDateVector" attribute in DSDB_EXTENDED_REPLICATED_OBJECTS
metze
(This used to be commit c9e7a58f6a)
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
6976f704ba r20704: add functions to get and set the ntds objectGUID and invocationId
metze
(This used to be commit c271ad824f)
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
f8ce15a417 r20703: fix minor memory leak
metze
(This used to be commit 4012e54ef2)
2007-10-10 14:40:28 -05:00
Stefan Metzmacher
fbba1b39d4 r20682: make the dsdb_extended_replicated_objects_commit() interface a bit more useful,
so that we can apply the schema partition objects with one call

metze
(This used to be commit 165ff94b8a)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
f68dff9f81 r20681: implement the DSDB_EXTENDED_REPLICATED_OBJECTS operation.
the merging of existing objects is not implemented yet...

there are a few ifdef REPLMD_FULL_ASYNC because we need to workarouns
ldb's async infrastructure (which don't handle full async sub requests nicely)

metze
(This used to be commit da4ff0e7cc)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
513a43fc23 r20680: prepare the helper functions for applying replicated objects
to pass all needed info to the repl_meta_data module

metze
(This used to be commit d5db31cde2)
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
ee3c158602 r20679: make the init_handle stuff a bit easier and get rid of really ugly talloc_get_type()
usage

simo: if you change more modules, please include also this change

metze
(This used to be commit 88051a82c4)
2007-10-10 14:40:20 -05:00
Stefan Metzmacher
eccb2d16df r20629: add a wrapper function for ldb_extended(ldb, DSDB_EXTENDED_REPLICATED_OBJECTS_OID, out, &ext_res);
which prepares the replicated objects, the repl_meta_data ldb module
will then add the uSNCreated, uSNChanged and some other things and will apply
the objects to the partition specific ldb

metze
(This used to be commit 48d568a75b)
2007-10-10 14:37:17 -05:00
Andrew Bartlett
08439c72c4 r20622: Add in a hack to avoid permitting searches on the value of protected
attributes.

Andrew Bartlett
(This used to be commit 5aa2195ec2)
2007-10-10 14:37:16 -05:00
Stefan Metzmacher
a04a3b8bc2 r20599: - forward extended operations in the partitions module
- by default the operations goes to all partitions
- but some wellkown ones will go to just one partition
  (DSDB_EXTENDED_REPLICATED_OBJECTS_OID for now)

I'll soon change the partitions module so that it'll attach a
DSDB_CONTROL_PARTITION_CONTEXT_OID control to give
the repl_meta_data or other partition specific modules a chance to
to know for which partition it should work.

metze
(This used to be commit 0ed53c6d0f)
2007-10-10 14:37:12 -05:00
Stefan Metzmacher
ac0c34a9a4 r20587: prepare the DSDB_EXTENDED_REPLICATED_OBJECTS_OID handling
metze
(This used to be commit ef3b325db0)
2007-10-10 14:37:08 -05:00
Stefan Metzmacher
3137e4f2fe r20580: pass the DSDB_CONTROL_REPLICATED_OBJECT_OID with the ldb_add request
when applying replicated objects.

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

metze
(This used to be commit a4d5e0126c)
2007-10-10 14:37:06 -05:00
Stefan Metzmacher
fcd2f2e8f5 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 46df7ff6e5)
2007-10-10 14:36:49 -05:00
Stefan Metzmacher
b3c793c58c 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 045ddfe1ec)
2007-10-10 14:36:47 -05:00
Andrew Bartlett
bf4c652af7 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 600c7f1a68)
2007-10-10 14:35:59 -05:00
Andrew Bartlett
adcc7299b6 r20460: Simplfy the handling of password hashes in the samba3sam module.
Andrew Bartlett
(This used to be commit 2959b4ba8b)
2007-10-10 14:35:51 -05:00
Andrew Bartlett
bea88a1028 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 14e2c877a8)
2007-10-10 14:35:49 -05:00
Stefan Metzmacher
1e41323991 r20420: create infrastructure to convert attribute values from drsuapi to ldb
metze
(This used to be commit 17c52ed276)
2007-10-10 14:30:34 -05:00
Andrew Bartlett
81b971beae 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 bf7ab75875)
2007-10-10 14:30:22 -05:00
Andrew Bartlett
105d18eb30 r20395: Decode more unknowns in the IDL. These are language and codepage IDs!
Try to pass more of the CrackNames test.  Make the test quieter.

Andrew Bartlett
(This used to be commit a6bbfebf52)
2007-10-10 14:30:22 -05:00
Andrew Bartlett
6d85ab6275 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 3c5ff4e687)
2007-10-10 14:30:19 -05:00
Andrew Bartlett
d1d2651a37 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 629c72f0c2)
2007-10-10 14:30:18 -05:00
Stefan Metzmacher
37ad9ee7cc 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 80b8a96824)
2007-10-10 14:29:40 -05:00
Andrew Bartlett
400a56d6dd 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 2eb9e6445c)
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
97d066464b r20306: remove the static oid mapping table
and attach the table to the dsdb_schema

metze
(This used to be commit df63995ec5)
2007-10-10 14:29:36 -05:00
Stefan Metzmacher
291271f226 r20233: add functions to create a dsdb_attribute and dsdb_class from
a drsuapi_DsReplicaObject

metze
(This used to be commit 9168236ddd)
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
c5571c7c39 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 58ba6ec195)
2007-10-10 14:29:23 -05:00
Stefan Metzmacher
c69717755a 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 b97b8f5dcb)
2007-10-10 14:29:19 -05:00
Andrew Bartlett
d471e52d23 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 67d8365e83)
2007-10-10 14:29:15 -05:00
Simo Sorce
ea212eb00f r20034: Start using ldb_search_exp_fmt()
(This used to be commit 4f07542143)
2007-10-10 14:28:51 -05:00
Simo Sorce
353b968025 r19869: fix memleaks
(This used to be commit 3a662a2d98)
2007-10-10 14:28:28 -05:00
Simo Sorce
a9e31b33b5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
(This used to be commit 3929c086d5)
2007-10-10 14:28:22 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3)
2007-10-10 14:28:22 -05:00
Andrew Bartlett
c9035c6633 r19757: Don't do the strrchr twice. Pointed out by Martin Kuhl.
Andrew Bartlett
(This used to be commit c4bf9cc09b)
2007-10-10 14:28:19 -05:00
Andrew Bartlett
84138215ca r19732: The 'res' from ldb_search is only valid if the call returns LDB_SUCCESS.
This seems to show up (as an abort() from talloc) particularly under
ldb_ildap.

Andrew Bartlett
(This used to be commit 9890af534d)
2007-10-10 14:28:15 -05:00
Andrew Bartlett
adae413042 r19731: Modify the ldb_map infrustructure to always map from requested
attributes to backend (remote) attributes.

We can't do a reverse mapping safely where the remote attribute may be
a source for multiple local attributes.  (We end up with the wrong
attributes returned).

In doing this, I've modified the samba3sam.js test to be more
realistic, and fixed some failures in the handling of primaryGroupID.

I've added a new (private) helper function ldb_msg_remove_element() to
avoid a double lookup of the element name.

I've also re-formatted many of the function headers, to fit into
standard editor widths.

Andrew Bartlett
(This used to be commit 186766e309)
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
76d0193bf3 r19726: when a client explicit asks for the 'netlogon' attriubute on LDAP
the result entry is skipped!

metze
(This used to be commit 62aa73f3d5)
2007-10-10 14:28:14 -05:00
Andrew Bartlett
3c1e780ec7 r19604: This is a massive commit, and I appologise in advance for it's size.
This merges Samba4 with lorikeet-heimdal, which itself has been
tracking Heimdal CVS for the past couple of weeks.

This is such a big change because Heimdal reorganised it's internal
structures, with the mechglue merge, and because many of our 'wishes' have been granted:  we now have DCE_STYLE GSSAPI, send_to_kdc hooks and many other features merged into the mainline code.  We have adapted to upstream's choice of API in these cases.

In gensec_gssapi and gensec_krb5, we either expect a valid PAC, or NO
PAC.  This matches windows behavour.  We also have an option to
require the PAC to be present (which allows us to automate the testing
of this code).

This also includes a restructure of how the kerberos dependencies are
handled, due to the fallout of the merge.

Andrew Bartlett
(This used to be commit 4826f17351)
2007-10-10 14:25:03 -05:00
Andrew Bartlett
13dbee3ffe r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0)
2007-10-10 14:25:00 -05:00
Simo Sorce
b7774527fa r19531: Make struct ldb_dn opaque and local to ldb_dn.c
(This used to be commit 889fb983ba)
2007-10-10 14:24:44 -05:00
Andrew Bartlett
899ae849e8 r19522: Remove gensec and credentials dependency from the rootdse module (less
dependency loops).

This moves the evaluation of the SASL mechansim list to display in the
rootDSE to the ldap server.

Andrew Bartlett
(This used to be commit 379da475e2)
2007-10-10 14:24:44 -05:00
Jelmer Vernooij
4fa24df98d r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067)
2007-10-10 14:24:41 -05:00
Simo Sorce
7f833458ca r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit 0fa5d4bc22)
2007-10-10 14:24:38 -05:00
Andrew Bartlett
9542481727 r19464: Reject passwords that cannot be converted into UCS2.
Andrew Bartlett
(This used to be commit c843fce7a0)
2007-10-10 14:21:37 -05:00
Simo Sorce
fd82e3f39b r19337: never alloc on module unless you mean to attach a context to
it to keep the data around as long as the module lives
(This used to be commit d2073c1f7e)
2007-10-10 14:21:12 -05:00
Simo Sorce
d9cb938dcd r19333: commit module changes I made some time ago before I loose them
(This used to be commit 524ec78086)
2007-10-10 14:21:11 -05:00
Simo Sorce
549dd10f0f r19332: ldb_parse_tree leaks
(This used to be commit 3e0e2787c1)
2007-10-10 14:21:11 -05:00
Simo Sorce
56bacd2b44 r19330: Fix memleaks
(This used to be commit f163f422e3)
2007-10-10 14:21:10 -05:00
Andrew Tridgell
8b60b7fa2a r19329: fixed a leak in the password hash module
(This used to be commit 3f48bcb058)
2007-10-10 14:21:10 -05:00
Andrew Tridgell
86a549eaca r19328: another leak plugged ....
(This used to be commit f57535b9c2)
2007-10-10 14:21:10 -05:00
Andrew Bartlett
bd8f63a617 r19321: Merge from release branch:
Always set the krb5key from the ntPwdHash, even if we don't have the
cleartext password in sambaPassword.  This fixes kerberos after a
vampire.

Andrew Bartlett
(This used to be commit 1d4d2271c9)
2007-10-10 14:21:08 -05:00
Simo Sorce
b0fadb51b2 r19313: Don't mess with hierarchies!!
There is a reason why we use them :-)
(This used to be commit e3b7e91299)
2007-10-10 14:21:07 -05:00
Andrew Bartlett
379e6598e1 r19308: Merge samsync fixes from SAMBA_4_0_RELEASE
Andrew Bartlett
(This used to be commit 3310032399)
2007-10-10 14:21:06 -05:00
Simo Sorce
59b66744f7 r19299: Fix possible memleaks
(This used to be commit 6fad80bb09)
2007-10-10 14:21:04 -05:00
Stefan Metzmacher
ce02a7e9dc r18945: fix compiler warnings and end-of-non-void function bugs
metze
(This used to be commit ed195999c0)
2007-10-10 14:20:23 -05:00
Simo Sorce
7a1c1a1fd8 r18908: Store the schema structure into an opaque pointer so that it can be reused by multiple connections
(This used to be commit ca8827d8f9)
2007-10-10 14:20:19 -05:00
Andrew Bartlett
77db3973c4 r18781: Move the usnCreated and usnChanged handling around again.
This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb.  For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.

This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.

To assist this, we also store the last modified time in the TDB,
whenever we change a value.

Andrew Bartlett
(This used to be commit 72858f8594)
2007-10-10 14:19:11 -05:00
Günther Deschner
8153859fb4 r18636: Excessive testing with pam_winbind within Samba3 revealed a new samr
reject reason code while password changing: SAMR_REJECT_IN_HISTORY which
is different from SAMR_REJECT_COMPLEXITY.

torture test to follow as well.

Guenther
(This used to be commit 7513748208)
2007-10-10 14:18:59 -05:00
Andrew Bartlett
595c141a69 r18504: Handle mappings for RENAME and KEEP attributes better. We don't need
to mess with the values in these cases.

Where we do convert the values, try and convert substrings.  This
isn't going to be perfect, but we should try rather than segfault.

This also avoids using the wrong arm of the union for the attribute
name

The change in the entryUUID module is to correct the case of
sAMAccountName, due to the case sensitive ldap.js test.

Andrew Bartlett
(This used to be commit 81d9a692c1)
2007-10-10 14:18:40 -05:00
Andrew Bartlett
1e4f5a096c r18495: More work on the LDAP backend (which now passes a lot of our tests!)
This adds a list of attributes that are in our wildcard seaches, but
the remote server requires to be explicitly listed.  This also cleans
up the handling of wildcards in ldb_map to be more consistant.

Also fix the partitions module to rebase the search, if on the GC
port, we do a subtree search.  (Otherwise backends can rightly
complain that the search is not in their scope).

Andrew Bartlett
(This used to be commit bc58792b71)
2007-10-10 14:18:38 -05:00
Andrew Bartlett
918db36213 r18441: Allow searching for the high bit in these bitfields, when the client
asks for them as large integers, rather than a negative integer.

Due to an OpenLDAP bug, this only works reliably against OpenLDAP CVS
as of today.  (but mostly works in older versions, depending on a
thread-specific value fo errno in the server).

Andrew Bartlett
(This used to be commit 3b5354aede)
2007-10-10 14:18:30 -05:00
Andrew Bartlett
35d30de095 r18368: Don't list GENSEC mechs that only have client implementations in our
supportedSASLMechanism list.

Andrew Bartlett
(This used to be commit 3e69637b5f)
2007-10-10 14:18:20 -05:00
Andrew Bartlett
a41b696346 r18367: When converting to entryUUID, ensure we don't double-convert a
string-format GUID.

Andrew Bartlett
(This used to be commit 11cc6408c9)
2007-10-10 14:18:19 -05:00
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff)
2007-10-10 14:18:04 -05:00
Andrew Bartlett
704327044d r18240: Make it clearer when we store the plaintext password.
Store the plaintext password in userPassword in the LDAP backend so
that the OpenLDAP server can use DIGEST-MD5.

Andrew Bartlett
(This used to be commit 1b02c604b2)
2007-10-10 14:17:53 -05:00
Jelmer Vernooij
38fdde5d9b r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b145)
2007-10-10 14:17:05 -05:00
Simo Sorce
23e6b27d5c r17998: start working on syntaxes
(This used to be commit b49b8f5cb5)
2007-10-10 14:17:03 -05:00
Andrew Bartlett
25f9e52a5d r17955: Don't search for the dnsDomain attribute, it is invented (not in the
AD schema).

Andrew Bartlett
(This used to be commit fac27e4ddd)
2007-10-10 14:16:56 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Simo Sorce
814582de5a r17898: handle objectcategory and isdefunct for classes
(This used to be commit 7664b52b89)
2007-10-10 14:16:53 -05:00
Simo Sorce
3ddab071eb r17894: better name for the internal syntax type
(This used to be commit 4241a1bb83)
2007-10-10 14:16:53 -05:00
Andrew Bartlett
69ecd9538f r17870: This module (for the moment) handles the modifyTimestamp generation. For that, it needs to hook into the modify operation.
Andrew Bartlett
(This used to be commit d22117a53b)
2007-10-10 14:16:50 -05:00
Simo Sorce
0c34fbe311 r17860: Let's commit the work down up to now on the new schema module.
At the moment it is able to validate an object has no conflicting
objectlasses that it meets the criteria to be inserted as child of
the parent and also sorts and create the objectclass hierarchy so
that the objectclass .c module can be obsoleted.

Not activated by default as we have to completely rework the
current provisioning method. (In my tests I could not activate
it before all other ldif except for the one that create users
were loaded, make test seem to be happy anyway if it is activated
after provisioning).

Next steps will be attribute and attribute syntax checking on add operation.
And then the modify operation will follow.

Simo.
(This used to be commit 0c444ba1ad)
2007-10-10 14:16:49 -05:00
Simo Sorce
88b04ab6e6 r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded.

Introduce a function to retrieve the value where needed.
(This used to be commit 0caf6a44e0)
2007-10-10 14:16:46 -05:00
Andrew Tridgell
e031bfc41c r17825: I broken cracknames in my last patch - fix it up
(This used to be commit 4ec4f91a43)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
b21b119cbc r17824: add a wrapper for the common partitions_basedn calculation
(This used to be commit 09007b0907)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
0fd9807942 r17823: get rid of most of the samdb_base_dn() calls, as they are no longer
needed in searches
(This used to be commit a5ea749f0a)
2007-10-10 14:16:45 -05:00
Stefan Metzmacher
6268e2f148 r17788: fix compiler warnings
metze
(This used to be commit 00fcc4f16a)
2007-10-10 14:16:42 -05:00