summaryrefslogtreecommitdiffstats
path: root/source3/libads
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Pass NULL to gencache_get when we are not interested in the timeout ↵Volker Lendecke2008-07-111-1/+2
| | | | | | | value" This reverts commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0. (This used to be commit 114ca8577568cdb5a81d8734f1d1d096f1b36c36)
* Pass NULL to gencache_get when we are not interested in the timeout valueVolker Lendecke2008-07-031-2/+1
| | | | (This used to be commit 16062dfc3dcc8f1ca0024a3ae21effb889c7ffc0)
* kerberos: allow to keep entries with old kvno's while creating keytab.Günther Deschner2008-06-301-2/+4
| | | | | Guenther (This used to be commit 6194244bd9fcc1fb736f3d91433f107270cac1c9)
* kerberos: rename smb_krb5_kt_add_entry to smb_krb5_kt_add_entry_ext.Günther Deschner2008-06-301-25/+39
| | | | | Guenther (This used to be commit 48600a0019d70d22574cf08e8fe19d44cc332a0f)
* Return NULL in sitename_fetch() if gencache_init() fails. Not falseGerald W. Carter2008-06-281-1/+1
| | | | (This used to be commit 8704c2ab37479236788c0a99465d73643d3d555a)
* libads: Add API call to connect to a global catalog server.Gerald W. Carter2008-06-271-5/+140
| | | | | | | Extends ads_connect() to a new call ads_connect_gc() which connects on port 3268 rather than port 389. Also makes ads_try_connect() static and only used internally to ldap.c (This used to be commit f4c37dbe2c986fb7bfe510cdff3b4a9fbc06d079)
* libads: add ads_connect_user_creds() that won't overwrite given user creds.Günther Deschner2008-06-241-0/+12
| | | | | Guenther (This used to be commit 026018c9f1ed0680b3ca5b26dd6b8dc466e27e0d)
* libads: add ADS_AUTH_USER_CREDS to avoid magic overwriting of usernames.Günther Deschner2008-06-241-0/+6
| | | | | Guenther (This used to be commit b5aaf5aa0f280f69e05b613271c96473a79b812e)
* kerberos: make smb_krb5_kt_add_entry public, allow to pass keys without ↵Günther Deschner2008-06-242-7/+11
| | | | | | | salting them. Guenther (This used to be commit 7c4da23be1105dc224033b21eb486e7fcdc7d9c5)
* libads: add ads_get_machine_kvno() to make ads_get_kvno() a bit more generic.Günther Deschner2008-06-172-12/+34
| | | | | Guenther (This used to be commit cb7ace209c2051ae02647188715fa6ee324c2bf6)
* libads: fix logic error in ads_get_kvno().Günther Deschner2008-06-171-1/+1
| | | | | Guenther (This used to be commit 132b038581a1a91b4e70c7c44f97f52866609812)
* Revert "Fix a memleak in ads_find_dc() in case get_sorted_dc_list() fails"Volker Lendecke2008-06-171-1/+0
| | | | | This reverts commit df8d089bc63c2a52cbdf3504cded8df620a59902. (This used to be commit 342f8858200ed7c446516c270e1b4284d92010d8)
* mailslot: always pull a command 25 type reply.Günther Deschner2008-06-051-0/+1
| | | | | Guenther (This used to be commit 1ce726b951621cb4b34069c31d1318fc04ad2389)
* Fix a memleak in ads_find_dc() in case get_sorted_dc_list() failsVolker Lendecke2008-06-051-0/+1
| | | | | | This is really not a proper place to fix this, but as get_gc_list() and friends are about to be replaced anyway, just work around the broken existing API (This used to be commit df8d089bc63c2a52cbdf3504cded8df620a59902)
* Tiny memory leakMarc VanHeyningen2008-05-291-0/+2
| | | | (This used to be commit e7f76a0c65085dd1e7b50ea3537e11922e7d9ecd)
* Memory leak fixes from Chere Zhou <czhou@isilon.com>.Jeremy Allison2008-05-271-0/+4
| | | | | Jeremy. (This used to be commit 201bcc8ed291b51be6f4508c6aa1cb17ce6dcbe3)
* Cleanup size_t return values in callers of convert_string_allocateTim Prouty2008-05-202-25/+57
| | | | | | This patch is the second iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
* Fix some comments to match get_kdc_ip_string()'s behaviourroot2008-05-191-1/+7
| | | | (This used to be commit 30956c784f58870ad552a3869d80f99872c31375)
* libads/cldap: store client sitename also keyed by dns domain name.Günther Deschner2008-05-151-0/+1
| | | | | Guenther (This used to be commit 0388b2f0cc4d14b005c5b42f2c17ddcbc8bef12a)
* Fix Bug #5465 (joining with createcomputer=ou1/ou2/ou3).Günther Deschner2008-05-141-5/+5
| | | | | Guenther (This used to be commit f3251ba03a69c2fd0335861177159a32b2bc9477)
* dsgetdcname: make use of nbt_cldap_netlogon_15.Günther Deschner2008-05-091-1/+1
| | | | | Guenther (This used to be commit 5b0eda98f3d127399770f7a037ad3277dbe23393)
* cldap: move out cldap object to fix the build.Günther Deschner2008-05-091-0/+84
| | | | | Guenther (This used to be commit 56be9c98d24e64bf855439df21766d30f448f407)
* cldap: let ads_cldap_netlogon() return all possible cldap replies.Günther Deschner2008-05-092-15/+56
| | | | | Guenther (This used to be commit 6f9d5e1cc94bc90685b54c04622b8f3357bd2f69)
* mailslot/cldap: use nt_version bits in queries.Günther Deschner2008-05-061-1/+2
| | | | | Guenther (This used to be commit b261f063125f8454d8f4e8f6b6f8aa5bc393ea34)
* BUG 5107: Fix handling of large DNS replies on AIX and Solaris.Gerald W. Carter2008-04-301-6/+32
| | | | | | | | | On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8) truncated replies never give back a resp_len > buflen which ends up causing DNS resolve failures on large tcp DNS replies. Also add more debug lines about processing the DNS reply. (This used to be commit 5ed9b92097460cd8180db806a08213e97cfb8daa)
* Fix bug 5419: memory leak in ads_do_search_all_args() when enumerating 1000s ↵Steven Danneman2008-04-261-2/+24
| | | | | | | | | | | | | | | | | | | | of entries The ads_do_search_all_args() function attempts to string together several LDAPMessage structures, returned across several paged ldap requests, into a single LDAPMessage structure. It does this by pulling entries off the second LDAPMessage structure and appending them to the first via the OpenLDAP specific ldap_add_result_entry() call. The problem with this approach is it skips non-entry messages such as the result, and controls. These messages are leaked. The short term solution as suggested by Volker is to replace the ads_*_entry() calls with ads_*_message() calls so we don't leak any messages. This fixes the leak but doesn't remove the dependence on the OpenLDAP specific implementation of ldap_add_result_entry(). (This used to be commit f1a5405409c396df394611e2a234522572d2860a)
* Move user/domain from rpc_pipe_client to cli_pipe_auth_dataVolker Lendecke2008-04-251-1/+2
| | | | (This used to be commit 42de50d2cd43e760d776694f7b5f003ba51d7f84)
* cldap: avoid duplicate definitions so remove ads_cldap.h.Günther Deschner2008-04-211-4/+4
| | | | | Guenther (This used to be commit 538eefe22ad69540b9f73ffaa613d6be045de199)
* cldap: add talloc context to ads_cldap_netlogon().Günther Deschner2008-04-212-14/+30
| | | | | Guenther (This used to be commit 4cee7b1bd5cd97c414b73d6f39238958480cdcf3)
* libads: Use libnbt for CLDAP reply parsing.Günther Deschner2008-04-212-105/+24
| | | | | Guenther (This used to be commit 751f3064a508341c0ebae45e8de9f5311d915d70)
* Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_nameVolker Lendecke2008-04-201-1/+1
| | | | | Also make sure that rpc_pipe_client->user_name is always talloced. (This used to be commit 3f6c5b99664a75a6f490ee3b6980b89cacf7f579)
* Fix two "ignoring asprintf result" warningsVolker Lendecke2008-04-201-3/+2
| | | | (This used to be commit 1d261e78b38e8080ca7122037d33c8ef913a4558)
* Add "desthost" to rpc_pipe_clientVolker Lendecke2008-04-201-1/+1
| | | | | This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
* Fix typo.Karolin Seeger2008-04-101-1/+1
| | | | | Karolin (This used to be commit 42fbbeb1caf93e4e17bb62f31ff90a853bd169fb)
* Fix typos.Karolin Seeger2008-04-091-1/+1
| | | | | Karolin (This used to be commit 6cee34703503fbf3629057345fe221b866560648)
* Add ads_check_ou_dn().Günther Deschner2008-03-281-0/+47
| | | | | Guenther (This used to be commit 380e9d26db5341d10807ccbfb413d0f53d3ffc71)
* Fix Coverity ID 488Volker Lendecke2008-03-231-0/+2
| | | | | "status" was used uninitialized on success -- metze, please check (This used to be commit a0859529c853ffb756b1deee946923b6fff6136e)
* Fix Coverity ID 487Volker Lendecke2008-03-231-0/+1
| | | | (This used to be commit 22cee9c1afbc33b4920b72bc81569d79642172af)
* Coverity fixesMarc VanHeyningen2008-03-173-6/+22
| | | | (This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
* Use a separate tdb for mutexesVolker Lendecke2008-03-101-9/+6
| | | | | | | | Another preparation to convert secrets.c to dbwrap: The dbwrap API does not provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC mutex is needed per-node anyway, so it is perfectly fine to use a local mutex only. (This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
* Fix Coverity ID 551Volker Lendecke2008-03-081-0/+2
| | | | | | | Correctly return if we can't create the temporary krb5.conf Jeremy, please check! (This used to be commit c2401811aa3d02a9e27969687b9ea035407000c3)
* Add my copyright.Günther Deschner2008-02-271-1/+1
| | | | | Guenther (This used to be commit d078a8757182d84dfd3307a2e1b751cf173aaa97)
* Fix some warningsVolker Lendecke2008-02-251-7/+15
| | | | | warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result (This used to be commit ad37b7b0aee265a3e4d8b7552610f4b9a105434d)
* Fix some more callers of PAC_DATA.Günther Deschner2008-02-171-1/+1
| | | | | Guenther (This used to be commit ea609d1b0e82d7c366dd73013228003136264b64)
* Some more cleanup in authdata.c.Günther Deschner2008-02-171-621/+7
| | | | | Guenther (This used to be commit 5483f5fb44bb2138a1348c05845a2b8f3588697a)
* Align our krb5 PAC decoding routines to the samba4 ones.Günther Deschner2008-02-171-234/+224
| | | | | | | (while keeping all the trans krb5 lib support) Guenther (This used to be commit c06e507737bb07ff995876e49341de3f60b0da35)
* str_list_free is not needed anymoreVolker Lendecke2008-02-041-2/+2
| | | | (This used to be commit feddc1447d585fd108d22a36bccc576fa81197ef)
* Always pass a TALLOC_CTX to str_list_make and str_list_copyVolker Lendecke2008-02-041-2/+2
| | | | (This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)
* When running with debug level > 10, dump ads_struct in ads_connect().Günther Deschner2008-01-311-9/+33
| | | | | Guenther (This used to be commit 2dd7c64fa8845fe502789068b877f5eaf060afc7)
* Fix the build. Avoid unrequired ndr_print_ads_struct dependencies.Günther Deschner2008-01-291-0/+118
| | | | | Guenther (This used to be commit c832882e49ff0dac6a717819dda24ab814253b2f)