kai/samba.git
22 years agobasic howto
Jean-François Micouleau [Fri, 7 Dec 2001 10:20:17 +0000 (10:20 +0000)]
basic howto

22 years agoinclude/build_env.h wasn't getting built by default with new rules unless
Herb Lewis [Fri, 7 Dec 2001 01:01:28 +0000 (01:01 +0000)]
include/build_env.h wasn't getting built by default with new rules unless
you did make headers - fixed

22 years agoadded a "use spnego" option
Andrew Tridgell [Fri, 7 Dec 2001 01:01:10 +0000 (01:01 +0000)]
added a "use spnego" option

you need to set "use spnego = no" for w2k to be able to join a samba
domain. Otherwise the w2k box will assume we can do kerberos as a KDC

22 years agoOK I think this does what everyone wants with the .headers.stamp
Herb Lewis [Fri, 7 Dec 2001 00:37:31 +0000 (00:37 +0000)]
OK I think this does what everyone wants with the .headers.stamp

it gets removed on a make clean
it gets created on a make headers (if it doesn't already exist)

This makes it so I only rebuild everthing once after a make clean and
also so nothing gets rebuilt after jfm does a make headers (proto)

22 years agoallow nsstest to test any nss module
Andrew Tridgell [Thu, 6 Dec 2001 22:42:27 +0000 (22:42 +0000)]
allow nsstest to test any nss module

22 years agoadd smbgroupedit
Herb Lewis [Thu, 6 Dec 2001 19:04:01 +0000 (19:04 +0000)]
add smbgroupedit

22 years agoagain an intrusive patch:
Jean-François Micouleau [Thu, 6 Dec 2001 13:09:15 +0000 (13:09 +0000)]
again an intrusive patch:

- removed the ugly as hell sam_logon_in_ssb variable, I changed a bit the
definition of standard_sub_basic() to cope with that.

- removed the smb.conf: 'domain admin group' and 'domain guest group'
parameters ! We're not playing anymore with the user's group RIDs !

- in get_domain_user_groups(), if the user's gid is a group, put it first
in the group RID list.

I just have to write an HOWTO now ;-)

        J.F.

22 years agoremove .headers.stamp from the delheaders definition
Jean-François Micouleau [Thu, 6 Dec 2001 12:57:50 +0000 (12:57 +0000)]
remove .headers.stamp from the delheaders definition
It forced a complete build to occur each time the proto are rebuild !

J.F.

22 years agomerge from 2.2
Gerald Carter [Thu, 6 Dec 2001 07:44:12 +0000 (07:44 +0000)]
merge from 2.2

22 years agomerge from 2.2
Gerald Carter [Thu, 6 Dec 2001 07:37:58 +0000 (07:37 +0000)]
merge from 2.2

22 years agocommit from 2.2
Gerald Carter [Thu, 6 Dec 2001 07:33:48 +0000 (07:33 +0000)]
commit from 2.2

22 years agoput the winbindd krb5 credentials cache in the lock directory
Andrew Tridgell [Thu, 6 Dec 2001 07:33:35 +0000 (07:33 +0000)]
put the winbindd krb5 credentials cache in the lock directory
this prevents it clobbering the users cache

22 years agoallow a MAX_DEBUG_LEVEL setting in local.h (or the Makefile)
Andrew Tridgell [Thu, 6 Dec 2001 07:17:25 +0000 (07:17 +0000)]
allow a MAX_DEBUG_LEVEL setting in local.h (or the Makefile)

This allows embedded systems to compile out the higher debug
levels. It should gain speed as well as reducing the code
size. Setting it to 1 saves about 300k of code on my system.

22 years agoadded a propoer kerberos_kinit_password call
Andrew Tridgell [Thu, 6 Dec 2001 05:41:53 +0000 (05:41 +0000)]
added a propoer kerberos_kinit_password call
contribution from remus@snapserver.com

thanks!

22 years agoFixed typo in fix for typo in debug. (-:
Tim Potter [Thu, 6 Dec 2001 04:23:06 +0000 (04:23 +0000)]
Fixed typo in fix for typo in debug. (-:

22 years agofix up packaging stuff
Herb Lewis [Wed, 5 Dec 2001 21:49:51 +0000 (21:49 +0000)]
fix up packaging stuff

22 years agomerge from 2.2
Herb Lewis [Wed, 5 Dec 2001 21:08:17 +0000 (21:08 +0000)]
merge from 2.2

don't set WINBIND variables unless configure was run --with-winbind

22 years agodont add -I./popt to CFLAGS it really belongs in FLAGS1 with other include
Herb Lewis [Wed, 5 Dec 2001 19:45:30 +0000 (19:45 +0000)]
dont add -I./popt to CFLAGS it really belongs in FLAGS1 with other include
paths. This make it hard to use a script that overrides CFLAGS options.

22 years agoAdded fetch_domain_sid. Not used in current code, but a nice example
Jeremy Allison [Wed, 5 Dec 2001 19:33:35 +0000 (19:33 +0000)]
Added fetch_domain_sid. Not used in current code, but a nice example
of how to use this interface.
Jeremy.

22 years agochanged the DEBUG level of tdb_pack and tdb_unpack. Instead of 8, it's now
Jean-François Micouleau [Wed, 5 Dec 2001 15:45:36 +0000 (15:45 +0000)]
changed the DEBUG level of tdb_pack and tdb_unpack. Instead of 8, it's now
18.

when you're looking at a level 10, and it's all clutered with
tdb_pack/unpack, it's getting .... And anyway most of our code using
tdb_pack/unpack have DEBUG around the call if there is a problem.

J.F.

22 years agoadded samr_queryuseralias(). instead of returning BUILTIN_ALIAS_RID_USERS,
Jean-François Micouleau [Wed, 5 Dec 2001 15:41:44 +0000 (15:41 +0000)]
added samr_queryuseralias(). instead of returning BUILTIN_ALIAS_RID_USERS,
now return the alias correctly.

time to look at the netlogon case.

J.F.

22 years agopreparing for release of 3.0alpha1
Samba Release Account [Wed, 5 Dec 2001 12:28:21 +0000 (12:28 +0000)]
preparing for release of 3.0alpha1

22 years agofixed a return value
Andrew Tridgell [Wed, 5 Dec 2001 11:32:25 +0000 (11:32 +0000)]
fixed a return value

22 years agoOK. Smbpasswd -j is DEAD.
Andrew Bartlett [Wed, 5 Dec 2001 11:00:26 +0000 (11:00 +0000)]
OK.  Smbpasswd -j is DEAD.

This moves the rest of the functionality into the 'net rpc join' code.

Futhermore, this moves that entire area over to the libsmb codebase, rather
than the crufty old rpc_client stuff.

I have also fixed up the smbpasswd -a -m bug in the process.

We also have a new 'net rpc changetrustpw' that can be called from a
cron-job to regularly change the trust account password, for sites
that run winbind but not smbd.

With a little more work, we can kill rpc_client from smbd entirly!
(It is mostly the domain auth stuff - which I can rework - and the
spoolss stuff that sombody else will need to look over).

Andrew Bartlett

22 years agoAdd a couple of extra debugs for the secrets.tdb stuff
Andrew Bartlett [Wed, 5 Dec 2001 10:52:13 +0000 (10:52 +0000)]
Add a couple of extra debugs for the secrets.tdb stuff

22 years agoEnsure we fill in the %U for NTLMSSP connections
Andrew Bartlett [Wed, 5 Dec 2001 10:50:26 +0000 (10:50 +0000)]
Ensure we fill in the %U for NTLMSSP connections

22 years agofixed a minor password memory leak
Andrew Tridgell [Wed, 5 Dec 2001 10:44:30 +0000 (10:44 +0000)]
fixed a minor password memory leak

22 years agofixed a memory leak
Andrew Tridgell [Wed, 5 Dec 2001 10:43:43 +0000 (10:43 +0000)]
fixed a memory leak

22 years agofix link error
Andrew Tridgell [Wed, 5 Dec 2001 10:35:25 +0000 (10:35 +0000)]
fix link error

22 years agohandle ldap server down better
Andrew Tridgell [Wed, 5 Dec 2001 10:14:22 +0000 (10:14 +0000)]
handle ldap server down better

22 years agoadded a REALLY gross hack into kerberos_kinit_password so that
Andrew Tridgell [Wed, 5 Dec 2001 09:46:53 +0000 (09:46 +0000)]
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

22 years agoauto-init secrets.tdb
Andrew Tridgell [Wed, 5 Dec 2001 09:45:00 +0000 (09:45 +0000)]
auto-init secrets.tdb

22 years agoadded timeouts and retries to ldap operations
Andrew Tridgell [Wed, 5 Dec 2001 09:19:25 +0000 (09:19 +0000)]
added timeouts and retries to ldap operations

22 years agomoved the sequence number fetch into the backend, and fetch the
Andrew Tridgell [Wed, 5 Dec 2001 07:52:44 +0000 (07:52 +0000)]
moved the sequence number fetch into the backend, and fetch the
sequence number via ldap when using ads

22 years agodon't double free ldap message lists
Andrew Tridgell [Wed, 5 Dec 2001 07:36:35 +0000 (07:36 +0000)]
don't double free ldap message lists

22 years agoparanoia fixes in based ldap routines for potential memory leaks
Andrew Tridgell [Wed, 5 Dec 2001 07:35:57 +0000 (07:35 +0000)]
paranoia fixes in based ldap routines for potential memory leaks

22 years agofixed another leak - memory usage now seems to be quite small
Andrew Tridgell [Wed, 5 Dec 2001 07:11:26 +0000 (07:11 +0000)]
fixed another leak - memory usage now seems to be quite small

22 years agoadded very basic ads connection cacheing
Andrew Tridgell [Wed, 5 Dec 2001 07:05:53 +0000 (07:05 +0000)]
added very basic ads connection cacheing

22 years agomore memory leak fixes
Andrew Tridgell [Wed, 5 Dec 2001 06:26:56 +0000 (06:26 +0000)]
more memory leak fixes

22 years agoplugged most of the memory leaks
Andrew Tridgell [Wed, 5 Dec 2001 06:16:33 +0000 (06:16 +0000)]
plugged most of the memory leaks

22 years agoadded the last winbindd/ads backend function
Andrew Tridgell [Wed, 5 Dec 2001 05:35:45 +0000 (05:35 +0000)]
added the last winbindd/ads backend function

winbindd is now fully functional with a native mode w2k server

now for the memory leaks and speed ...

22 years agofinally worked out how to do ldap lookups by binary blobs, so I can
Andrew Tridgell [Wed, 5 Dec 2001 04:48:51 +0000 (04:48 +0000)]
finally worked out how to do ldap lookups by binary blobs, so I can
now do searches on SID. This allows me to do a true ldap sid_to_name()
function

one one function to go!

22 years agoadded functions that convert a ads binary blob to a string (for
Andrew Tridgell [Wed, 5 Dec 2001 04:44:34 +0000 (04:44 +0000)]
added functions that convert a ads binary blob to a string (for
searching on SID)

22 years agofixed an off by 1 bug in talloc_asprintf()
Andrew Tridgell [Wed, 5 Dec 2001 04:43:53 +0000 (04:43 +0000)]
fixed an off by 1 bug in talloc_asprintf()

22 years agoFixed parse_domain_user to be bool.
Jeremy Allison [Wed, 5 Dec 2001 04:17:39 +0000 (04:17 +0000)]
Fixed parse_domain_user to be bool.
Jeremy.

22 years agoAdd a new flag for anonymous connections
Andrew Bartlett [Wed, 5 Dec 2001 03:14:35 +0000 (03:14 +0000)]
Add a new flag for anonymous connections

22 years agoMake it easier to construct anonymous connections with a new flag and helper
Andrew Bartlett [Wed, 5 Dec 2001 03:14:21 +0000 (03:14 +0000)]
Make it easier to construct anonymous connections with a new flag and helper
function.

22 years agoSplit out the name resolution code into a seperate function
Andrew Bartlett [Wed, 5 Dec 2001 02:58:40 +0000 (02:58 +0000)]
Split out the name resolution code into a seperate function

22 years agoUse print_queue_length() by preference if we don't need a queue
Jeremy Allison [Wed, 5 Dec 2001 02:11:03 +0000 (02:11 +0000)]
Use print_queue_length() by preference if we don't need a queue
as it doesn't do a traversal.
Jeremy.

22 years agoFollow herb's suggestion and don't strdup a string to itself
Andrew Bartlett [Wed, 5 Dec 2001 01:59:32 +0000 (01:59 +0000)]
Follow herb's suggestion and don't strdup a string to itself

22 years agoFollow herb's suggestion and don't strdup a string to itself.
Andrew Bartlett [Wed, 5 Dec 2001 01:58:33 +0000 (01:58 +0000)]
Follow herb's suggestion and don't strdup a string to itself.

22 years agomerge from 2.2 branch
Herb Lewis [Wed, 5 Dec 2001 01:04:47 +0000 (01:04 +0000)]
merge from 2.2 branch

22 years agoImproved efficiency of enumerating print queue's under a particular
Jeremy Allison [Wed, 5 Dec 2001 00:54:33 +0000 (00:54 +0000)]
Improved efficiency of enumerating print queue's under a particular
extreme condition...
Jeremy.

22 years agoAdd a mechinism to allow for sane porting of rpcclient components into the new
Andrew Bartlett [Wed, 5 Dec 2001 00:26:36 +0000 (00:26 +0000)]
Add a mechinism to allow for sane porting of rpcclient components into the new
'net' command.

This also gets us 'net rpc user add'.

Andrew Bartlett

22 years agoDitto on the const religion.
Andrew Bartlett [Wed, 5 Dec 2001 00:24:57 +0000 (00:24 +0000)]
Ditto on the const religion.

22 years agoConst religion for some of the RPC code.
Andrew Bartlett [Wed, 5 Dec 2001 00:22:24 +0000 (00:22 +0000)]
Const religion for some of the RPC code.

22 years agoMerge from 2.2
Herb Lewis [Tue, 4 Dec 2001 22:24:17 +0000 (22:24 +0000)]
Merge from 2.2

If you do not have one more expect than issue when talking to the passwd
program you will not send the last issue.

22 years agomove proto.h and build_env.h from $(srcdir)/include to $(builddir)/include
Jean-François Micouleau [Tue, 4 Dec 2001 21:58:37 +0000 (21:58 +0000)]
move proto.h and build_env.h from $(srcdir)/include to $(builddir)/include

tridge, martin, if you think it's wrong , you can revert it.

J.F.

22 years agoadded a boolean to the group mapping functions to specify if we need or
Jean-François Micouleau [Tue, 4 Dec 2001 21:53:47 +0000 (21:53 +0000)]
added a boolean to the group mapping functions to specify if we need or
not the privileges. Usually we don't need them, so the memory is free
early.

lib/util_sid.c: added some helper functions to check an SID.

passdb/passdb.c: renamed local_lookup_rid() to local_lookup_sid() and pass
an RID all the way. If the group doesn't exist on the domain SID,
don't return a faked one as it can collide with a builtin one. Some rpc
structures have been badly designed, they return only rids and force the
client to do subsequent lsa_lookup_sid() on the domain sid and the builtin
sid !

rpc_server/srv_util.c: wrote a new version of get_domain_user_groups().
Only the samr code uses it atm. It uses the group mapping code instead of
a bloody hard coded crap. The netlogon code will use it too, but I have to
do some test first.

J.F.

22 years agoCorrect message on wbinfo fail to open config file.
Jeremy Allison [Tue, 4 Dec 2001 21:30:52 +0000 (21:30 +0000)]
Correct message on wbinfo fail to open config file.
Jeremy.

22 years agoTidup.
Jeremy Allison [Tue, 4 Dec 2001 18:37:14 +0000 (18:37 +0000)]
Tidup.
Jeremy.

22 years agoPut back changes to set errno, which seem to do no harm.
Martin Pool [Tue, 4 Dec 2001 13:21:15 +0000 (13:21 +0000)]
Put back changes to set errno, which seem to do no harm.

22 years agoFix headers. This I know is correct.
Martin Pool [Tue, 4 Dec 2001 13:17:22 +0000 (13:17 +0000)]
Fix headers.  This I know is correct.

22 years agoFix headers. This I know is correct.
Martin Pool [Tue, 4 Dec 2001 12:44:10 +0000 (12:44 +0000)]
Fix headers.  This I know is correct.

22 years agoadded lookup_groups() to the ads backend
Andrew Tridgell [Tue, 4 Dec 2001 12:10:05 +0000 (12:10 +0000)]
added lookup_groups() to the ads backend

winbindd/ADS can now do initgroups()

22 years agoadded ads_search_dn() and ads_pull_sids()
Andrew Tridgell [Tue, 4 Dec 2001 12:08:16 +0000 (12:08 +0000)]
added ads_search_dn() and ads_pull_sids()

22 years agoundo
Martin Pool [Tue, 4 Dec 2001 11:41:12 +0000 (11:41 +0000)]
undo

22 years agoImplement suggestion from tridge to leave the old tdb_open interface
Martin Pool [Tue, 4 Dec 2001 11:25:44 +0000 (11:25 +0000)]
Implement suggestion from tridge to leave the old tdb_open interface
as it was, and add tdb_open_ex() which takes a log callback.  I guess
this makes more sense since it's a public interface.

22 years agoBetter error handling:
Martin Pool [Tue, 4 Dec 2001 07:40:25 +0000 (07:40 +0000)]
Better error handling:

 - tdb_open api changed so that you now pass an error handling
   callback when opening the file, so that errors detected during
   opening have somewhere to go.  (All calls from the body of Samba to
   this function go through a wrapper in tdbutil, which has been
   updated.)

 - Clean up logic for deciding how to open tdb.  Emit log messages if
   something goes wrong (e.g. bad magic.)

 - tdbtool now logs errors to stderr.

22 years agoallow for passwords other than "samba2"
Andrew Tridgell [Tue, 4 Dec 2001 06:56:58 +0000 (06:56 +0000)]
allow for passwords other than "samba2"

:)

22 years agomoved lookup_usergroups() into the backend structure
Andrew Tridgell [Tue, 4 Dec 2001 06:46:53 +0000 (06:46 +0000)]
moved lookup_usergroups() into the backend structure

22 years agomoved init_account_policy() to the right place
Andrew Tridgell [Tue, 4 Dec 2001 06:20:39 +0000 (06:20 +0000)]
moved init_account_policy() to the right place

22 years agoadded a query_user backend
Andrew Tridgell [Tue, 4 Dec 2001 06:17:39 +0000 (06:17 +0000)]
added a query_user backend
fixed a winbindd crash when the group membership can't be looked up

22 years agotypo fix
Andrew Tridgell [Tue, 4 Dec 2001 06:16:02 +0000 (06:16 +0000)]
typo fix

22 years agoconst religion in talloc calls
Andrew Tridgell [Tue, 4 Dec 2001 06:14:42 +0000 (06:14 +0000)]
const religion in talloc calls

22 years agosmbpasswd is *ugly*!
Andrew Bartlett [Tue, 4 Dec 2001 05:16:54 +0000 (05:16 +0000)]
smbpasswd is *ugly*!

However this looks like the best spot to init the account policy db...

(fix segfaults on all local smbpasswd ops)

Andrew Bartlett

22 years agowinbindd friendly user_in_list code. Tested on a 65k user domain.
Jeremy Allison [Tue, 4 Dec 2001 05:13:04 +0000 (05:13 +0000)]
winbindd friendly user_in_list code. Tested on a 65k user domain.
Jeremy.

22 years agoAdd 'net rpc join' to match the ADS equiv.
Andrew Bartlett [Tue, 4 Dec 2001 05:03:03 +0000 (05:03 +0000)]
Add 'net rpc join' to match the ADS equiv.

This kills off the offending code in smbpasswd -j -Uab%c

In the process we have changed from unsing compelatly random passwords
to random, 15 char ascii strings.  While this does produce a decrese in
entropy, it is still vastly greater than we need, considering the application.

In the meantime this allows us to actually *type* the machine account
password duruign debugging.

This code also adds a 'check' step to the join, confirming that the
stored password does indeed do somthing of value :-)

Andrew Bartlett

22 years agoSome changes to the name resolution code in 'net' to allow us to find a
Andrew Bartlett [Tue, 4 Dec 2001 04:48:01 +0000 (04:48 +0000)]
Some changes to the name resolution code in 'net' to allow us to find a
PDC, as well as changes for correctness as per tridge.

Andrew Bartlett

22 years agoFix up funtion name, as this finds local, not domain master browsers.
Andrew Bartlett [Tue, 4 Dec 2001 04:45:17 +0000 (04:45 +0000)]
Fix up funtion name, as this finds local, not domain master browsers.
 (as per tridge's instructions)

22 years agoThis comment no longer applies.
Andrew Bartlett [Tue, 4 Dec 2001 04:33:22 +0000 (04:33 +0000)]
This comment no longer applies.

22 years agoMagic file for TDB databases.
Martin Pool [Tue, 4 Dec 2001 04:03:29 +0000 (04:03 +0000)]
Magic file for TDB databases.

22 years agoStop using getgrgid() - a very expensive call with winbindd, to look up
Jeremy Allison [Tue, 4 Dec 2001 03:59:18 +0000 (03:59 +0000)]
Stop using getgrgid() - a very expensive call with winbindd, to look up
a group name.
Jeremy.

22 years agoMoved name_is_local to the correct place. Ooops.
Jeremy Allison [Tue, 4 Dec 2001 03:47:44 +0000 (03:47 +0000)]
Moved name_is_local to the correct place. Ooops.
Jeremy.

22 years agoSet errno in tdb_open in cases where we detect an error in opening the
Martin Pool [Tue, 4 Dec 2001 02:58:42 +0000 (02:58 +0000)]
Set errno in tdb_open in cases where we detect an error in opening the
database, but no underlying system call sets errno.

The particular case I had was a mangled .tdb, but there are others.
For this one, set EIO.  It's a shame Unix messages aren't more
detailed -- "bad data format" would be better.

22 years agoTidyup of lib/username. Add name_is_local fn to determine if name is
Jeremy Allison [Tue, 4 Dec 2001 02:58:22 +0000 (02:58 +0000)]
Tidyup of lib/username. Add name_is_local fn to determine if name is
winbindd. Getting ready for efficiency fix in group lookups.
Jeremy.

22 years agoAdded error message for ERRdiskfull.
Tim Potter [Tue, 4 Dec 2001 00:46:12 +0000 (00:46 +0000)]
Added error message for ERRdiskfull.

22 years agowhen using non-encrypted password ignore the ntpass variable to
Andrew Tridgell [Tue, 4 Dec 2001 00:07:08 +0000 (00:07 +0000)]
when using non-encrypted password ignore the ntpass variable to
session setup

22 years agoAdded prototypes for new fns. Thanks Elrond.
Jeremy Allison [Mon, 3 Dec 2001 20:39:15 +0000 (20:39 +0000)]
Added prototypes for new fns. Thanks Elrond.
Jeremy.

22 years agoadded a tdb to store the account policy informations.
Jean-François Micouleau [Mon, 3 Dec 2001 17:14:23 +0000 (17:14 +0000)]
added a tdb to store the account policy informations.
You can change them with either usermanager->policies->account
or from a command prompt on NT/W2K: net accounts /domain

we can add a rpc accounts to the net command. As the net_rpc.c is still
empty, I did not start. How should I add command to it ? Should I take the
rpcclient/cmd_xxx functions and call them from there ?

alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more
for jeremy ;-)

        J.F.

22 years agochanged query_dispinfo to query_user_list
Andrew Tridgell [Mon, 3 Dec 2001 11:32:55 +0000 (11:32 +0000)]
changed query_dispinfo to query_user_list

22 years agoput sid_to_name behind the winbindd backend interface
Andrew Tridgell [Mon, 3 Dec 2001 11:11:14 +0000 (11:11 +0000)]
put sid_to_name behind the winbindd backend interface
I spent quite a while trying to work out how to make this call
via ldap and failed. I then found that MS servers seem use rpc
for sid_to_name, and it works even when in native mode, I ended
up just implementing it via rpc

22 years agoadded name_to_sid to the backend
Andrew Tridgell [Mon, 3 Dec 2001 08:17:46 +0000 (08:17 +0000)]
added name_to_sid to the backend

22 years agoconst religion
Andrew Tridgell [Mon, 3 Dec 2001 08:16:51 +0000 (08:16 +0000)]
const religion

22 years agoadded another ATYPE_
Andrew Tridgell [Mon, 3 Dec 2001 08:16:01 +0000 (08:16 +0000)]
added another ATYPE_

22 years agomake proto should build winbindd_proto.h as well
Andrew Tridgell [Mon, 3 Dec 2001 08:15:18 +0000 (08:15 +0000)]
make proto should build winbindd_proto.h as well

22 years agoThis change reworkes the connection code for both rpcclient and net new
Andrew Bartlett [Mon, 3 Dec 2001 07:42:18 +0000 (07:42 +0000)]
This change reworkes the connection code for both rpcclient and net new
'net' untility.

This should make it easier to port rpcclient code across to net.

It also allows SPNEGO (the NTLMSSP subsystem in particular) to work, becouse
it kills off the early destruction of the clear-text password.

Andrew Bartlett

22 years agoForgot this one with the last commit...
Andrew Bartlett [Mon, 3 Dec 2001 06:49:47 +0000 (06:49 +0000)]
Forgot this one with the last commit...

Andrew Bartlett

22 years agoadded a basic ADS backend to winbind. More work needed, but at
Andrew Tridgell [Mon, 3 Dec 2001 06:04:18 +0000 (06:04 +0000)]
added a basic ADS backend to winbind. More work needed, but at
least basic operations work

22 years agoThis is another major rework of the 'net' command.
Andrew Bartlett [Mon, 3 Dec 2001 04:39:23 +0000 (04:39 +0000)]
This is another major rework of the 'net' command.

This time, all the existing functionality has been moved into
'net rap', ready for new commands in the 'net ads' and 'net rpc' categories.

In particular, we hope to have the abilty to autoselect the appropriate
backend to use based on smb.conf or other paramaters.

This will allow 'net user' to work no matter what the remote server.

The new 'net rpc' command will soon gain a 'net rpc join' and a
'net rpc user' based on the existing samba code.

Also in this commit, the connection establishment code has been almost entirly
reworked, and now has some minor sense of sainity to it.
In particular, we can now connect to hosts *other* than localhost!

We also have the ability to state on a per-command basis whether the 'localhost'
is a sane default value.  (A net join, for example, would not be sane against
localhost).

Unfortunetly we have had to make the basic paramaters global variables, but
the 'cli' is not opened and closed on a per-command basis.

Andrew Bartlett