1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

538 Commits

Author SHA1 Message Date
Simo Sorce
7b3c94b5cf So here it is a non-intrusive patch with my latest work on gums (the
laternative to the current passdb).
Currently it is run through a comatibility module in the passdb layer, with
a subset of the functionality it may provide.
It is still work in progress, but as someone asked me about it, and as it
should make no difference to the normal code, I tought it was a good idea to
put it into.
It adds a dependency on perl. I know it is not very nice, but I'm sure we
will work out a solution for that.

As always blame me if I break something, but try to fix yourself, as I am
busy-busy-busy :-)

Simo.
-
Tim Potter
84a0433c52 Merge from 3.0:
>Moving towards better i18n support in SWAT.  This commit contains a
>bunch of updates to bug 413 from Monyo:
>
>1) pick up proper strings to call msg strings for example to add
>  strings in wizard menu in web/swat.c, web/statuspage.c and
>  param/loadparm.c.
>
>2) define N_() macro in include/intl.h to pick up some strings
>  in param/loadparm.c
>
>3) quote all name and value tag with '"'
>  For example in swat.c:720 the "Edit Parameter Values" string is
>  displayd only as "Edit" because value tag is not quoted like:
>  value=Edit Parameter Values
>  These tags should be quoted though it sometimes works well
>  without quotation.
>
>4) modify the msg strings not to contain HTML tags or other
>  non-message strings. For example
>  dprintf(_("test\n")); is modified to dprintf("%s\n", _("test"));
-
Gerald Carter
b6433f5db7 merge of parameter changes from 3.0 and fix for bug 550 -
Gerald Carter
c6a61ffcbd * sync more files from 3.0
* set version string to "CVS 3.1.0alpha1"
-
Gerald Carter
b5c5a9dc76 remove references to 'strip dot' -
Gerald Carter
c17a7dc9a1 sync 3.0 into HEAD for the last time -
Simo Sorce
3101c236b8 port latest changes from SAMBA_3_0 tree -
Gerald Carter
adb98e7b7c trying to get HEAD building again. If you want the code
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE
-
Gerald Carter
6fb5bdb30e * set winbind cache time to 5 minutes
* quit obsessing over the sequence number so much
* share the updated sequence number between parent
  and child winbindd processes in dual mode
-
Gerald Carter
a1326ea348 syncing LDAP schema changes with Samba_3_0 -
Gerald Carter
6138093aa0 removing total print jobs since it is not used anymore -
Gerald Carter
7daf5f0042 removing printing = SOFTQ since no one knows what it is -
Simo Sorce
09eb02cba0 prepare to get _nua out of the door (but back in from the window ;-) -
Simo Sorce
16302b080a default remote idmap backend is null -
Simo Sorce
bec45093c3 add idmap only parameter
make idmap not map SIDs outside the uid/gid range defined by default
this is to keep backward compatibility
-
Jelmer Vernooij
aa07b12fda Patch from Stefan Metzmacher to add default parameters to the lp_parm()
smb.conf parameters along with some other small fixes. Binary
compatible with older modules.
-
Jelmer Vernooij
540bb99676 Also remove variable associated with lp_sam_backend() - it's dead -
Jelmer Vernooij
c95a4a5aeb Get rid of 'sam backend' and --with-sam -
Volker Lendecke
e99a40a711 Set the default schannel params to False until we know more.
Volker
-
Volker Lendecke
ecd0ee4d24 This is the netlogon schannel client code. Try a
rpcclient -S pdc -U% -c "samlogon user password"

and it should work with the schannel. Needs testing platforms
different from NT4SP6.

Volker
-
Alexander Bokovoy
e46177acec Fix some mixture of FLAG_GLOBAL|FLAG_SHARE in synonyms -
Volker Lendecke
e1f953241e This is a merge of the NETLOGON schannel server code from Samba
TNG. Actually, it exists in the main Samba cvs tree in APPLIANCE_TNG
as I found out later :-)

It adds a new parameter: server schannel = yes/auto/no defaulting to
auto.

What does this mean to the user: No requireSignOrSeal registry patch
for XP anymore.

Many thanks for this code to Luke Leighton, Elrond and anybody else I
forgot to mention.

My next thing will be to see if this applies cleanly to 3_0.

Please test and comment!

Volker
-
Simo Sorce
0278132047 THE Idmap patch :-)
includes a --with-idmap=no switch to disable idmap usage if you find
problems.

cosmetic fixes and param aliases to separate winbind from idamp roles.

A temporarily remote idmap winbind compatibility backend.
As I have time I will further change code to not call directly winbind
(partly done but not tested) and a specilized module will be built in place
for the current glue hack.

The patch has been tested locally in my limited time, the patch is simple and
clear and should not reserve problems, if any just disable it.

As usual, comments and fisex are welcome :-)

Simo.
-
Volker Lendecke
f0a32b9c1b 3 things:
* Remove 'ldap del only sam attr' after asking Lars Mueller from SuSE first.
  It is replaced by 'ldap delete dn'

* Fix a typo in docs.

* Document 'set primary group script'. Alexander, could you check the
  file in smbdotconf/ please? Thanks.

Volker
-
Volker Lendecke
353309e2a3 This adds 'ldap delete dn' as the recommended parameter
for the 'ldap del only sam attr' functionality. So
we are compatiple to the current SuSE patches as well
as to TNG... ;-)

Volker
-
Andrew Bartlett
fb680f610c Valgrind found a few memory leaks!
Andrew Bartlett
-
Andrew Bartlett
a7eba37aad Small clenaup patches:
- safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

Andrew Bartlett
-
Volker Lendecke
5eaf9195ee Add paramter 'ldap del only sam attr'.
This patch is heavily based on a patch by SuSE. Thanks
to Guenther Deschner <gd@suse.de> for providing it.

Volker
-
Andrew Bartlett
3465cd6cd9 Clean up the VFS module loading logic by making the parameter an P_LIST,
rather than a runtime-parsed string.

Andrew Bartlett
-
Andrew Tridgell
db3ad0dbe0 fixed a strcat noticed by metze -
Andrew Bartlett
f6497fd639 security=domain and domain logons = yes should be a BDC (of sorts).
Matches 2.2

Andrew Bartlett
-
Andrew Bartlett
4c6a2d8d28 Some further tought on the server role issue - try not to break it compeatly.
Andrew Bartlett
-
Andrew Bartlett
5c1f100590 After 'consultation' with idra, this is how I think the server roles should work...
Andrew Bartlett
-
Simo Sorce
e1431424e7 This is how combination of domain logons and security parameter best combine.
Comments wellcome.


Simo.
-
Martin Pool
b32ae2d83f lp_string: Add note about dodgy StrnCpy use. -
Jeremy Allison
4a739d914b Added limit to number of jobs enumerated. Set to 0 (means no limit).
Yes I will add the docs....
Jeremy.
-
Jelmer Vernooij
f8f2165322 - Rename 'modules = ' to 'preload modules = '
- Add smb_probe_module()
- Add init_modules()
- Call these functions
-
Andrew Bartlett
6f32fa2349 Remove 'unixsam' from the default passdb backends.
The intention is to remove the muliple passdb backends, but we need the
'guest' account to always be there.  If the admin adds the guest account to
(say) LDAP, there will only be one backend required for operation.

This helps remove some nasty behaviours with adding accounts to the system
for both the RPC 'create user' and the SAMSYNC code.  Users 'added' with
an 'add user/machine' script won't magicly appear, and machine accounts
'pre-added' to unix, but not the smbpasswd file will not cause mayhem.

This commit also implements somthing tridge discussed with me, the concept
of 'default' passdb operation pointers - so that each backend does not
need it's own stub funcitons wrapping the default tdb privilages/group
mapping code.

This also removes an implicit 'sid->name' and 'name->sid' mapping from our
own local SID space, to winbind usernames.  When adding mapping for NIS/LDAP
non-sam users in future, we need to be careful.

Andrew Bartlett
-
Jim McDonough
822083f73e rename 'winbind backend' to 'idmap backend'. Put paramter in security section...does this make sense? -
Jim McDonough
35e4448dcb From aliguori@us.ibm.com:
This patch adds the architecture for an IDMAP backend system including a new
smb.conf parameter "winbind backend".  Right now, the only valid value is "tdb"
but I'm currently working on an LDAP backend.
-
Andrew Bartlett
85e9c060ea (only for HEAD at the moment).
Add NTLMv2 support to our client, used when so configured ('client use NTLMv2 =
yes') and only when 'client use spengo = no'.  (A new option to allow the
client and server ends to chose spnego seperatly).

NTLMv2 signing doesn't yet work, and NTLMv2 is not done for NTLMSSP yet.

Also some parinoia checks in our input parsing.

Andrew Bartlett
-
Andrew Bartlett
1a2738937e We now have client-side SMB signing support!
This checking allows us to connect to Microsoft servers the use SMB signing,
within a few restrictions:

 - I've not get the NTLMSSP stuff going - it appears to work, but if you break
the sig - say by writing a zero in it - it still passes...
 - We don't currently verfiy the server's reply
 - It works against one of my test servers, but not the other...

However, it provides an excellent basis to work from.  Enable it with 'client
signing' in your smb.conf.

Doc to come (tomorrow) and this is not for 3.0, till we get it complete.

The CIFS Spec is misleading - the session key (for NTLMv1 at least) is the
standard session key, ie MD4(NT#).

Thanks to jra for the early work on this.

Andrew Bartlett
-
Andrew Bartlett
71f4d8efd3 Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'.  Probably has a similar effect on SWAT.

Also adds '-V' to testparm.

Andrew Bartlett
-
Andrew Bartlett
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
-
Shirish Kalele
9df93b1ffc Add msdfs proxy functionality to HEAD. -
Jeremy Allison
842e08e52a Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
-
Jeremy Allison
ac856fbb96 Added "kernel change notify" boolean to allow easier valgrind testing.
Jeremy.
-
Simo Sorce
e6ae8b4eac finnally put in Alexander parametric pacth -
Tim Potter
be90650674 Make lp_winbind_separator a const string. -
Andrew Bartlett
ab812ada56 Add support for 'restrict anonymous=2' and make the doco give a slight hint
as to what it now does in 3.0.  Needs more work, but better than documenting
the old functionality :-).

As the security benifits of this are nullified by a setting of 'guest ok' on
any share, we might want to put some documentation there too.

Andrew Bartlett
-