summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| | * r17659: cope with systems without the x509 gnutls functionsAndrew Tridgell2006-08-211-1/+6
| | |
| | * r17658: several replacement snprintf() fixes.Andrew Tridgell2006-08-211-15/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) when running the testsuite, actually test against the system sprintf(), not against ourselves (doh!) 2) fix the buffer termination to terminate buf2 as well 3) fix handling of %llu, and add a simple test This fixes a bug with password expiry on solaris
| | * r17645: gcc 4.1.x has started producing "value computed is not used" warningsAndrew Tridgell2006-08-211-1/+4
| | | | | | | | | | | | | | | | | | in very annoying ways for talloc_steal. This rather strange looking cpp approach avoids these warnings. It's really a problem in gcc, but better to do this than put up with the huge flood of warnings.
| | * r17633: Return NULL at the end of the file, or else we can't tell theAndrew Bartlett2006-08-201-0/+4
| | | | | | | | | | | | | | | | | | difference between end of file and a blank line. Andrew Bartlett
| | * r17614: Our first "client side' ldb module.Simo Sorce2006-08-192-0/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module has been created with the purpose of being used for searches against ldap servers without the need to handle the control manually You can test it by passing -o modules:paged_searches to ldbsearch The page search size is set to 500 objects. Simo.
| | * r17613: style fixSimo Sorce2006-08-191-1/+2
| | |
| | * r17601: Fix declaration after statement.Andrew Bartlett2006-08-181-3/+2
| | | | | | | | | | | | Andrew Bartlett
| | * r17600: Finish the schema conversion tool, and add a mapping file, used to mapAndrew Bartlett2006-08-182-58/+145
| | | | | | | | | | | | | | | | | | OIDs and skip built-in attributes. Andrew Bartlett
| | * r17599: Improvements to the AD-like to OpenLDAP format schema conversion ↵Andrew Bartlett2006-08-181-53/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * r17596: apply patch from MartinSimo Sorce2006-08-171-4/+4
| | |
| | * r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the Stefan Metzmacher2006-08-177-55/+63
| | | | | | | | | | | | | | | | | | | | | | | | configure check for the interfaces. should fix the build on some old sun boxes metze
| | * r17582: Fix dependenies for oLschema2ldif.Andrew Bartlett2006-08-171-1/+1
| | | | | | | | | | | | Andrew Bartlett
| | * r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.Andrew Bartlett2006-08-171-0/+324
| | | | | | | | | | | | Andrew Bartlett
| | * r17580: Add a new tools to convert back from AD-like schema to OpenLDAP.Andrew Bartlett2006-08-178-36/+312
| | | | | | | | | | | | | | | | | | Add attribute syntax mapping to the existing OpenLDAP -> AD tool. Andrew Bartlett
| | * r17579: make ldb build g++ friendlyAndrew Tridgell2006-08-174-67/+67
| | |
| | * r17578: in standalone talloc build ensure we get intptr_t if available (whichAndrew Tridgell2006-08-171-0/+3
| | | | | | | | | | | | makes the discard_const stuff nicer)
| | * r17542: In using ldb_map, I ran across some very odd behaviours when we searchAndrew Bartlett2006-08-144-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for objectClass=xyz. The code has been warning at me 'no covert_operator set', and indeed this is the case. (It then proceeds to strip this as a search expression) In this commit, I have implemented a convert_operator for objectClass, by pretending it is a simple MAP_CONVERT operator for the search requests. I also have changed the logic for when we should bail out. I can only see reason to bail out on the search if we have both local and remote trees. How can a remote-only search be un-splittable? Andrew Bartlett
| | * r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202Stefan Metzmacher2006-08-141-0/+99
| | | | | | | | | | | | metze
| | * r17532: merge from SAMBA_3_0 Revision: 17460Stefan Metzmacher2006-08-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | First step at fixing the build breakage with the groupmapping test. On Linux, F_RDLCK is defined to 0, for example NetBSD has it at 1. Still does not work fully though. Still investigating. metze
| | * r17526: Move timestamp generation into the objectGUID module. It probablyAndrew Bartlett2006-08-141-41/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | needs to be renamed (operation_add?). This allows me to match the behaviour and substitute with the entryUUID module for remote LDAP connections. Andrew Bartlett
| | * r17525: This is a merge from the Google Summer of Code 2006 project by ↵Andrew Bartlett2006-08-136-1238/+3054
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Martin Kühl <mkhl@samba.org>. Martin took over the work done last year by Jelmer, in last year's SoC. This was a substanital task, as the the ldb modules API changed significantly during the past year, with the addition of async calls. This changeset reimplements and enables the ldb_map ldb module and adapts the example module and test case, both named samba3sam, to the implementation. The ldb_map module supports splitting an ldb database into two parts (called the "local" and "remote" part) and storing the data in one of them (the remote database) in a different format while the other acts as a fallback. This allows ldb to e.g. store to and load data from a remote LDAP server and present it according to the Samba4 schema while still allowing the LDAP to present and modify its data separately. A complex example of this is the samba3sam module (by Jelmer Vernooij), which maps data between the samba3 and samba4 schemas. A simpler example is given by the entryUUID module (by Andrew Bartlett), which handles some of the differences between AD and OpenLDAP in operational attributes. It principally maps objectGUID, to and from entryUUID elements. This is also an example of a module that doesn't use the local backend as fallback storage. This merge also splits the ldb_map.c file into smaller, more manageable parts.
| | * r17524: Lets see if we can try and get the socket_wapper includes to beAndrew Bartlett2006-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | pre-processed last, and get AIX and some other hosts to pass make test again (I think the macros were being over-overridden). Andrew Bartlett
| | * r17516: Change helper function names to make more clear what they are meant ↵Simo Sorce2006-08-136-47/+47
| | | | | | | | | | | | to do
| | * r17515: Fix warningsSimo Sorce2006-08-131-7/+7
| | |
| | * r17514: Simplify the way to set ldb errors and add anotherSimo Sorce2006-08-1316-119/+123
| | | | | | | | | | | | helper function to set them.
| | * r17507: pread and pwrite depends on HAVE_PREAD/HAVE_PWRITE not ↵Simo Sorce2006-08-121-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | HAVE_PREAD_DECL/HAVE_PWRITE_DECL and common/io.h already defines pread and pwrite as static if they are not. remove unneded defines
| | * r17504: Do not use the invented unixID but use the rfc2307 uidNumber and ↵Simo Sorce2006-08-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | gidNumber attributes instead Do not change unixName right now, we don't have an attribute to use in the posixGroup class, and I think we should remove its usage altogether and look up users and groups by their uid/gid only. Simo.
| | * r17503: Add a useful function to search for a DNSimo Sorce2006-08-122-0/+17
| | |
| | * r17494: add tests for the example values from rfc 1320 (MD4)Stefan Metzmacher2006-08-111-0/+84
| | | | | | | | | | | | metze
| | * r17493: fix typoStefan Metzmacher2006-08-111-1/+1
| | | | | | | | | | | | metze
| | * r17492: add a test with the example values from rfc1321 (MD5)Stefan Metzmacher2006-08-111-0/+87
| | | | | | | | | | | | metze
| | * r17490: add all test values from rfc 2202Stefan Metzmacher2006-08-111-12/+66
| | | | | | | | | | | | metze
| | * r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174Stefan Metzmacher2006-08-118-3/+752
| | | | | | | | | | | | | | | | | | - and add torture tests also based on the rfc's metze
| | * r17474: Allow the partitions module to load modules for specific backends.Andrew Bartlett2006-08-102-4/+8
| | | | | | | | | | | | Andrew Bartlett
| | * r17473: Split loading a list of modules and initialising them into a seperateAndrew Bartlett2006-08-101-42/+58
| | | | | | | | | | | | | | | | | | function. Andrew Bartlett
| | * r17432: display more GUID values nicely,Stefan Metzmacher2006-08-061-0/+48
| | | | | | | | | | | | | | | | | | | | | they all have rangeLower=16 rangeUpper=16 and attribute syntax 2.5.5.10 metze
| | * r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the clientStefan Metzmacher2006-08-052-0/+29
| | | | | | | | | | | | metze
| | * r17429: implement the LDAP_SERVER_SHOW_DELETED control in the clientStefan Metzmacher2006-08-052-0/+28
| | | | | | | | | | | | metze
| | * r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE controlStefan Metzmacher2006-08-052-2/+30
| | | | | | | | | | | | metze
| | * r17419: add client support for the LDAP_SERVER_SEARCH_OPTIONS support.Stefan Metzmacher2006-08-052-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | 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
| | * r17418: add client support for the LDAP_SERVER_SD_FLAGS controlStefan Metzmacher2006-08-052-1/+43
| | | | | | | | | | | | metze
| | * r17416: display the attributeSecurityGUID nicely.Stefan Metzmacher2006-08-051-0/+8
| | | | | | | | | | | | | | | | | | | | | this attriute is used to group multiple attribute to a propertySet for access control. metze
| | * r17415: the ldif handlers can't do search as this now blocks foereverStefan Metzmacher2006-08-051-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | because the handlers are called within the async callbacks in side the main search. Also it makes no sense to give the sddl encoder the sid of the primary domain when we need a description of a real security_descriptor, this only makes sense for the defaultSecurityDescriptor... metze
| | * r17413: add a new case for the this:Stefan Metzmacher2006-08-051-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | top->level1->level2->level3 level3 has a deny destructor talloc_free(level1) result: top->level3 metze
| | * r17412: fix missing colonSimo Sorce2006-08-051-1/+1
| | |
| | * r17411: Try and compile on older versions of GnuTLS.Andrew Bartlett2006-08-042-0/+7
| | | | | | | | | | | | Andrew Bartlett
| | * r17398: avoid a memleak when we are returned 0 results and make a more ↵Simo Sorce2006-08-041-8/+8
| | | | | | | | | | | | creative use of memory contexts
| | * r17397: Add const, and use a more local memory context.Andrew Bartlett2006-08-041-12/+22
| | | | | | | | | | | | Andrew Bartlett
| | * r17379: Pre-generate DH parameters, to avoid doing this at runtime in our ↵Andrew Bartlett2006-08-031-2/+16
| | | | | | | | | | | | | | | | | | testsuite. Andrew Bartlett
| | * r17370: Fix tdb searches, we need to return an LDAP_REPLY_DONE packet when done.Simo Sorce2006-08-021-0/+15
| | | | | | | | | | | | Awesome how this didn't break everything around...