Jim McDonough
2ed1dfcf4e
Added ads_process_results(), which takes a function that is called for each
...
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 f01f02fc56
)
2002-03-29 21:06:33 +00:00
Jim McDonough
90ada79bbf
Whoops, left the paged control not critical in the paged search...kind of
...
defeats the purpose.
(This used to be commit 71806c49b3
)
2002-03-27 03:09:50 +00:00
Jim McDonough
1a06eeb6da
Add server control to prevent referrals in paged searches. This keeps
...
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 2bebc8a391
)
2002-03-27 02:58:58 +00:00
Tim Potter
ce236d1dbf
Stomped on some header file version numbers that have crept back in.
...
(This used to be commit e66bdf1229
)
2002-03-22 06:24:38 +00:00
Andrew Tridgell
b462700e53
added a ads_do_search_all() call, which is a more convenient interface
...
to paged searches. This makes updating winbindd to used paged searches
trivial.
(This used to be commit 514c11b4e3
)
2002-03-19 22:14:53 +00:00
Andrew Tridgell
f464ceb109
fixed paged controls on my box. The problem seems to be incorrect
...
referrals parsing in the openldap libs. By disabling referrals we get
valid controls back and the cookies work.
(This used to be commit 8bf487ddff
)
2002-03-19 12:58:38 +00:00
Jim McDonough
0640a5ceeb
This adds the Paged Result Control to ads searching. The new function, 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 9afba67f9a
)
2002-03-14 17:48:26 +00:00
Andrew Tridgell
2001b83faa
detect SIZELIMIT_EXCEEDED in ldap queries and truncate
...
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 9338964720
)
2002-03-13 06:43:52 +00:00
Andrew Tridgell
bd3a6e6cc9
put in the ADS DNS hack, but commented out
...
(This used to be commit 3396a671c5
)
2002-03-11 04:06:30 +00:00
Andrew Tridgell
1975b3e4a2
forgotten file, oops
...
(This used to be commit 98196e79b7
)
2002-03-10 06:56:59 +00:00
Andrew Tridgell
cfbbf73677
yipee! Finally put in the patch from Alexey Kotovich
...
<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 6891393b5d
)
2002-03-10 01:54:44 +00:00
Herb Lewis
23e6fc25e2
fix for IRIX compile error
...
(This used to be commit 2d620909f9
)
2002-03-04 01:07:02 +00:00
Jim McDonough
9fc99e3c55
Fix LDAP modification operation. Cut and paste error: was LDAP_MOD_ADD, should be LDAP_MOD_REPLACE. Caught by Alexey Kotovich.
...
(This used to be commit be48a05ed9
)
2002-02-13 15:00:39 +00:00
Jim McDonough
d6b82723a0
talloc'ify ads modify functions.
...
(This used to be commit e097666499
)
2002-02-12 18:22:47 +00:00
Jim McDonough
a346cfb467
talloc'ify ads modify functions. Also add more complete berval support.
...
(This used to be commit 1f186c60ad
)
2002-02-12 18:22:33 +00:00
Jim McDonough
ad6dfee741
Update for new ads modlist structure passing
...
(This used to be commit 6169b668fe
)
2002-02-11 15:48:01 +00:00
Jim McDonough
d2b65dcbff
Add ability to extend ads modification list on the fly. Also add some malloc checks and return ADS_ERROR(LDAP_NO_MEMORY) if they fail.
...
(This used to be commit 81d76f05d8
)
2002-02-11 15:47:02 +00:00
Andrew Tridgell
fb444a546e
when a trusted domain is down an ADS server will return a success on a
...
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 24c7e7a384
)
2002-02-07 02:44:37 +00:00
Jim McDonough
9aa88da9d5
Fix ldapmod list overrun check. Also better document and format ldap control for permissive modify.
...
(This used to be commit 01e7f7c3d9
)
2002-02-06 02:28:46 +00:00
Jim McDonough
55b92fdebc
Update for function name changes, plus do some of the optional attributes on printer modify, now that the ldap control is working.
...
(This used to be commit 76afc886a8
)
2002-02-02 22:07:22 +00:00
Jim McDonough
81b54940b7
merge in some changes from Alexey Kotovich. Return ADS_STATUS instead of 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 1a2d27b21e
)
2002-02-02 22:06:10 +00:00
Jim McDonough
bb8349735f
Minor bug fixes, plus support to remove a printer. Commented out optional attributes until a method for checking for their existence is done.
...
(This used to be commit 538c19a698
)
2002-02-02 02:04:01 +00:00
Jim McDonough
0c63216603
Fix build errors on non-ldap systems...change function parms from LDAPMod ** to void **
...
(This used to be commit 9467792843
)
2002-02-01 17:13:39 +00:00
Jim McDonough
aa8ebe3956
Fix file header description and copyright (from cut-and-paste laziness)
...
(This used to be commit 146c731c35
)
2002-02-01 16:58:01 +00:00
Jim McDonough
ecc2e1e3b8
Module for ADS operations on a printer object in the directory. Initially it creates and modifies a printQueue object in the directory
...
(This used to be commit b14e638aeb
)
2002-02-01 16:15:53 +00:00
Jim McDonough
9e75e5c1f0
Add functions for modifying an entry in ADS. Needed for printer publishing.
...
(This used to be commit 3d8d8cef64
)
2002-02-01 16:14:33 +00:00
Tim Potter
cd68afe312
Removed version number from file header.
...
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06
)
2002-01-30 06:08:46 +00:00
Jim McDonough
de260eadf9
Enable net ads commands to use existing tickets if the user doesn't specify 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 7e5d7dfa83
)
2002-01-25 22:07:46 +00:00
Andrew Tridgell
9f85d4ad5f
much better support for organisational units in ADS join
...
(This used to be commit 7e876057d5
)
2002-01-16 02:22:30 +00:00
Martin Pool
6059f40763
Move local variable to avoid warning when compiled without GSSAPI.
...
(This used to be commit 312c6d906e
)
2002-01-14 06:34:53 +00:00
Andrew Bartlett
4acb3125cd
Fix up 'net ads join' to delete and rejoin if the account already exists.
...
This fixes up a problem where a machine would join (or downgrade by trust
password change) to NT4 membership and not be able to regain full ADS
membership until a 'net ads leave'.
Andrew Bartlett
(This used to be commit ab8ff85f03
)
2002-01-11 04:50:45 +00:00
Andrew Tridgell
9e0297b3ed
added nTSecurityDescriptor field to host acct dump
...
(This used to be commit f383e19e09
)
2002-01-03 11:59:33 +00:00
Andrew Bartlett
b5666e2874
Fix up C99 comment.
...
// -> /* */
(This used to be commit a308abbab7
)
2002-01-01 02:31:32 +00:00
Andrew Tridgell
162a6606bd
cope with systems that don't have full gssapi libs
...
(This used to be commit c4d928e55f
)
2001-12-31 14:31:13 +00:00
Andrew Bartlett
8536aa5ef3
Allow this to build without LDAP, as per the example below it.
...
Andrew Bartlett
(This used to be commit f60e445001
)
2001-12-31 11:14:38 +00:00
Andrew Bartlett
436595a386
Fix the compile on systems without a full kerberos kit.
...
Andrew Bartlett
(This used to be commit 33ae29028b
)
2001-12-30 06:20:23 +00:00
Andrew Bartlett
34037e2479
Make Samba compile on RH 6.2 again.
...
We now include the libber.h file if required, but currently we just don't use
ldap. (I'll chase this up).
In the meantime, I've moved the ads_status code about, its now in its own file,
and has a couple of #ifdefs to allow smbd to link - becouse the lack of LDAP
caused HAVE_ADS to be undefined. (I hope its not too ugly).
Andrew Bartlett
(This used to be commit 14407c87e2
)
2001-12-30 05:59:43 +00:00
Andrew Tridgell
401c7495ea
added ads_domain_sid() function
...
(This used to be commit ff002a458a
)
2001-12-20 23:35:14 +00:00
Andrew Tridgell
db54a8c041
forgot to commit this file from remus
...
(This used to be commit 7984ae0121
)
2001-12-20 07:46:24 +00:00
Andrew Tridgell
6c7e9dfb29
net ads password and net ads chostpass commands from Remus Koos
...
(This used to be commit 412e79c448
)
2001-12-20 03:54:52 +00:00
Andrew Tridgell
1f31ace6cb
much better ADS error handling system
...
(This used to be commit 05a90a2884
)
2001-12-19 12:21:12 +00:00
Andrew Tridgell
105fe2a32e
we only have gss_ fns on a krb5 capable box
...
(This used to be commit 344b786efe
)
2001-12-19 09:58:52 +00:00
Andrew Tridgell
a062e58d9e
- added initial support for trusted domains in winbindd_ads
...
- gss error code patch from a.bokovoy@sam-solutions.net
- better sid dumping in ads_dump
- fixed help in wbinfo
(This used to be commit ee1c3e1f04
)
2001-12-19 08:44:23 +00:00
Andrew Tridgell
48c45486e3
allow selection of the organisational unit when joining a realm
...
(This used to be commit f1231c2b54
)
2001-12-17 11:16:22 +00:00
Andrew Tridgell
d58b1b5981
better error handling
...
(This used to be commit ed6279481b
)
2001-12-13 11:30:13 +00:00
Andrew Tridgell
75a6ac48a0
try the PDC for our workgroup if we can't find the ldap server
...
(This used to be commit fc9fd2ca19
)
2001-12-13 11:29:49 +00:00
Andrew Tridgell
66d964c9fc
allow overriding the local time in kerberos_kinit_password()
...
(This used to be commit cb9dbcef7c
)
2001-12-11 05:15:52 +00:00
Andrew Tridgell
3d27d7b9f7
moved ccache location change into winbindd code
...
(This used to be commit be254eb13c
)
2001-12-10 22:10:31 +00:00
Andrew Tridgell
e051c2c430
make sid_binstring available without HAVE_ADS
...
(This used to be commit 4a6d297686
)
2001-12-10 00:39:01 +00:00
Andrew Tridgell
bc26ea1e5c
fixed used of string after free
...
(This used to be commit f7ead035eb
)
2001-12-09 00:45:51 +00:00