1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-21 12:23:50 +03:00
Commit Graph

346 Commits

Author SHA1 Message Date
Stefan Metzmacher
af78a86d2c r20408: fix cut'n'paste error
metze
2007-10-10 14:30:25 -05:00
Stefan Metzmacher
f860dd2dca r20407: the oMObjectClass values are not padded to 10 bytes!
metze
2007-10-10 14:30:24 -05:00
Stefan Metzmacher
1a21eb7000 r20405: add an array with attribute syntexes
metze
2007-10-10 14:30:24 -05:00
Andrew Bartlett
bf7ab75875 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
2007-10-10 14:30:22 -05:00
Andrew Bartlett
a6bbfebf52 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
2007-10-10 14:30:22 -05:00
Stefan Metzmacher
5440c0a99f r20382: systemAuxiliaryClass and auxiliaryClass are also multivalued attributes
metze
2007-10-10 14:30:20 -05:00
Stefan Metzmacher
5f0da4a3ae r20379: - make sure the schema info blob is 21 bytes long
- add a function to verify the incoming mapping and schema info

metze
2007-10-10 14:30:20 -05:00
Andrew Bartlett
3c5ff4e687 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
2007-10-10 14:30:19 -05:00
Andrew Bartlett
629c72f0c2 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
2007-10-10 14:30:18 -05:00
Stefan Metzmacher
bfb7756bb0 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
2007-10-10 14:29:42 -05:00
Stefan Metzmacher
80b8a96824 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
2007-10-10 14:29:40 -05:00
Andrew Bartlett
2eb9e6445c 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
2007-10-10 14:29:38 -05:00
Stefan Metzmacher
0352b7bbc6 r20307: remove unused vars
metze
2007-10-10 14:29:36 -05:00
Stefan Metzmacher
df63995ec5 r20306: remove the static oid mapping table
and attach the table to the dsdb_schema

metze
2007-10-10 14:29:36 -05:00
Stefan Metzmacher
9168236ddd r20233: add functions to create a dsdb_attribute and dsdb_class from
a drsuapi_DsReplicaObject

metze
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
5d7827f45e 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
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
3af0a9b2c4 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
2007-10-10 14:29:26 -05:00
Stefan Metzmacher
e5b67046c2 r20226: rename macros with a _LDB at the end, because I'll add macros with _DS
soon

metze
2007-10-10 14:29:25 -05:00
Stefan Metzmacher
e50cf96fea 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
2007-10-10 14:29:24 -05:00
Stefan Metzmacher
66c4b42f5f r20223: this function is in the torture test now
metze
2007-10-10 14:29:24 -05:00
Stefan Metzmacher
58ba6ec195 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
2007-10-10 14:29:23 -05:00
Stefan Metzmacher
b97b8f5dcb 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
2007-10-10 14:29:19 -05:00
Andrew Bartlett
67d8365e83 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
2007-10-10 14:29:15 -05:00
Simo Sorce
4f07542143 r20034: Start using ldb_search_exp_fmt() 2007-10-10 14:28:51 -05:00
Stefan Metzmacher
72f5e0f7ee r20028: fix typos
metze
2007-10-10 14:28:49 -05:00
Stefan Metzmacher
5da9dedece r20027: restore instanceType and systemFlags values, which got lost in
http://viewcvs.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_4_0/source/dsdb/common/flags.h?p1=branches%2FSAMBA_4_0%2Fsource%2Finclude%2Fads.h&rev=17930&r1=15511&r2=17930

metze
2007-10-10 14:28:49 -05:00
Simo Sorce
3a662a2d98 r19869: fix memleaks 2007-10-10 14:28:28 -05:00
Simo Sorce
3929c086d5 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
2007-10-10 14:28:22 -05:00
Simo Sorce
a580c871d3 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.
2007-10-10 14:28:22 -05:00
Andrew Bartlett
c4bf9cc09b r19757: Don't do the strrchr twice. Pointed out by Martin Kuhl.
Andrew Bartlett
2007-10-10 14:28:19 -05:00
Andrew Bartlett
9890af534d 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
2007-10-10 14:28:15 -05:00
Andrew Bartlett
186766e309 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
2007-10-10 14:28:15 -05:00
Stefan Metzmacher
62aa73f3d5 r19726: when a client explicit asks for the 'netlogon' attriubute on LDAP
the result entry is skipped!

metze
2007-10-10 14:28:14 -05:00
Andrew Bartlett
4826f17351 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
2007-10-10 14:25:03 -05:00
Andrew Bartlett
2b569c42e0 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
2007-10-10 14:25:00 -05:00
Simo Sorce
889fb983ba r19531: Make struct ldb_dn opaque and local to ldb_dn.c 2007-10-10 14:24:44 -05:00
Andrew Bartlett
379da475e2 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
2007-10-10 14:24:44 -05:00
Jelmer Vernooij
7a01235067 r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
works again now, by specifying --enable-dso to configure.
2007-10-10 14:24:41 -05:00
Simo Sorce
0fa5d4bc22 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.
2007-10-10 14:24:38 -05:00
Andrew Bartlett
c843fce7a0 r19464: Reject passwords that cannot be converted into UCS2.
Andrew Bartlett
2007-10-10 14:21:37 -05:00
Andrew Tridgell
b92553481b r19441: work in progress support for NFS4 ACLs in Samba4 on Linux. Still work
to do, particularly with getting the detailed bit mappings right, and
on sid mapping. Does not pass RAW-ACLS yet
2007-10-10 14:21:32 -05:00
Simo Sorce
d2073c1f7e 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
2007-10-10 14:21:12 -05:00
Simo Sorce
524ec78086 r19333: commit module changes I made some time ago before I loose them 2007-10-10 14:21:11 -05:00
Simo Sorce
3e0e2787c1 r19332: ldb_parse_tree leaks 2007-10-10 14:21:11 -05:00
Simo Sorce
f163f422e3 r19330: Fix memleaks 2007-10-10 14:21:10 -05:00
Andrew Tridgell
3f48bcb058 r19329: fixed a leak in the password hash module 2007-10-10 14:21:10 -05:00
Andrew Tridgell
f57535b9c2 r19328: another leak plugged .... 2007-10-10 14:21:10 -05:00
Andrew Bartlett
1d4d2271c9 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
2007-10-10 14:21:08 -05:00
Simo Sorce
e3b7e91299 r19313: Don't mess with hierarchies!!
There is a reason why we use them :-)
2007-10-10 14:21:07 -05:00
Andrew Bartlett
3310032399 r19308: Merge samsync fixes from SAMBA_4_0_RELEASE
Andrew Bartlett
2007-10-10 14:21:06 -05:00