1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-18 19:17:08 +03:00

23 Commits

Author SHA1 Message Date
Günther Deschner
5b0eda98f3 dsgetdcname: make use of nbt_cldap_netlogon_15.
Guenther
2008-05-09 17:41:50 +02:00
Günther Deschner
56be9c98d2 cldap: move out cldap object to fix the build.
Guenther
2008-05-09 14:59:19 +02:00
Günther Deschner
6f9d5e1cc9 cldap: let ads_cldap_netlogon() return all possible cldap replies.
Guenther
2008-05-09 14:59:18 +02:00
Günther Deschner
b261f06312 mailslot/cldap: use nt_version bits in queries.
Guenther
2008-05-06 09:41:41 +02:00
Günther Deschner
4cee7b1bd5 cldap: add talloc context to ads_cldap_netlogon().
Guenther
2008-04-21 20:21:40 +02:00
Günther Deschner
751f3064a5 libads: Use libnbt for CLDAP reply parsing.
Guenther
2008-04-21 20:21:39 +02: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
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
Volker Lendecke
3d3d61687e r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; and
replace all data_blob(NULL, 0) calls.
2007-10-10 12:22:01 -05:00
Jeremy Allison
02d08ca0be r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy.
2007-10-10 12:18:28 -05:00
Günther Deschner
af3779a516 r18175: Forgot to call asn1_free() in previous commit.
Guenther
2007-10-10 11:43:30 -05:00
Günther Deschner
1fe4724f57 r18174: Do not return "success" when we failed to write in the CLDAP code.
Guenther
2007-10-10 11:43:30 -05:00
Günther Deschner
714ea3ceab r18162: Close socket when the CLDAP request has failed.
Guenther
2007-10-10 11:43:29 -05:00
Jeremy Allison
10b32cb6de r18010: Ensure we don't timeout twice to the same
server in winbindd when it's down and listed
in the -ve connection cache. Fix memory leak,
reduce timeout for cldap calls - minimum 3 secs.
Jeremy.
2007-10-10 11:39:48 -05:00
Jeremy Allison
d500e1f96d r17943: The horror, the horror. Add KDC site support by
writing out a custom krb5.conf file containing
the KDC I need. This may suck.... Needs some
testing :-).
Jeremy.
2007-10-10 11:39:01 -05:00
Jeremy Allison
ab3f0c5b1e r17928: Implement the basic store for CLDAP sitename
support when looking up DC's. On every CLDAP
call store the returned client sitename (if
present, delete store if not) in gencache with
infinate timeout. On AD DNS DC lookup, try looking
for sitename DC's first, only try generic if
sitename DNS lookup failed.
I still haven't figured out yet how to ensure
we fetch the sitename with a CLDAP query before
doing the generic DC list lookup. This code is
difficult to understand. I'll do some experiments
and backtraces tomorrow to try and work out where
to force a CLDAP site query first.
Jeremy.
2007-10-10 11:38:59 -05:00
Volker Lendecke
b87c495221 r17089: Fix a possible null dereference and some memleaks.
Jerry, please check.

Thanks,

Volker
2007-10-10 11:38:11 -05:00
Günther Deschner
863aeb621a r16861: Fixing crash bug when passing no domain/realm name to the CLDAP request.
Guenther
2007-10-10 11:19:11 -05:00
Günther Deschner
479dec6845 r16452: Fix memleak in the CLDAP processing (found by valgrind).
Guenther
2007-10-10 11:18:54 -05:00
Günther Deschner
8dd925c5fb r15559: Smaller fixes for the new cldap code:
* replace printf to stderr with DEBUG statements as they get printed in
  daemons
* "net ads lookup" return code

Guenther
2007-10-10 11:17:01 -05:00
Günther Deschner
821bbb4566 r15558: Do not wait endless for a CLDAP reply when the LDAP server is
unavailable; use "ldap timeout" handling.

Jerry, please check.

Guenther
2007-10-10 11:16:59 -05:00
Gerald Carter
4c4ea7b20f r15543: New implementation of 'net ads join' to be more like Windows XP.
The motivating factor is to not require more privileges for
the user account than Windows does when joining a domain.

The points of interest are

* net_ads_join() uses same rpc mechanisms as net_rpc_join()
* Enable CLDAP queries for filling in the majority of the
  ADS_STRUCT->config information
* Remove ldap_initialized() from sam/idmap_ad.c and
  libads/ldap.c
* Remove some unnecessary fields from ADS_STRUCT
* Manually set the dNSHostName and servicePrincipalName attribute
  using the machine account after the join

Thanks to Guenther and Simo for the review.

Still to do:

* Fix the userAccountControl for DES only systems
* Set the userPrincipalName in order to support things like
  'kinit -k' (although we might be able to just use the sAMAccountName
  instead)
* Re-add support for pre-creating the machine account in
  a specific OU
2007-10-10 11:16:57 -05:00