Jim McDonough
90ada79bbf
Whoops, left the paged control not critical in the paged search...kind of
...
defeats the purpose.
(This used to be commit 71806c49b366faf2466eee7352c71fcdfefd8cc1)
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 2bebc8a391bd80bd0e5adbedb3757fb4279ec414)
2002-03-27 02:58:58 +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 514c11b4e3fcc765a8087405333bd351c05c9e36)
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 8bf487ddff240150d7a92aaa0f978dd30062c331)
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 9afba67f9a56699e34735e1e425f97b2464f2402)
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 93389647203395da0e894c2e57348081e755884a)
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 3396a671c59e6afe70a22ce64e4a9381b1d6fef8)
2002-03-11 04:06:30 +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 6891393b5db868246fe52ff62b3dc6aa5ca6f726)
2002-03-10 01:54:44 +00:00
Herb Lewis
23e6fc25e2
fix for IRIX compile error
...
(This used to be commit 2d620909f9def17dacf2af997a32d596f4dbd827)
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 be48a05ed95f0f4ed02ffb996cb1ecc10811d9a0)
2002-02-13 15:00:39 +00:00
Jim McDonough
a346cfb467
talloc'ify ads modify functions. Also add more complete berval support.
...
(This used to be commit 1f186c60ad957c0e8157a6fd903857121c65a2e0)
2002-02-12 18:22:33 +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 81d76f05d8b886a86eb421d1bd8737ec7d05cbde)
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 24c7e7a3849df3a3378f7e7f20099de048f0b7bd)
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 01e7f7c3d9006883b71e43d917d32e325cff7a15)
2002-02-06 02:28:46 +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 1a2d27b21e61be5a314f7d6c4ea0dff06a5307be)
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 538c19a6983e0423b94f743184263cd8ef9c701e)
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 9467792843fdd9bc55e92bfaa2f2205279074297)
2002-02-01 17:13:39 +00:00
Jim McDonough
9e75e5c1f0
Add functions for modifying an entry in ADS. Needed for printer publishing.
...
(This used to be commit 3d8d8cef64c674f9f1240759a05766db95bfde4e)
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 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
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 7e5d7dfa834c0161460bde8a2f0d4824c0a0d1fe)
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 7e876057d5e392f85e6fdb0f2c233b0fe76df688)
2002-01-16 02:22:30 +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 ab8ff85f03b25a0dfe4ab63886a10da81207393c)
2002-01-11 04:50:45 +00:00
Andrew Tridgell
9e0297b3ed
added nTSecurityDescriptor field to host acct dump
...
(This used to be commit f383e19e095eab975bf3d4e622a5c1d1f823171b)
2002-01-03 11:59:33 +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 14407c87e2dcccae1784290e3eb7a2d611516aff)
2001-12-30 05:59:43 +00:00
Andrew Tridgell
401c7495ea
added ads_domain_sid() function
...
(This used to be commit ff002a458afa6ca378f0c6d2ec9fb74233c839a7)
2001-12-20 23:35:14 +00:00
Andrew Tridgell
6c7e9dfb29
net ads password and net ads chostpass commands from Remus Koos
...
(This used to be commit 412e79c448bf02e3097b5c14a36fe0172d8d2895)
2001-12-20 03:54:52 +00:00
Andrew Tridgell
1f31ace6cb
much better ADS error handling system
...
(This used to be commit 05a90a28843e0d69183a49a76617c5f32817df16)
2001-12-19 12:21:12 +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 ee1c3e1f044b4ef62169ad74c5cac40eef81bfda)
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 f1231c2b54cac9d4fda7fa9d45fd329f1fd7b779)
2001-12-17 11:16:22 +00:00
Andrew Tridgell
e051c2c430
make sid_binstring available without HAVE_ADS
...
(This used to be commit 4a6d29768665f71b72cf48ee34ee9a9c451232f6)
2001-12-10 00:39:01 +00:00
Andrew Tridgell
35eb6be4ea
fix a DEBUG() line
...
(This used to be commit 18da530293b11d895c62d08895ee1f77d8f97a12)
2001-12-08 12:00:27 +00:00
Andrew Tridgell
5d378a280f
added internal sasl/gssapi code. This means we are no longer dependent on cyrus-sasl which makes the code much less fragile. Also added code to auto-determine the server name or realm
...
(This used to be commit 435fdf276a79c2a517adcd7726933aeef3fa924b)
2001-12-08 11:18:56 +00:00
Andrew Tridgell
d412f66cd8
added a propoer kerberos_kinit_password call
...
contribution from remus@snapserver.com
thanks!
(This used to be commit 3ace8f1fcc27492d26f5ad0c3cdfc63235ca0609)
2001-12-06 05:41:53 +00:00
Andrew Tridgell
410dfc917f
fixed a minor password memory leak
...
(This used to be commit 5985d7e6eec1eb80d8d7470ee2ceda8981c7410c)
2001-12-05 10:44:30 +00:00
Andrew Tridgell
8aa0a817c1
handle ldap server down better
...
(This used to be commit 0d85815c992c6ca77ba64dfb2d7538be4684654d)
2001-12-05 10:14:22 +00:00
Andrew Tridgell
9421ad4a7a
added a REALLY gross hack into kerberos_kinit_password so that
...
winbindd can do a kinit
this will be removed once we have code that gets a tgt
and puts it in a place where cyrus-sasl can see it
(This used to be commit 7d94f1b7365215a020d3678d03d820a7d086174f)
2001-12-05 09:46:53 +00:00
Andrew Tridgell
5d41807f4d
added timeouts and retries to ldap operations
...
(This used to be commit 4f004eb54d66b6f811cb2f4791da6c70d77f87c2)
2001-12-05 09:19:25 +00:00
Andrew Tridgell
addea9645d
moved the sequence number fetch into the backend, and fetch the
...
sequence number via ldap when using ads
(This used to be commit 9a084f0bb91883224ad44e2b76417d10c15cce42)
2001-12-05 07:52:44 +00:00
Andrew Tridgell
0799c44680
paranoia fixes in based ldap routines for potential memory leaks
...
(This used to be commit 13b933104e1389608e4831ca47dd8106ea0c60a5)
2001-12-05 07:35:57 +00:00
Andrew Tridgell
5f76385e70
more memory leak fixes
...
(This used to be commit eb6f0e91ddd2a97a907a569bc60beca99b494884)
2001-12-05 06:26:56 +00:00
Andrew Tridgell
19c0459153
added functions that convert a ads binary blob to a string (for
...
searching on SID)
(This used to be commit 31d6d049b30e364e062f108d6f9221bbdc2ebec5)
2001-12-05 04:44:34 +00:00
Andrew Tridgell
3ec4a4def3
added ads_search_dn() and ads_pull_sids()
...
(This used to be commit bc83d55f4400cdcdfed44622954f11580b6d2f87)
2001-12-04 12:08:16 +00:00
Andrew Tridgell
2285b99cb1
added a basic ADS backend to winbind. More work needed, but at
...
least basic operations work
(This used to be commit 88241cab983b2c7db7d477c6c4654694a7a56cd3)
2001-12-03 06:04:18 +00:00
Andrew Bartlett
fe64484824
Make better use of the ads_init() function to get the kerberos relam etc.
...
This allows us to use automagically obtained values in future, and the value
from krb5.conf now.
Also fix mem leaks etc.
Andrew Bartlett
(This used to be commit 8f9ce717819235d98a1463f20ac659cb4b4ebbd2)
2001-11-29 06:21:56 +00:00
Andrew Tridgell
eec9e8a052
fix a bunch of places where we can double-free a cli structure
...
(This used to be commit e2ba2383c9f679c076749a8f4fccefc3559e37ec)
2001-11-28 03:56:30 +00:00
Andrew Tridgell
cb697dd72a
added "net ads user" and "net ads group" commands
...
(This used to be commit f482583139eedb75a23c7a720dca4e8fb7070fd5)
2001-11-25 01:31:07 +00:00
Andrew Tridgell
3906f9dff6
added "net ads status" command
...
(This used to be commit ae0eabd04c97320c2cf3c4575263c53cf61d03ea)
2001-11-25 01:06:56 +00:00
Andrew Tridgell
f2e969268d
better auto-selection of realm and ldap server
...
(This used to be commit 69d256af4612f5c1277202eb8a7ef37eb6bb55f4)
2001-11-25 00:08:48 +00:00
Andrew Tridgell
ad2974cd05
added "net join" command
...
this completes the first stage of the smbd ADS support
(This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
2001-11-24 14:16:41 +00:00
Andrew Tridgell
6464bb0ae5
added the beginnings of ADS support in smbd
...
(This used to be commit c7f611691941ca92f57665e19d6e46b161599427)
2001-11-20 08:54:15 +00:00