1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

800 Commits

Author SHA1 Message Date
Gerald Carter
09c6f6329d merge from APP_HEAD of winbindd's domain local group fix -
Gerald Carter
1cfd2ee433 merge of new client side support the Win2k LSARPC UUID in rpcbind
from APP_HEAD
-
Gerald Carter
3de09e5cf1 syncing up with HEAD. Seems to be a lot of differences creeping in
(i ignored the new SAMBA stuff, but the rest of this looks like it should
have been merged already).
-
Andrew Bartlett
83973c3893 Updates from Samba HEAD:
- Fix segfaults in the 'net ads' commands when no password is provided
 - Readd --with-ldapsam for 2.2 compatability.  This conditionally compiles the
   old options, but the actual code is available on all ldap systems.
 - Fix shadow passwords (as per work with vl)
 - Fix sending plaintext passwords to unicode servers (again vl)
 - Add a bit of const to secrets.c functions
 - Fix some spelling and grammer by vance.
 - Document the -r option in smbgroupedit.

There are more changes in HEAD, I'm only merging the changes I've been involved
with.

Andrew Bartlett
-
Gerald Carter
a1c4a16267 logic error in checking wins servers--merged from HEAD -
Gerald Carter
ee9cbf5807 sync with HEAD -
Gerald Carter
e026b84815 syncing up with HEAD again.... -
Gerald Carter
65e7b5273b sync'ing up for 3.0alpha20 release -
cvs2svn Import User
9a5541595f This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
Volker Lendecke
f0d7ac9feb This is a first working version of net rpc vampire. First do a net rpc
getsid, then join as a BDC, and then watch net rpc vampire suck out
the good stuff out of a PDC :-). It's not perfect, but it does quite a
bit for me. Watch out for more.

Volker
-
Richard Sharpe
b53547bf66 Update some help. People keep forgetting that! -
Richard Sharpe
08c3e2b824 Add net getlocalsid [name] -
Volker Lendecke
b959419ed3 Ok, getting a bit more ambitious. Stop me, if this is wrong. ;-)
When creating a group you have to take care of the fact that the
underlying unix might not like the group name. This change gets around
that problem by giving the add group script the chance to invent a
group name. It then must only return the newly created numerical gid.

Volker
-
Volker Lendecke
42774a7753 Cosmetic fix for debug message. -
Volker Lendecke
f6ed429838 Add the ability to view/set the current local domain SIDs.
Volker
-
Volker Lendecke
8c41b5cd1b Change parsing of policy and privs delta to what Ethereal says.
Volker
-
Volker Lendecke
0c1fadd9e0 First code for 'net rpc vampire'. We should probably find a more
positive name for this. It creates users and global groups. More to come.

Volker
-
Richard Sharpe
a8dc1464ea Add a synonym for samdump ... -
Andrew Tridgell
0d28d76947 Add clock skew handling to our kerberos code. This allows us to cope with
the DC being out of sync with the local machine.
-
Andrew Tridgell
05a202c287 added gencache implementation from mimir - thanks! -
Gerald Carter
6f0561acad removing compiler warnings about shadowed globals -
Andrew Bartlett
d1e1fc3e4b This is the 'easy' parts of the trusted domains patch n+3 patch from
Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl>

It includes a conversion of make_user_info*() to NTSTATUS and some minor
changes to other files.

It also picks up on a nasty segfault that can occour in some security=domain
cases.

Andrew Bartlett
-
Andrew Bartlett
5b9a7ab901 Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de>
to extend the ADS_STATUS system to include NTSTATUS, and to provide a better
general infrustructure for his sam_ads work.

I've also added some extra failure mode DEBUG()s to parts of the code.

NOTE:  The ADS_ERR_OK() macro is rather sensitive to braketing issues - without
the final set of brakets, the test is essentially inverted - causing some
intersting 'error = success' messages...

Andrew Bartlett
-
Volker Lendecke
26bee60a41 Fix segfault in net command -
Jean-François Micouleau
4d38caca40 added cli_net_auth_3 client code.
changed cli_nt_setup_creds() to call cli_net_auth_2 or cli_net_auth_3 based on a switch.
pass also the negociation flags all the way.
all the places calling cli_nt_setup_creds() are still using cli_net_aut2(), it's just for future use and for rpcclient.

in the future we will be able to call auth_2 or auth_3 as we want.

	J.F.
-
Andrew Tridgell
b04e91f660 convert the LDAP/SASL code to use GSS-SPNEGO if possible
we now do this:

- look for suported SASL mechanisms on the LDAP server
- choose GSS-SPNEGO if possible
- within GSS-SPNEGO choose KRB5 if we can do a kinit
- otherwise use NTLMSSP

This change also means that we no longer rely on having a gssapi
library to do ADS.

todo:
- add TLS/SSL support over LDAP
- change to using LDAP/SSL for password change in ADS
-
Volker Lendecke
23a4f6991e There's more work to be done on samsync. Intermediate commit, now
I get all the groups at least.

Volker
-
Andrew Tridgell
c1e00f5f16 show builtin groups in samdump -
Volker Lendecke
f76a5431f0 'No news is good news' might sometimes be confusing, at least to me :-)
Volker
-
Jelmer Vernooij
4b7de5ee23 Put in intermediate version of new SAM system. It's not stable yet, code
might be ugly, etc - please don't blame me for anything but instead try to fix
the code :-). Compiling of the new sam system can be enabled with the
configure option --with-sam

Removing passdb/passgrp.c as it's unused
fix typo in utils/testparm.c
-
Gerald Carter
e913d508d4 add hook for MSG_PRINTER_DRVUPGRADE that numps the change_id on all printers bound to a given driver -
Andrew Tridgell
228fc518da a few minor cleanups in the cldap request -
Andrew Tridgell
e4cb106d2e added a 'net rpc samdump' command for dumping the whole sam via
samsync operations (as a BDC)
-
Andrew Bartlett
4cd822d9e4 This is like jht's (abortive) patch for showing only non-default testparm
options.

Andrew Bartlett
-
Jelmer Vernooij
addf29e676 Patch from Paul Green <Paul.Green@stratus.com> to be more POSIX-compatible -
Volker Lendecke
287b7bda11 pdbedit needs global_myname to be set in order to display the
user SIDs correctly.

Volker
-
Volker Lendecke
2df34c9bfc global_myname is a pstring, not an fstring -
Volker Lendecke
12fd889a3f Add 'net rpc getsid' to fetch the PDC's SID into the local secrets.tdb
Print domain SID on 'net rpc info'

Volker
-
Volker Lendecke
169e784f48 just comment typos -
Volker Lendecke
5af5326f13 Fix debug level initialization for net.c
Volker
-
Andrew Tridgell
8aae10bcdc print out the GUID in the CLDAP reply -
Andrew Tridgell
67b4dbd5c9 we now parse the cldap reply and print its contents. There are a
couple of unknown fields we still need to work out.
-
Andrew Tridgell
6780ae25bf we now receive and parse the main cldap netlogon reply.
we still need to parse the core of the structure
-
Andrew Tridgell
6352508c54 added a 'net ads lookup' command that does a CLDAP NetLogon query to a
win2000 server. It does seem to work, and win200 sends us a valid
reply, but we don't parse it yet. Maybe tomorrow :)
-
Jelmer Vernooij
1b83b78e33 sync 3.0 branch with HEAD -
Simo Sorce
cb72eead70 *** empty log message *** -
Tim Potter
aa93db5abe Merge some usage info from APPLIANCE_HEAD. -
Andrew Bartlett
e57a896f06 Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
-
Andrew Tridgell
3b0e60e522 fixed 'net ads chostpass' for new ads structures -
Andrew Tridgell
87c34a974a added 'net rpc testjoin' and 'net ads testjoin' commands
unfortuately we don't seem to be able to auto-test the ADS join due to
a rather nasty property of the GSSAPI library.
-