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

237 Commits

Author SHA1 Message Date
Volker Lendecke
bb35e794ec Replace sid_string_static by sid_string_dbg in DEBUGs 2007-12-15 22:09:36 +01:00
Michael Adam
1000c98eae Remove an incredible amount of whitespace.
Sorry - could not resist. Michael
2007-12-06 14:08:54 +01:00
Jeremy Allison
f9c8d62389 Make strhex_to_str clear on string limits. Remove pstring from web/*.c
Jeremy.
2007-12-03 17:17:05 -08:00
Volker Lendecke
1fab16ffb8 Remove some statics 2007-11-27 14:18:47 +01:00
Jeremy Allison
809f5ab4c5 More pstring removal....
Jeremy.
2007-11-20 18:55:36 -08:00
Jeremy Allison
98e154c312 This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
2007-10-24 14:16:54 -07:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Günther Deschner
1142f3df54 r24252: Dump guid of msExchMailboxGuid when returned.
Guenther
2007-10-10 12:29:21 -05:00
Volker Lendecke
461974d2cc r24166: Fix Coverity ID 391 2007-10-10 12:29:17 -05:00
Günther Deschner
1a5c8780ae r23951: Fix segfault.
Guenther
2007-10-10 12:28:48 -05:00
Stefan Metzmacher
2075c05b3d r23945: add infrastructure to select plain, sign or seal LDAP connection
metze
2007-10-10 12:28:48 -05:00
Günther Deschner
1a62c731c6 r23937: Use ads_config_path() when we need to know the configration context.
Guenther
2007-10-10 12:28:46 -05:00
Stefan Metzmacher
00909194a6 r23888: move elements belonging to the current ldap connection to a
substructure.

metze
2007-10-10 12:28:38 -05:00
Stefan Metzmacher
ba70737b70 r23886: add ads_disconnect() function
metze
2007-10-10 12:28:38 -05:00
Günther Deschner
684fcf39dc r23861: Fix return code in ads_find_samaccount().
Guenther
2007-10-10 12:28:35 -05:00
Günther Deschner
ad0a6d5703 r23837: Pass ADS_STRUCT and TALLOC_CTX down to ads_disp_sd.
Guenther
2007-10-10 12:28:32 -05:00
Günther Deschner
4d62f1191b r23836: Add ads_config_path() and ads_get_extended_right_name_by_guid().
Guenther
2007-10-10 12:28:32 -05:00
Günther Deschner
311bbbafa6 r23834: Allow to pass an ADS_STRUCT pointer down to the dump function callback in
libads.

Guenther
2007-10-10 12:28:32 -05:00
Günther Deschner
3effd1c346 r23833: Document ads_find_samaccount().
Guenther
2007-10-10 12:28:31 -05:00
Andrew Tridgell
b0132e94fc r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Günther Deschner
6fafa64bea r23772: Add ads_find_samaccount() helper function.
Guenther
2007-10-10 12:23:55 -05:00
Jeremy Allison
03763bc528 r23514: Remove unused function ads_get_dn_from_extended_dn().
Jeremy.
2007-10-10 12:23:24 -05:00
Michael Adam
a43775ab36 r22893: Use ldap_rename_s instead of deprecated ldap_rename2_s.
This fixes the build on solaris (host sun9).
And hopefully doesn't break any other builds... :-)
If it does, we need some configure magic.

Thanks to Björn Jacke <bj@sernet.de>.
2007-10-10 12:22:05 -05:00
Günther Deschner
e4e8f84060 r22800: Add GPO_SID_TOKEN and an LDAP function to get tokensids from the tokenGroup attribute.
Guenther
2007-10-10 12:21:59 -05:00
Günther Deschner
6e911c442b r22799: Fix the build.
Guenther
2007-10-10 12:21:59 -05:00
Günther Deschner
648df57e53 r22797: We are only interested in the DACL of the security descriptor, so search with
the SD_FLAGS control.

Guenther
2007-10-10 12:21:57 -05:00
Gerald Carter
3004cc6e59 r22728: Patch from Danilo Almeida <dalmeida@centeris.com>:
When asked to create a machine account in an OU as part
of "net ads join" and the account already exists in another
OU, simply move the machine object to the requested OU.
2007-10-10 12:21:51 -05:00
Jeremy Allison
8968808c3b r22589: Make TALLOC_ARRAY consistent across all uses.
Jeremy.
2007-10-10 12:19:49 -05:00
Günther Deschner
0475b8eea9 r22459: Adding ads_get_dn_from_extended_dn(), in preparation of making ranged LDAP
queries more generic. Michael, feel free to overwrite these and the following.

Guenther
2007-10-10 12:19:35 -05:00
Jeremy Allison
7c45bd3a47 r22112: Fix memleak pointed out by Steven Danneman <steven.danneman@isilon.com>.
Jeremy.
2007-10-10 12:19:14 -05:00
Jeremy Allison
cbe725f1b0 r21608: Fix a couple of memleaks in error code paths before
Coverity finds them :-)
Jeremy.
2007-10-10 12:18:16 -05:00
Simo Sorce
5b4838f62a r21606: Implement escaping function for ldap RDN values
Fix escaping of DN components and filters around the code
Add some notes to commandline help messages about how to pass DNs

revert jra's "concistency" commit to nsswitch/winbindd_ads.c, as it was
incorrect.
The 2 functions use DNs in different ways.

- lookup_usergroups_member() uses the DN in a search filter,
and must use the filter escaping function to escape it
Escaping filters that include escaped DNs ("\," becomes "\5c,") is the
correct way to do it (tested against W2k3).

- lookup_usergroups_memberof() instead uses the DN ultimately as a base dn.
Both functions do NOT need any DN escaping function as DNs can't be reliably
escaped when in a string form, intead each single RDN value must be escaped
separately.

DNs coming from other ldap calls (like ads_get_dn()), do not need escaping as
they come already escaped on the wire and passed as is by the ldap libraries

DN filtering has been tested.
For example now it is possible to do something like:
'net ads add user joe#5' as now the '#' character is correctly escaped when
building the DN, previously such a call failed with Invalid DN Syntax.

Simo.
2007-10-10 12:18:16 -05:00
Günther Deschner
7ad7847e5b r21352: Let ads_upn_suffixes() return a pointer to an array of suffixes.
Guenther
2007-10-10 12:17:57 -05:00
Günther Deschner
8462f323cf r21349: Fix memleak in ads_upn_suffixes().
Guenther
2007-10-10 12:17:57 -05:00
Günther Deschner
4e622572eb r21021: Fix memleak.
Guenther
2007-10-10 12:17:28 -05:00
Günther Deschner
6a13e878b5 r20874: We need to distinguish client sitenames per realm. We were overwriting
the stored client sitename with the sitename from each sucessfull CLDAP
connection.

Guenther
2007-10-10 12:17:16 -05:00
Jeremy Allison
97e248f89a r20857: Silence gives assent :-). Checking in the fix for
site support in a network where many DC's are down.
I heard via Volker there is still a bug w.r.t the
wrong site being chosen with trusted domains but
we'll have to layer that fix on top of this.
Gd - complain if this doesn't work for you.
Jeremy.
2007-10-10 12:17:14 -05:00
Gerald Carter
86e6ae6a9f r20487: Remove the unused dn2ad_canonical() call 2007-10-10 12:16:52 -05:00
Volker Lendecke
b7dc9b8169 r19687: Fix uninitialized variables found by Coverity (and gcc -O1... ;-))
Volker
2007-10-10 12:15:47 -05:00
Günther Deschner
ff004f7284 r19651: Fix interesting bug with the automatic site coverage in Active Directory:
When having DC-less sites, AD assigns DCs from other sites to that site
that does not have it's own DC. The most reliable way for us to identify
the nearest DC - in that and all other cases - is the closest_dc flag in
the CLDAP reply.

Guenther
2007-10-10 12:15:44 -05:00
Günther Deschner
4ec896cdbe r19646: Fix memleak in the default_ou_string handling. Thanks to David Hu
<david.hu@hp.com>. Fixes #4212.

Guenther
2007-10-10 12:15:43 -05:00
Günther Deschner
4bad52c5b3 r19528: Fix container handling for "net ads user" and "net ads group" functions
along with some memleaks.

Guenther
2007-10-10 12:15:41 -05:00
Günther Deschner
61ebedc82e r19526: Fix minor memleak.
Guenther
2007-10-10 12:15:40 -05:00
Günther Deschner
62928734b8 r19263: Be more accurate in telling what the sitename problem is in this DEBUG
statement.

Guenther
2007-10-10 12:15:26 -05:00
Günther Deschner
ecb632a153 r18923: Fix more memleaks.
Guenther
2007-10-10 12:14:47 -05:00
Günther Deschner
e7cae9bbae r18902: Also dump mS-DS-CreatorSID.
Guenther
2007-10-10 12:14:44 -05:00
Jeremy Allison
e568271af2 r18663: Fix one more uuid -> GUID.
Jeremy.
2007-10-10 12:00:44 -05:00
Jeremy Allison
03e1078b45 r18552: Ensure the sitename matches before we SAF store a DC in ADS mode.
Jeremy.
2007-10-10 11:51:49 -05:00
Jeremy Allison
f8984fa8b7 r18480: Doh ! Double-free of hostnameDN.
Jeremy.
2007-10-10 11:51:43 -05:00