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

164 Commits

Author SHA1 Message Date
Jelmer Vernooij
582e743e68 r22684: Fix native Samba build. 2007-10-10 14:52:01 -05:00
Jelmer Vernooij
532f28724d r22682: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:01 -05:00
Jelmer Vernooij
1093875d59 r22681: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:00 -05:00
Andrew Bartlett
ddcca38c65 r22559: Make the ad2OLschema tool case insensitive.
Andrew Bartlett
2007-10-10 14:51:44 -05:00
Andrew Bartlett
d7cd4b768a r22497: Support renaming objectclasses and attributes for the LDAP backend.
OpenLDAP is fussy about operational attributes in user-supplied
schema.

Andrew Bartlett
2007-10-10 14:51:33 -05:00
Andrew Bartlett
9908a05ef7 r22476: The OID match is used very oddly in AD, as it is often used for fields
that contain attribute names and objectClasses.  Make it a case
insensitive string for now.

Andrew Bartlett
2007-10-10 14:51:31 -05:00
Andrew Bartlett
e1536014a0 r22475: Rather than segfault, show the name of the malformed entry.
Andrew Bartlett
2007-10-10 14:51:30 -05:00
Andrew Bartlett
2b3df7f38d r21496: A number of ldb control and LDAP changes, surrounding the
'phantom_root' flag in the search_options control

- Add in support for LDB controls to the js layer
- Test the behaviour
- Implement support for the 'phantom_root' flag in the partitions module
- Make the LDAP server set the 'phantom_root' flag in the search_options control
  - This replaces the global_catalog flag passed down as an opaque pointer
- Rework the string-format control parsing function into
  ldb_parse_control_strings(), returning errors by ldb_errorstring()
  method, rather than with printf to stderr
- Rework some of the ldb_control handling logic

Andrew Bartlett
2007-10-10 14:48:44 -05:00
Andrew Bartlett
c0276c373c r20467: Don't segfault if we don't have an OID map 2007-10-10 14:35:53 -05:00
Simo Sorce
4f07542143 r20034: Start using ldb_search_exp_fmt() 2007-10-10 14:28:51 -05:00
Volker Lendecke
44e6d39e0e r19897: Fix klokwork ids 2278 and 2279 2007-10-10 14:28:33 -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
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
3e0e2787c1 r19332: ldb_parse_tree leaks 2007-10-10 14:21:11 -05:00
Andrew Bartlett
942d7ad0c3 r19310: Add another conflicting oid
Cope with there being no attributes to skip in the ad2oLscheam tool

Andrew Bartlett
2007-10-10 14:21:06 -05:00
Andrew Tridgell
330a722f13 r19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
fails
2007-10-10 14:21:00 -05:00
Andrew Tridgell
dd82c474a1 r19273: - fixed error handling with the ldap backend
- propogate errors to the ldbadd command line tool

- use the rdn_name module when testing the tdb backend to allow the
  same test code to correctly test the ldap and non-ldap backends
2007-10-10 14:21:00 -05:00
Volker Lendecke
69f05f288c r18851: Some C++ warnings 2007-10-10 14:20:16 -05:00
Andrew Tridgell
bcfa93954f r18840: make these compatible with g++ warnings 2007-10-10 14:20:15 -05:00
Andrew Tridgell
4f3628dea6 r18596: removed superfluous semicolon 2007-10-10 14:18:54 -05:00
Andrew Tridgell
254cbf09de r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
2007-10-10 14:18:29 -05:00
Andrew Tridgell
c0d9e7d473 r18436: converted ldb to use talloc_move() instead of talloc_steal() when
appropriate.

Note that I also removed the error checks that were being done on the
result of talloc_steal(). They are pointless as talloc_steal() doesn't
have any failure modes that wouldn't cause a segv anyway, and they
tend to clutter the code
2007-10-10 14:18:29 -05:00
Andrew Tridgell
b2bba4e726 r18327: 'struct token' is defined on some hosts 2007-10-10 14:18:09 -05:00
Jelmer Vernooij
8b622c5ded r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available. 2007-10-10 14:17:45 -05:00
Andrew Tridgell
efe60c8a4b r18133: ad2oLschema needs ctype.h on some systems 2007-10-10 14:17:37 -05:00
Andrew Bartlett
6c11501ec3 r18022: Increment number of records converted, and print number of records skipped.
Andrew Bartlett
2007-10-10 14:17:03 -05:00
Simo Sorce
fab0e66281 r17868: remove duplicated attributes from list 2007-10-10 14:16:49 -05:00
Volker Lendecke
4189736e09 r17844: The AIX compiler thinks { } is a syntax error 2007-10-10 14:16:48 -05:00
Simo Sorce
0caf6a44e0 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.
2007-10-10 14:16:46 -05:00
Andrew Tridgell
5d1b66b68f r17821: changed ldb_search() and the ldbsearch command line utility to
automatically work out the basedn when basedn==NULL. The basedn is
fetched from the rootDSE defaultNamingContext value (if there is one)

This means we don't have to have the defaultNamingContext logic in
lots of places. It makes a lot of sense to me to have basedn==NULL
mean "use the default, as given by the database"

Note that explicitly specifing a basedn of '' is not the same thing,
and will not trigger this code

The baseDN is cached in a ldb opaque, so we only have to fetch it once
2007-10-10 14:16:44 -05:00
Andrew Tridgell
221272e393 r17820: simplify the code flow a little 2007-10-10 14:16:44 -05:00
Andrew Tridgell
21377a6076 r17745: got rid of the final asprintf() in ldb 2007-10-10 14:16:35 -05:00
Andrew Tridgell
0e350ea0c1 r17740: get rid of dependence on asprintf(), using talloc_asprintf() instead 2007-10-10 14:16:34 -05:00
Andrew Tridgell
db4d99f35b r17719: ldb_cmdline needs to be static for cc on solaris 2007-10-10 14:16:31 -05:00
Andrew Bartlett
8f624fd175 r17707: Match the output (aside from dividers) the output of
ol-schema-migrate.pl in the schema output.

Andrew Bartlett
2007-10-10 14:16:28 -05:00
Andrew Tridgell
580ed6730d r17679: - fix 'make test-ldap' to skip ldb specials
- allow ldb to be built in a separate build directory, using:

     /some/path/to/ldb/configure
     make

  this will make it much easier to put ldb in the build farm without
  interfering with the build farm builds of tdb and talloc
2007-10-10 14:16:22 -05:00
Simo Sorce
86fc149ca8 r17613: style fix 2007-10-10 14:16:16 -05:00
Andrew Bartlett
05c276568a r17601: Fix declaration after statement.
Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
cb2b9d800d r17600: Finish the schema conversion tool, and add a mapping file, used to map
OIDs and skip built-in attributes.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
22dec7b62a r17599: Improvements to the AD-like to OpenLDAP format schema conversion utility.
We now read the objectClasses, and sort them into order, so that
OpenLDAP will load them.  We do this by walking down the 'subClassOf'
chain.  This should also be used in the objectClass module to sort the
objectClass list, and to populate the @SUBCLASS records.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
391f472df7 r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.
Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Bartlett
ba1c652bae r17580: Add a new tools to convert back from AD-like schema to OpenLDAP.
Add attribute syntax mapping to the existing OpenLDAP -> AD tool.

Andrew Bartlett
2007-10-10 14:15:39 -05:00
Stefan Metzmacher
96259f0f24 r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
40dc7c1787 r17429: implement the LDAP_SERVER_SHOW_DELETED control in the client
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
84e74a759c r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
4ccd0f8171 r17419: add client support for the LDAP_SERVER_SEARCH_OPTIONS support.
with this you can limit a search to a specific partitions
or a search over all partitions without getting referrals.
(Witch is the default behavior on the Global Catalog Port)

metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
23759a1e9b r17418: add client support for the LDAP_SERVER_SD_FLAGS control
metze
2007-10-10 14:15:23 -05:00
Simo Sorce
c6aa60c7e6 r17186: "async" word abuse clean-up part 2 2007-10-10 14:10:17 -05:00
Simo Sorce
25fc735404 r17185: Oh, I wanted to do this for sooo long time.
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.

Simo.
2007-10-10 14:10:16 -05:00