Jelmer Vernooij
6ac86f8be7
r26540: Revert my previous commit after concerns raised by Andrew.
2007-12-21 05:52:06 +01:00
Jelmer Vernooij
e53e79eebe
r26539: Remove unnecessary statics.
2007-12-21 05:52:05 +01:00
Jelmer Vernooij
85eeecf997
r26483: Merge ldb module dependency fixes, fix auth python module.
2007-12-21 05:50:41 +01:00
Jelmer Vernooij
801c8c766c
r26397: Fix circular dependency in samba-socket.
2007-12-21 05:49:26 +01:00
Jelmer Vernooij
78bb444b4b
r26385: Integrate gensec-socket into gensec.
2007-12-21 05:49:19 +01:00
Jelmer Vernooij
459e1466a4
r26376: Add context for libcli_resolve.
2007-12-21 05:49:12 +01:00
Jelmer Vernooij
5d589a0d94
r26355: Eliminate global_loadparm in more places.
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
17637e4490
r26353: Remove use of global_loadparm.
2007-12-21 05:48:57 +01:00
Jelmer Vernooij
b03e5d0011
r26335: Specify name_resolve_order to socket code.
2007-12-21 05:48:46 +01:00
Jelmer Vernooij
95a6ef7fc8
r26319: Split encoding functions out of libcli_ldap.
2007-12-21 05:48:33 +01:00
Jelmer Vernooij
38fa08310c
r26277: Move loadparm context higher up the stack.
2007-12-21 05:48:03 +01:00
Jelmer Vernooij
99113075c4
r26266: Remove more global_loadparm uses.
2007-12-21 05:47:42 +01:00
Jelmer Vernooij
b9e3a4862e
r26260: Store loadparm context in gensec context.
2007-12-21 05:47:34 +01:00
Jelmer Vernooij
a33a553054
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
2007-12-21 05:47:20 +01:00
Andrew Bartlett
833dfc2f2a
r26192: Handle, test and implement the style of extended_dn requiest that MMC uses.
...
It appears that the control value is optional, implying type 0 responses.
Failing to parse this was causing LDAP disconnects with 'unavailable
critical extension'.
Andrew Bartlett
2007-12-21 05:46:44 +01:00
Jelmer Vernooij
abf2600a04
r26136: Attempt to fix dependencies for auth.
2007-12-21 05:46:18 +01:00
Stefan Metzmacher
6223c7fddc
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
2007-12-21 05:45:02 +01:00
Andrew Tridgell
d19686cf8a
r25692: fixed another example where the free of fde and the free of the socket
...
causes the fd to be closed before epoll is told
2007-12-21 05:43:16 +01:00
Jelmer Vernooij
566aa14139
r25554: Convert last instances of BOOL, True and False to the standard types.
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
37425495f3
r25301: Merge my includes.h cleanups.
2007-10-10 15:07:09 -05:00
Jelmer Vernooij
08bb1ef643
r25000: Fix some more C++ compatibility warnings.
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
1ce32673d9
r24712: No longer expose the 'BOOL' data type in any interfaces.
2007-10-10 15:02:54 -05:00
Andrew Bartlett
f6566480b7
r24248: Attempt to fix bug #4830 by <mwallnoefer@yahoo.de>. If there is no
...
payload to the control, we still need to inialise *value, as otherwise
we read uninitialised data later.
Andrew Bartlett
2007-10-10 15:01:30 -05:00
Andrew Bartlett
dc27a7e41c
r23810: Make things static, and remove unsued code.
...
This includes some of the original ildap ldap client API. ldb
provides a much easier abstraction on this to use, and doesn't use
these functions.
Andrew Bartlett
2007-10-10 14:59:21 -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 Tridgell
26cf849408
r23036: error checking on asn1_init() failure
2007-10-10 14:52:43 -05:00
Andrew Tridgell
3db49c2ec9
r23030: finally fixed up our asn1 code to use better memory allocation. This
...
should allow us to fix some long standing memory leaks.
2007-10-10 14:52:42 -05:00
Andrew Bartlett
7b086eebd6
r22884: Be consistant with the case of these constants.
...
Andrew Bartlett
2007-10-10 14:52:28 -05:00
Stefan Metzmacher
d19195bfa5
r22405: fix memory leak in error path
...
metze
2007-10-10 14:51:15 -05:00
Andrew Bartlett
eef710668f
r21806: I've been working over the last week to fix up the LDAP backend for
...
Samba4. This only broke on global catalog queries, which turned out to
be due to changes in the partitions module that metze needed for his
DRSUAPI work.
I've reworked partitions.c to always include the 'problematic' control,
and therefore demonstrated that this is the issue. This ensures
consistency, and should help with finding issues like this in future.
As this control (DSDB_CONTROL_CURRENT_PARTITION_OID) is not intended to
be linearised, I've added logic to allow it to be skipped when creating
network packets.
I've likewise make our LDAP server skip unknown controls, when marked
'not critical' on it's input, rather than just dropping the entire
request. I need some help to generate a correct error packet when it is
marked critical.
Further work could perhaps be to have the ldap_encode routine return a
textual description of what failed to encode, as that would have saved
me a lot of time...
Andrew Bartlett
2007-10-10 14:49:29 -05:00
Andrew Bartlett
7f115579d2
r21761: - Give more detail on LDAP client library failures (make it clear
...
where the error is from)
- Make default error string more consistant
Andrew Bartlett
2007-10-10 14:49:24 -05:00
Stefan Metzmacher
d40465470f
r21511: this seems to be the nicer fix for the problem with
...
the windows 2000 LDAP client
metze
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
f17da75754
r21501: ugly but the windows 2000 mmc deturns decoding error without this
...
metze
2007-10-10 14:48:45 -05:00
Stefan Metzmacher
b69471866c
r20141: use the gensec_features of the cli_credentials for ildap connections,
...
instead of hardcoded GENSEC_FEATURE_SEAL.
That means plain LDAP is now the default.
metze
2007-10-10 14:29:13 -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
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
Andrew Bartlett
441a4f6262
r18989: Fixes found by these two LDAP testsuites:
...
- http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
- http://gleg.net/protover_ldap_sample.shtml
Also fixes found by a subsequent audit of the code for similar issues.
2007-10-10 14:20:26 -05:00
Andrew Tridgell
c440e0eed9
r18309: FreeBSD 6.1 has a symbol ldap_new_connection() in the system ldap
...
library. Even though we don't like to that library, it gets loaded via
nss-ldap, which means nss-ldap calls into the samba ldap lib with the
wrong parameters, and crashes.
We really need to use a completely different namespace in libcli/ldap/
2007-10-10 14:18:06 -05:00
Andrew Tridgell
f4b4bd945f
r18256: use the right status variable
2007-10-10 14:17:57 -05:00
Andrew Bartlett
556a21faee
r18025: Don't try to set a target host if there isn't one (such as with ldapi://).
...
Andrew Bartlett
2007-10-10 14:17:04 -05:00
Andrew Bartlett
1920cb8b39
r18024: The %c sscanf format I'm using doesn't null terminate.
...
Andrew Bartlett
2007-10-10 14:17:04 -05:00
Andrew Bartlett
da66b53e6a
r18021: Add ldapi support to our LDAP client. To be used for testing an
...
OpenLDAP backend.
Andrew Bartlett
2007-10-10 14:17:03 -05:00
Jelmer Vernooij
f7afa1cb77
r17930: Merge noinclude branch:
...
* Move dlinklist.h, smb.h to subsystem-specific directories
* Clean up ads.h and move what is left of it to dsdb/
(only place where it's used)
2007-10-10 14:16:54 -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
Stefan Metzmacher
f2196bf9b6
r17230: don't overwrite the error with NT_STATUS_NO_MEMORY
...
metze
2007-10-10 14:10:22 -05:00
Andrew Bartlett
003e2ab93c
r17222: Change the function prototypes for the GENSEc and TLS socket creation
...
routines to return an NTSTATUS. This should help track down errors.
Use a bit of talloc_steal and talloc_unlink to get the real socket to
be a child of the GENSEC or TLS socket.
Always return a new socket, even for the 'pass-though' case.
Andrew Bartlett
2007-10-10 14:10:20 -05:00