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

1106 Commits

Author SHA1 Message Date
Jelmer Vernooij
0e77e3e316 r25541: Add setup.py for building ldb python wrappers standalone. 2007-10-10 15:07:50 -05:00
Jelmer Vernooij
042dff55b4 r25540: Remove prototypes for already removed functions. 2007-10-10 15:07:50 -05:00
Jelmer Vernooij
5e814287ba r25522: Convert to standard bool types. 2007-10-10 15:07:47 -05:00
Jelmer Vernooij
fd697d77c9 r25430: Add the loadparm context to all parametric options. 2007-10-10 15:07:31 -05:00
Stefan Metzmacher
d03ec5655d r25425: move LDB_MODULESDIR define into config.h
this hopefully fixes the build on some hosts

metze
2007-10-10 15:07:30 -05:00
Stefan Metzmacher
dcead25b29 r25421: SHLIBEXT comes in via samba's config.h already
metze
2007-10-10 15:07:30 -05:00
Stefan Metzmacher
869c30abb6 r25269: this doesn't fix the problems with BSD make completely...
metze
2007-10-10 15:07:03 -05:00
Stefan Metzmacher
5679e7d824 r25259: try to work arround the build failures on OpenBSD 3.7
metze
2007-10-10 15:07:01 -05:00
Tim Potter
448cf5b61f r25220: Comment out obsolete functions. 2007-10-10 15:06:57 -05:00
Andrew Bartlett
f5ce04b904 r25218: After discussion with Simo, remove the subclass support from LDB.
Subclass support was designed to avoid needing to spell out the full
list of objectClasses that an entry was in.  However, Samba4 now
enforces this restriction in the objectClass module, and the way
subclass matching was handled was complex and counter-intuitive in my
opinion (and did not match LDAP).

Andrew Bartlett
2007-10-10 15:06:56 -05:00
Stefan Metzmacher
8f2db3c130 r25215: replace talloc_append_string() with talloc_strdup_append_buffer()
metze
2007-10-10 15:06:55 -05:00
Andrew Bartlett
9cccd00dac r25204: Patch by Andrew Kroeger <andrew@sprocks.gotdns.com> fixing bug #4958 -
rename of ldb entries for a case change (only).

I've modified the testsuite to verify this.

Andrew Bartlett
2007-10-10 15:06:52 -05:00
Stefan Metzmacher
9d6d296105 r25187: pass FIRST_PREREQ to Makefile so that the value can be used
in handwritten rules too, hopefully fix the build
of ldb with bsd make.

metze
2007-10-10 15:06:48 -05:00
Jelmer Vernooij
6c66e09c9e r25105: No need to register ldb_map as a module. 2007-10-10 15:06:38 -05:00
Jelmer Vernooij
bcf5c94474 r25100: Include LDAP libs in .pc file so linking statically against libldb works again. 2007-10-10 15:06:37 -05:00
Jelmer Vernooij
e31614b5ea r25097: Don't clutter users' CFLAGS with ldb cflags. 2007-10-10 15:06:36 -05:00
Jelmer Vernooij
8aab673df5 r25093: Use system-provided ldb library if available. Note that this only means using the ldb library from the system - the custom command-line tools for Samba 4 will still be built even if they are already provided by the system. 2007-10-10 15:06:27 -05:00
Jelmer Vernooij
1ba883c62e r25085: Define LDB_MODULESDIR for standalone build. 2007-10-10 15:06:26 -05:00
Jelmer Vernooij
917bd737cb r25084: Move samba-specific code out of lib/ldb directory. 2007-10-10 15:06:26 -05:00
Jelmer Vernooij
e672380d21 r25081: Add modules_dir member to ldb_context that is used rather than a global
modulesdir setting. Samba always sets this to lp_modulesdir()/ldb
2007-10-10 15:06:25 -05:00
Jelmer Vernooij
df9cebcb97 r25035: Fix some more warnings, use service pointer rather than service number in more places. 2007-10-10 15:05:43 -05:00
Jelmer Vernooij
abe8349f9b r25026: Move param/param.h out of includes.h 2007-10-10 15:05:38 -05:00
Jelmer Vernooij
08bb1ef643 r25000: Fix some more C++ compatibility warnings. 2007-10-10 15:05:27 -05:00
Andrew Bartlett
8cfa1f898e r24567: Try much harder not to leak memory when comparing objectCategory entires.
Andrew Bartlett
2007-10-10 15:02:16 -05:00
Andrew Bartlett
2ed782f7ca r24566: Remove trailing newlines in ldb_debug(), these are not required.
Andrew Bartlett
2007-10-10 15:02:16 -05:00
Andrew Bartlett
b474be9507 r24459: Fix up ldap.js and test_ldb.sh to test the domain_scope control, and
to test the behaviour of objectCategory=user searches.

It turns out (thanks to a hint on
http://blog.joeware.net/2005/12/08/147/) that objectCategory=user maps
into objectCategory=CN=Person,... (by the defaultObjectCategory of
that objectclass).

Simplify the entryUUID module by using the fact that we now set the DN
as the canoncical form of objectCategory.

Andrew Bartlett
2007-10-10 15:01:53 -05:00
Andrew Bartlett
c4c3afcdcb r24261: Fix the standalone ldb build after I moved the objectclass module out.
Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
0f7135a468 r24259: Rework the objectclass module to use the new schema, rather than the
ldb_subclass list.

Next step will be to have this module also set the objectCategory and
default ntSecurityDescriptor

Andrew Bartlett
2007-10-10 15:01:31 -05:00
Andrew Bartlett
0fbea30577 r23993: Attempt to fix bug #4808, reported by mwallnoefer@yahoo.de. The issue
is that when we all ldb_msg_add_empty(), we might realloc() the
msg->elements array.  We need to ensure the source pointer (when
copying an element from the same msg) is still valid, or the data
copied.

Andrew Bartlett
2007-10-10 15:01:16 -05:00
Andrew Bartlett
9a38ddc86f r23809: Don't give users the fantasy that we can control choice of GENSEC
security mechanisms at the moment.  I'll put this back when I
implement the functionality.

Andrew Bartlett
2007-10-10 14:59:21 -05:00
Andrew Tridgell
5c9b19271e r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 14:59:18 -05:00
Andrew Tridgell
01e3fe7533 r23800: LGPL is now called GNU Lesser General Public License
not GNU Library General Public License
2007-10-10 14:59:17 -05:00
Andrew Tridgell
db92b76a00 r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 14:59:16 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
76c6bfdeb5 r23796: main COPYING file for samba4, plus some formatting varients 2007-10-10 14:59:14 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Andrew Tridgell
9d37f1ec07 r23794: convert more code from LGPLv2+ to LGPLv3+ 2007-10-10 14:59:13 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
3f3da9c471 r23762: Fix DN renames over LDAP, and instrument the partition module. Add a
test to prove the behaviour of LDAP renames etc.

Fix LDB to return correct error code when failing to rename one DN
onto another.

Andrew Bartlett
2007-10-10 14:59:11 -05:00
Tim Potter
0141db0fc4 r23753: Fix bitrot afflicting the ldb Python swig bindings. 2007-10-10 14:59:10 -05:00
Andrew Bartlett
10277f2724 r23737: Validate that we object to duplicate values in an add or replace.
We can't ever allow duplicates, even if the client sends them

Andrew Bartlett
2007-10-10 14:59:09 -05:00
Andrew Bartlett
3111bbdf64 r23703: Start to get Samba4 to again work with LDAP backends, after I turned
on metze's schema work.

Andrew Bartlett
2007-10-10 14:59:06 -05:00
Andrew Bartlett
dcff83ebe4 r23560: - Activate metze's schema modules (from metze's schema-loading-13 patch).
- samba3sam.js: rework the samba3sam test to not use objectCategory,
  as it's has special rules (dnsName a simple match)
- ldap.js: Test the ordering of the objectClass attributes for the baseDN
- schema_init.c: Load the mayContain and mustContain (and system...) attributes when
  reading the schema from ldb
- To make the schema load not suck in terms of performance, write the
  schema into a static global variable
- ldif_handlers.c: Match objectCategory for equality and canonicolisation
  based on the loaded schema, not simple tring manipuation
- ldb_msg.c: don't duplicate attributes when adding attributes to a list
- kludge_acl.c: return allowedAttributesEffective based on schema results
  and privilages

Andrew Bartlett
2007-10-10 14:53:27 -05:00
Andrew Bartlett
b96b7b623d r23557: Ensure that we don't reorder the objectClass list, if we don't have
any subclasses loaded yet, or none are applicable.

This fixes MMC so that it at least displays the Samba domain as a
domain, but there is still work to be done.

Andrew Bartlett
2007-10-10 14:53:26 -05:00
Andrew Tridgell
0c3442c68b r23364: add LDB_FLG_NOMMAP flag 2007-10-10 14:53:12 -05:00
Stefan Metzmacher
df6e3bec36 r23339: merge from SAMBA_3_0:
fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed
it via a SIGBUS...

I missed to remove the samba3 specifc code path to tdb_open_ex()
when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex()
dropped the compiler warning :-(

metze
2007-10-10 14:53:11 -05:00
Andrew Bartlett
01d54d13dc r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.

We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).

Andrew Bartlett
2007-10-10 14:53:00 -05:00
Stefan Metzmacher
4e32aafb9e r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too...

metze
2007-10-10 14:52:36 -05:00
James Peach
2d990cd374 r22952: Make sure we look at extra_cflags when building custom targets. 2007-10-10 14:52:31 -05:00
Stefan Metzmacher
f6740c8b7a r22789: fix loading of internal samba4 modules
metze
2007-10-10 14:52:17 -05:00