1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

153 Commits

Author SHA1 Message Date
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 3929c086d5d0b3f08b1c4f2f3f9602c3f4a9a4bd)
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 a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10 14:28:22 -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 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10 14:25:00 -05:00
Simo Sorce
549dd10f0f r19332: ldb_parse_tree leaks
(This used to be commit 3e0e2787c1da1c3831e21b163e1370001d725a3d)
2007-10-10 14:21:11 -05:00
Andrew Bartlett
e0294c9f66 r19310: Add another conflicting oid
Cope with there being no attributes to skip in the ad2oLscheam tool

Andrew Bartlett
(This used to be commit 942d7ad0c3534770ad05977b180e1c8111a5b6a6)
2007-10-10 14:21:06 -05:00
Andrew Tridgell
04140ac3c7 r19274: fix ldbdel and ldbmodify to return an error if the underlying ldb call
fails
(This used to be commit 330a722f1330059cbba19f99210a1a5a7c773a36)
2007-10-10 14:21:00 -05:00
Andrew Tridgell
2ad8e1443d 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
(This used to be commit dd82c474a123d90329bda653a4cb73c93e087b15)
2007-10-10 14:21:00 -05:00
Volker Lendecke
51f27dc3f1 r18851: Some C++ warnings
(This used to be commit 69f05f288ce7a8508760db861d0910495bd1d578)
2007-10-10 14:20:16 -05:00
Andrew Tridgell
088c24e4e6 r18840: make these compatible with g++ warnings
(This used to be commit bcfa93954fdb00f500f174cd227e3d9b2ef94fdc)
2007-10-10 14:20:15 -05:00
Andrew Tridgell
ee528dc0f2 r18596: removed superfluous semicolon
(This used to be commit 4f3628dea69efce430bf96a42435025806853d90)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
05cdd9ccaf 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.
(This used to be commit 254cbf09dee5a1e20c47e47a298f1a8d172b41b9)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
7f63cebd33 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
(This used to be commit c0d9e7d473b8e3eb2524a9fc29cf88680f994b36)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
f658414c5f r18327: 'struct token' is defined on some hosts
(This used to be commit b2bba4e7261e4daf2be44110c454eb0e217836ca)
2007-10-10 14:18:09 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded0732df0eaf9f6226f52a27b6eacd73)
2007-10-10 14:17:45 -05:00
Andrew Tridgell
eaf584cd97 r18133: ad2oLschema needs ctype.h on some systems
(This used to be commit efe60c8a4b28fa88abe5177b1a95c4ac5ac9496c)
2007-10-10 14:17:37 -05:00
Andrew Bartlett
173d17ab2f r18022: Increment number of records converted, and print number of records skipped.
Andrew Bartlett
(This used to be commit 6c11501ec3d8b95d5a80d5dbca745ae9e02d3304)
2007-10-10 14:17:03 -05:00
Simo Sorce
bc2e3aa3f3 r17868: remove duplicated attributes from list
(This used to be commit fab0e66281ca0feddf1ce26249706e865856b17a)
2007-10-10 14:16:49 -05:00
Volker Lendecke
03dd0d5fc8 r17844: The AIX compiler thinks { } is a syntax error
(This used to be commit 4189736e09dab2b7ff57b7bba04d54c0ffeea140)
2007-10-10 14:16:48 -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 0caf6a44e03393c645030a9288e7dfd31e97c98b)
2007-10-10 14:16:46 -05:00
Andrew Tridgell
a2ca0b5e3c 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
(This used to be commit 5d1b66b68fc517ce684f75e466ed5f25e46857d5)
2007-10-10 14:16:44 -05:00
Andrew Tridgell
6a4794452f r17820: simplify the code flow a little
(This used to be commit 221272e3930e1fbf30df1ad19713935d38cde46c)
2007-10-10 14:16:44 -05:00
Andrew Tridgell
8ad26badea r17745: got rid of the final asprintf() in ldb
(This used to be commit 21377a607647c847c6902b685555a0206e61c6dd)
2007-10-10 14:16:35 -05:00
Andrew Tridgell
0a98d90995 r17740: get rid of dependence on asprintf(), using talloc_asprintf() instead
(This used to be commit 0e350ea0c1bba278995da5e8de677c5651eb623e)
2007-10-10 14:16:34 -05:00
Andrew Tridgell
e7f56e45b2 r17719: ldb_cmdline needs to be static for cc on solaris
(This used to be commit db4d99f35b6874da01d0a1c68d64bd73635a7ec9)
2007-10-10 14:16:31 -05:00
Andrew Bartlett
b2658f0dd6 r17707: Match the output (aside from dividers) the output of
ol-schema-migrate.pl in the schema output.

Andrew Bartlett
(This used to be commit 8f624fd17503e85afe74a3e1915e30f28d19853b)
2007-10-10 14:16:28 -05:00
Andrew Tridgell
35817c01a8 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
(This used to be commit 580ed6730d33bad62e9799a38377c40f2852ae89)
2007-10-10 14:16:22 -05:00
Simo Sorce
2b4249e7ba r17613: style fix
(This used to be commit 86fc149ca805e4c801f6251c8c9f2480010b4962)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
2faae939ce r17601: Fix declaration after statement.
Andrew Bartlett
(This used to be commit 05c276568a6c42c9ceb686a390c4fd279d4a5bb6)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
49b335c756 r17600: Finish the schema conversion tool, and add a mapping file, used to map
OIDs and skip built-in attributes.

Andrew Bartlett
(This used to be commit cb2b9d800d1228d41f7872a7b7c8ea5f07816c61)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
c35420160e 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
(This used to be commit 22dec7b62adbf364d2d17948fda1460cbbbf0a78)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
f28774e370 r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.
Andrew Bartlett
(This used to be commit 391f472df775f7e7b85335d96315807c38fe5536)
2007-10-10 14:15:39 -05:00
Andrew Bartlett
7de75a991b 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
(This used to be commit ba1c652bae700a82acde166e70035d61c320e233)
2007-10-10 14:15:39 -05:00
Stefan Metzmacher
3a083f8f53 r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client
metze
(This used to be commit 96259f0f24b114e505241c9d2deb702a8b40f1b6)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
12050962f6 r17429: implement the LDAP_SERVER_SHOW_DELETED control in the client
metze
(This used to be commit 40dc7c1787c16bfc15ac87fee81d2d2d1f3d2fde)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
8ac0237eba r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control
metze
(This used to be commit 84e74a759cfa49ebc8b4ba1b8e729d6d920fc55a)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
817610f385 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
(This used to be commit 4ccd0f8171f3748ee6efe1abd3f894d2cdf46bf4)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
b4028ca104 r17418: add client support for the LDAP_SERVER_SD_FLAGS control
metze
(This used to be commit 23759a1e9b05c4fde475a9016cb0b7447656d7e7)
2007-10-10 14:15:23 -05:00
Simo Sorce
49f68caed2 r17186: "async" word abuse clean-up part 2
(This used to be commit c6aa60c7e69abf1f83efc150b1c3ed02751c45fc)
2007-10-10 14:10:17 -05:00
Simo Sorce
c93817b36d 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.
(This used to be commit 25fc7354049d62efeba17681ef1cdd326bc3f2ef)
2007-10-10 14:10:16 -05:00
Simo Sorce
ca5accf224 r16036: Add a couple of new functions to corretly deal with timeouts.
Check timeouts are correctly verified.
Some minor fixed and removal of unused code.
(This used to be commit b52e5d6a0cb1a32e62759eaa49ce3e4cc804cc92)
2007-10-10 14:08:52 -05:00
Stefan Metzmacher
8d0d05ddfd r15955: fix whitespaces
metze
(This used to be commit a3d1ce6d3b8e771d28ab4418679b89a388579360)
2007-10-10 14:08:44 -05:00
Simo Sorce
2d19dca9c8 r15944: rename LDB_ASYNC_ADD -> LDB_ADD, LDB_ASYNC_MODIFY -> LDB_MODIFY, etc...
(This used to be commit 55d97ef88f377ef1dbf7b1774a15cf9035e2f320)
2007-10-10 14:08:43 -05:00
Simo Sorce
03703a58d7 r15932: Remove per request creds
They have never benn used and make little sense too imo
(This used to be commit f0c1d08d50f8a3e25650ac85b178ec7a43e433d9)
2007-10-10 14:08:41 -05:00
Simo Sorce
71152824ef r15847: We probably want to keep the global init
(This used to be commit 35df457fe61e1b1f0746eadba867f7ac149e9600)
2007-10-10 14:08:31 -05:00
Simo Sorce
f1655e0298 r15846: An async version of ldbsearch
(This used to be commit 2c1af6556a2d57df6626a9f0d9fd758602ac3c5c)
2007-10-10 14:08:31 -05:00
Andrew Bartlett
fe93126096 r15372: Don't look at possibly undefined controls in failure cases.
Andrew Bartlett
(This used to be commit 04f383048ae48af6b28052ba6461fe2e476e7c44)
2007-10-10 14:05:28 -05:00
Jelmer Vernooij
47bf79eac5 r15370: Fix more dependencies for shared libs
(This used to be commit 9a518661fbb76bf1c153afc6f581e888186dc165)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
7a121583b4 r14349: Kill proto.h!
Prototypes are now spread over multiple headers, usually one per subsystem.
This change is required to allow proper header dependencies later on,
without recompiling Samba each time the mtime of any source file changes.
(This used to be commit 3da79bf909f801386a52e6013db399c384d0401c)
2007-10-10 13:57:14 -05:00
Simo Sorce
b1bf44a4e1 r14344: More helpful messages on error for command line specified controls
fixes in paged_results
asq -> async
(This used to be commit fbd347544001da9e46246eb0b4a8d165ccab15c9)
2007-10-10 13:57:13 -05:00
Simo Sorce
82da2d401e r13998: From now on ldb_request() will require an alloced request
By freeing the request you will be sure everything down the path get freed.

this also means you have to steal the results if you want to keep them :)

simo.
(This used to be commit e8075e6a062ce5edb84485e45d0b841c2ee2af7d)
2007-10-10 13:52:36 -05:00