summaryrefslogtreecommitdiffstats
path: root/source3/libads
Commit message (Collapse)AuthorAgeFilesLines
...
| * this fixes the ads dump codeAndrew Tridgell2002-07-111-3/+3
| | | | | | | | | | a char** isn't quite the same thing as a struct berval** :) (This used to be commit a92834ea9460bc49be99d6d5b0d41a817e6f0824)
| * make sure we disable referrals in all ldap searches - they are badlyAndrew Tridgell2002-07-091-0/+3
| | | | | | | | | | broken (This used to be commit 022073d140bae960613127a6d9422e443a8098c6)
| * Fix length in snprintf invocation to account for "dn:" in sasl gssapi bind.Jim McDonough2002-07-081-2/+1
| | | | | | | | | | | | | | Also remove unused line which incremented pointer by the wrong length anyway. Provided by Anthony Liguori (aliguori@us.ibm.com). (This used to be commit 47b7a3e0f3d101a3bcffd33db6ef4c0672b57ae0)
| * Kill off const warnings - add a pile of const to various places.Andrew Bartlett2002-07-081-1/+1
| | | | | | | | (This used to be commit 1de04ec4735c19ec21cdef6e679cea17c734c5f6)
| * used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-15/+3
| | | | | | | | | | code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
| * ads_mod_ber should be static, not publicAndrew Tridgell2002-07-011-2/+2
| | | | | | | | | | | | this fixes the huge number of struct berval warnings on non-ads compiles (This used to be commit e7f588d8156856109623b5f5a3841c5d096b1185)
| * Const cleanup...should only be 2 warnings left from calling lib/util_str.cJim McDonough2002-06-281-117/+158
| | | | | | | | | | str_list_copy(). Perhaps its proto should be fixed. (This used to be commit b81bc2b34b620c24a148435d9913bd1a1528c983)
| * Reduce compiler warnings.Jim McDonough2002-06-261-28/+36
| | | | | | | | (This used to be commit b361089360068b91e9f4d221abdc3c8351596a7f)
| * Break up samba's object dependencies, and its prototype includes.Andrew Bartlett2002-06-252-123/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now smbclient, net, and swat use their own proto files - now the global proto.h The change to libads/kerberos.c was to break up the dependency on secrets.c - we want to be able to write an ADS client that doesn't need local secrets. I have other breakups in the works - I will remove the dependency of rpc_parse on passdb (and therefore secrets.c) shortly. (NOTE: This patch does *not* break up includes.h, or other such forbidden actions). Andrew Bartlett (This used to be commit edb41dad2df0ae3db364dbc3896cc75956262edf)
| * Support utf8 on the wire for ads ldap. DN's are converted, as well as strings,Jim McDonough2002-06-243-339/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | though it is up to the calling function to decide whether values are strings or not. Attributes are not converted at this point, though support for it would be simple. I have tested it with users and groups using non-ascii chars, and if the check for alphanumeric user/domain names is removed form sesssetup.c, even a user with accented chars can connect, or even login (via winbind). I have also simplified the interfaces to ads_mod_*, though we will probably want to expand this by a few functions in the near future. We just had too many ways to do the same thing... (This used to be commit f924cb53580bc081ff34e45abba57629018c68d6)
| * fixed a spelling mistakeAndrew Tridgell2002-06-031-1/+1
| | | | | | | | (This used to be commit 5a04ea1f0c41965bc735f38f4892dc37571734d6)
| * This is meant to be accessed via the helper fn, not directly.Andrew Bartlett2002-05-171-1/+1
| | | | | | | | (This used to be commit b84882a628b3f2f0890322f25694c1932aa3e5ec)
| * Add ads group account add function.Jim McDonough2002-05-091-0/+33
| | | | | | | | (This used to be commit 180311a48cfa808ea9edc9f32558554b243b10eb)
| * fixed trust relationships in ADS winbindd after breaking them with my BDC ↵Andrew Tridgell2002-04-192-5/+12
| | | | | | | | | | | | changes ... (This used to be commit 8096032663690eafb6bb8b4f405d6231389d4f80)
| * fixed the fallback to a BDC for ADS connectionsAndrew Tridgell2002-04-182-1/+42
| | | | | | | | (This used to be commit 3e58a1ee83ea0b4347ce24e566445cc6cb67bb3a)
| * by using a prompter function we can avoid the bug in the MIT kerberosAndrew Tridgell2002-04-151-7/+25
|/ | | | | libraries with handling blank passwords. (This used to be commit 59d755ffb57c322a104ff8f52819956cafff1bac)
* A few more updates:Jim McDonough2002-04-101-132/+348
| | | | | | | - Add doxygen comments - remove server sort control (ms implementation was not reliable) - rename ads_do_search_all2() to ads_do_search_all_fn() (This used to be commit 7aa5fa617221019de0f4565d07842df72673e154)
* Several updates to get server side sorting going:Jim McDonough2002-04-051-26/+78
| | | | | | | | | | | | | | | | - Added sort control to ads_do_paged_search. It allows a char * to be passed as the sort key. If NULL, no sort is done. - fixed a bug in the processing of controls (loop wasn't incremented properly) - Added ads_do_search_all2, which funs a function that is passed in against each entry. No ldapmessage structures are returned. Allows results to be processed as the come in on each page. I'd like ads_do_search_all2 to replace ads_do_search_all, but there's some work to be done in winbindd_ads.c first. Also, perhaps now we can do async ldap searches? Allow us to process a page while the server retrieves the next one? (This used to be commit 95bec4c8bae0e29f816ec0751bf66404e1f2098e)
* Try harder next time to not duplicate function...take ads_err2string backJim McDonough2002-04-041-15/+0
| | | | | out since it's already in ads_errstr() in ads_status.c (This used to be commit 0475126ffb69f0485fd31511cb13d98df74a8d5b)
* Contains functions to manage/view AD user accounts via ldap. Initially has fnsJim McDonough2002-04-041-0/+80
| | | | | to find and add a user. (This used to be commit 773303a284825af89d70ea633004fc30225e7a85)
* Add ads_err2string() function for generating error strings from an ADS_STATUS.Jim McDonough2002-04-041-0/+15
| | | | | I've got the cases besides gssapi...anyone know how to get those? (This used to be commit c937e1352207ad90e8257ad6c9f8b7c9cf92030d)
* Added ads_process_results(), which takes a function that is called for eachJim McDonough2002-03-291-20/+73
| | | | | | | | | entry returned from a search, and applies it to the results. Re-structured ads_dump to use this, plus changed the ber_free in ads_dump from (b,1) to (b,0), in accordance with openldap manpages. Also allows proper free of result using ldap_msgfree afterwards, so you can do something with the results after an ads_dump. (This used to be commit f01f02fc569b4f5101a37d3b493f2fe2d2b2677a)
* Whoops, left the paged control not critical in the paged search...kind ofJim McDonough2002-03-271-1/+1
| | | | | defeats the purpose. (This used to be commit 71806c49b366faf2466eee7352c71fcdfefd8cc1)
* Add server control to prevent referrals in paged searches. This keepsJim McDonough2002-03-271-6/+18
| | | | | | | the scope limited to the domain at hand, and also keeps the openldap libs happy, since they don't currently chase referrals and return server controls properly at the same time. (This used to be commit 2bebc8a391bd80bd0e5adbedb3757fb4279ec414)
* Stomped on some header file version numbers that have crept back in.Tim Potter2002-03-221-2/+1
| | | | (This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
* added a ads_do_search_all() call, which is a more convenient interfaceAndrew Tridgell2002-03-191-0/+42
| | | | | | to paged searches. This makes updating winbindd to used paged searches trivial. (This used to be commit 514c11b4e3fcc765a8087405333bd351c05c9e36)
* fixed paged controls on my box. The problem seems to be incorrectAndrew Tridgell2002-03-191-4/+21
| | | | | | referrals parsing in the openldap libs. By disabling referrals we get valid controls back and the cookies work. (This used to be commit 8bf487ddff240150d7a92aaa0f978dd30062c331)
* This adds the Paged Result Control to ads searching. The new function, ↵Jim McDonough2002-03-141-0/+79
| | | | | | ads_do_paged_search, is the same as ads_do_search, but it also contains a count of records returned in this page, and a cookie for resuming, to be passed back. The cookie must start off NULL, and when it returns as NULL, the search is done. (This used to be commit 9afba67f9a56699e34735e1e425f97b2464f2402)
* detect SIZELIMIT_EXCEEDED in ldap queries and truncateAndrew Tridgell2002-03-131-0/+4
| | | | | | | the problem is, how the heck do we properly handle these? Jerry? It seems that the Win2000 ADS server only returns a max of 1000 records! (This used to be commit 93389647203395da0e894c2e57348081e755884a)
* put in the ADS DNS hack, but commented outAndrew Tridgell2002-03-111-0/+11
| | | | (This used to be commit 3396a671c59e6afe70a22ce64e4a9381b1d6fef8)
* forgotten file, oopsAndrew Tridgell2002-03-101-0/+175
| | | | (This used to be commit 98196e79b733e029341578b382bdfabf3f9a0bdc)
* yipee! Finally put in the patch from Alexey KotovichAndrew Tridgell2002-03-101-8/+121
| | | | | | | | | <a.kotovich@sam-solutions.net> that adds the security decsriptor code for ADS workstation accounts thanks for your patience Cat, and thanks to Andrew Bartlett for extensive reviews and suggestions about this code. (This used to be commit 6891393b5db868246fe52ff62b3dc6aa5ca6f726)
* fix for IRIX compile errorHerb Lewis2002-03-041-3/+4
| | | | (This used to be commit 2d620909f9def17dacf2af997a32d596f4dbd827)
* Fix LDAP modification operation. Cut and paste error: was LDAP_MOD_ADD, ↵Jim McDonough2002-02-131-1/+1
| | | | | | should be LDAP_MOD_REPLACE. Caught by Alexey Kotovich. (This used to be commit be48a05ed95f0f4ed02ffb996cb1ecc10811d9a0)
* talloc'ify ads modify functions.Jim McDonough2002-02-121-35/+51
| | | | (This used to be commit e097666499564ffe28836876a7a191149c14f199)
* talloc'ify ads modify functions. Also add more complete berval support.Jim McDonough2002-02-121-122/+119
| | | | (This used to be commit 1f186c60ad957c0e8157a6fd903857121c65a2e0)
* Update for new ads modlist structure passingJim McDonough2002-02-111-5/+14
| | | | (This used to be commit 6169b668fe955f298c7323c5d64f6c7b303aaac0)
* Add ability to extend ads modification list on the fly. Also add some ↵Jim McDonough2002-02-111-23/+39
| | | | | | malloc checks and return ADS_ERROR(LDAP_NO_MEMORY) if they fail. (This used to be commit 81d76f05d8b886a86eb421d1bd8737ec7d05cbde)
* when a trusted domain is down an ADS server will return a success on aAndrew Tridgell2002-02-071-2/+3
| | | | | | get trusted domains query but leave the domain SID blank - we need to fail the add of the trusted domain in winbindd in that case (This used to be commit 24c7e7a3849df3a3378f7e7f20099de048f0b7bd)
* Fix ldapmod list overrun check. Also better document and format ldap ↵Jim McDonough2002-02-061-16/+13
| | | | | | control for permissive modify. (This used to be commit 01e7f7c3d9006883b71e43d917d32e325cff7a15)
* Update for function name changes, plus do some of the optional attributes on ↵Jim McDonough2002-02-021-6/+17
| | | | | | printer modify, now that the ldap control is working. (This used to be commit 76afc886a89e8c0d5a169435dde42b00db522060)
* merge in some changes from Alexey Kotovich. Return ADS_STATUS instead of ↵Jim McDonough2002-02-021-33/+88
| | | | | | BOOLs. Add support for bervals in mod lists. Also put undocumented AD ldap control in to allow modifications when an attribute does not yet exist. (This used to be commit 1a2d27b21e61be5a314f7d6c4ea0dff06a5307be)
* Minor bug fixes, plus support to remove a printer. Commented out optional ↵Jim McDonough2002-02-022-16/+91
| | | | | | attributes until a method for checking for their existence is done. (This used to be commit 538c19a6983e0423b94f743184263cd8ef9c701e)
* Fix build errors on non-ldap systems...change function parms from LDAPMod ** ↵Jim McDonough2002-02-012-25/+28
| | | | | | to void ** (This used to be commit 9467792843fdd9bc55e92bfaa2f2205279074297)
* Fix file header description and copyright (from cut-and-paste laziness)Jim McDonough2002-02-011-3/+1
| | | | (This used to be commit 146c731c35beecd3ae8e093e52d94af0e2efcd69)
* Module for ADS operations on a printer object in the directory. Initially ↵Jim McDonough2002-02-011-0/+133
| | | | | | it creates and modifies a printQueue object in the directory (This used to be commit b14e638aeb80bad80cfd12ed60f5e77f24addfd5)
* Add functions for modifying an entry in ADS. Needed for printer publishing.Jim McDonough2002-02-011-1/+118
| | | | (This used to be commit 3d8d8cef64c674f9f1240759a05766db95bfde4e)
* Removed version number from file header.Tim Potter2002-01-307-14/+7
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Enable net ads commands to use existing tickets if the user doesn't specify ↵Jim McDonough2002-01-251-1/+3
| | | | | | a username on the commandline. Also don't continue past the kinit if a password is entered and fails because existing tickets would be used, which may not be desired if the username was specified. (This used to be commit 7e5d7dfa834c0161460bde8a2f0d4824c0a0d1fe)
* much better support for organisational units in ADS joinAndrew Tridgell2002-01-162-12/+46
| | | | (This used to be commit 7e876057d5e392f85e6fdb0f2c233b0fe76df688)