1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

640 Commits

Author SHA1 Message Date
Andrew Bartlett
8718e5e7b2 Rework the 'guest account get's RID 501' code again...
This moves it right into the passdb subsystem, where we can do this in
just one (or 2) places.  Due to the fact that this code can be in a tight loop,
I've had to make 'guest account' a 'const' paramater, where % macros cannot be
used.  In any case, if the 'guest account' varies, we are in for some nasty
cases in the other code, so it's useful anyway.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
5f673b7883 large set of updates converting some of the textdocs to SGML/DocBook.
I think these were originally from Jelmer, but I've lost
the original message.

Also had some syntax errors in the manpages (does no one regenerate
after making changes to the SGML source?)

Still have some developer specific docs to add from Jelmer in the next
go around....
0001-01-01 00:00:00 +00:00
Tim Potter
6a4202a105 Updated smbcontrol manpage for new printnotify commands.
Jerry, what's the latest on rebuilding doco from source?  I've no idea
whether this actually compiles or not.
0001-01-01 00:00:00 +00:00
Simo Sorce
cfc03b9257 updates the log level parameter man section
can someone regenerate and commit the other formats?
thanks
0001-01-01 00:00:00 +00:00
Jelmer Vernooij
d234f04a5f Escape ampersand(&) to better comply to SGML syntax 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f3a0842e30 fixed typo
samba-patches 970
0001-01-01 00:00:00 +00:00
Andrew Bartlett
70929a970e Warn about n^2 algorithm with utmp=yes.
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
9e64d6973b Documented -I option to rpcclient. 0001-01-01 00:00:00 +00:00
Gerald Carter
0e10ba465d fix typo in unix extensions description 0001-01-01 00:00:00 +00:00
Andrew Bartlett
1e36b7e962 Jelmer has been keeping on top of the typos. 0001-01-01 00:00:00 +00:00
Andrew Bartlett
f766fc47d4 We don't use SSL any more...
(from jelmer)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
27bba80c0e fix typo 0001-01-01 00:00:00 +00:00
Andrew Bartlett
43fdd20386 Fix up comment on netbios scopes, and remove paragraph about international
charsets, becouse it really don't apply well with Samba 3.0 and unicode.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
3dd7fa7c57 This paragraph is irrelevent and misleading (needs fix for 2.2 as well) 0001-01-01 00:00:00 +00:00
Andrew Bartlett
cdcfe3671e Clean up a few unused functions, add a bit of static etc.
Importantly:

The removal of the silly 'delete user script' behaviour when secuity=domain.

I have left the name the same - as it still does the (previously documented,
but not in smb.conf(5)) sane behaviour of deleting users on request.

When we decide what to do with the 'add user' functionality, we might
rename it.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
1022a176e5 Some grammar fixes picked up from the bugs.debian.org, submitted by
jrv@vanzandt.mv.com

Most of them didn't apply any more, but the bits that did I've commited.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
c28668068b A few things in this commit:
cleanup some of the code in net_rpc_join re const warnings and
fstrings.

Passdb:

Make the %u and %U substituions in passdb work.
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
64aaec137e Make --with-ldapsam 'go away'. This is now a standard, stable, feature
and there is no real reason for it to depend on more than the abilty
to compile the code.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
b04561d3fd This removes --with-ssl from Samba.
This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
35e909b338 Update the doco for the LDAP options in smb.conf, in line with code changes
a little while back.  We might have to look at the migration path for these
options.  (or as --with-ldap has always been 'experimental' we could ignore
it...)

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
e8ede079b5 merging some changes from SAMBA_2_2 0001-01-01 00:00:00 +00:00
Gerald Carter
edfafa1d40 * merge from SAMBA_2_2
* fix typos
* regenerate pages
0001-01-01 00:00:00 +00:00
Gerald Carter
0ffda9ffad few fixes and regenerate 0001-01-01 00:00:00 +00:00
Andrew Bartlett
80adf1dbb5 Another patch from jelmer:
Doco for pdbedit and (ugly, but the best we could come up with) fix
for compiling pdbedit on some non-gcc compilers.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Volker Lendecke
8973a01f5e Merge from 2_2.
Volker
0001-01-01 00:00:00 +00:00
Andrew Bartlett
206f1158bd As always, vance looks after the grammer... :-) 0001-01-01 00:00:00 +00:00
Andrew Bartlett
1650bc969f Doco update from Hasch@t-online.de (Juergen Hasch) 0001-01-01 00:00:00 +00:00
Andrew Bartlett
012b3326c4 More updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)
Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
5275c94cdf Better handling of uid/gid -> RID and RID -> uid/gid code.
All uids and gids must create valid RIDs, becouse other code expects this, and
can't handle the failure case. (ACL code in particular)

Allow admins to adjust the base of the RID algorithm, so avoid clashes with
users brought in from NT (for example).

Put all the algorithm code back in one place, so that this change is global.

Better coping with NULL sid pointers - but it still breaks a lot of stuff.

BONUS: manpage entry for new paramater :-)

counter based rids for normal users in tdbsam is disabled for the timebeing,
idra and I will work out some things here soon I hope.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Volker Lendecke
4b69834eb7 Merge from 2.2 0001-01-01 00:00:00 +00:00
Gerald Carter
3b29006e35 * merges from SAMBA_2_2
* addedd "private dir" to smb.conf.5.sgml
* regenerated man pages, HOWTOs, etc...
0001-01-01 00:00:00 +00:00
Jim McDonough
81c5648b3c Refresh from sgml source. HTML doesn't come out ok on mine, though, so
someone should really re-run it.  It's a newer version of Docbook2X
than Jerry is running...and something we need has changed.
0001-01-01 00:00:00 +00:00
Jim McDonough
dc77ad423d Updated for long flags from popt conversion, as well as version number.
Once again, can someone run docbook on this?
0001-01-01 00:00:00 +00:00
Jim McDonough
e074f10622 Update smbstatus manpage source. Includes corrections of some flags,
addition of long flags from conversion to popt, and update of the version
number.  Can someone with working docbook do the magic to this thing?
0001-01-01 00:00:00 +00:00
Andrew Bartlett
9a9e4e92ae Documentation updates. 0001-01-01 00:00:00 +00:00
Volker Lendecke
96299b6391 Same as in 2_2 0001-01-01 00:00:00 +00:00
Gerald Carter
b1cbc23d82 merge from 2.2 and regenerate 0001-01-01 00:00:00 +00:00
Gerald Carter
8b357e6551 merge from 2.2 0001-01-01 00:00:00 +00:00
Gerald Carter
46bd77a02a fixes from 2,2 0001-01-01 00:00:00 +00:00
Gerald Carter
2df8df4cd9 doc merge from 2.2 0001-01-01 00:00:00 +00:00
Gerald Carter
6ff2362495 removed several parameters ("client code page", "valid chars",
"code page directory", "character set", et. al.)
0001-01-01 00:00:00 +00:00
Andrew Bartlett
717f45ca3c A new simpiler syntax demands a new simpiler HOWTO. (This can all be reverted
if new simpiler syntax was a bad idea...).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
7b7e419073 merge from 2.2 and regen 0001-01-01 00:00:00 +00:00
Gerald Carter
a60be0216e merge from 2.2 0001-01-01 00:00:00 +00:00
Gerald Carter
7235a21ca4 make all-docs to make sure everything is up-to-date 0001-01-01 00:00:00 +00:00
Gerald Carter
55c53ef089 merge from 2.2 and regenerate 0001-01-01 00:00:00 +00:00
Gerald Carter
2137c71634 merge from 2.2 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7f7a53e848 Vance and his eagle eyes spotted a copy and paste error in my smb.conf updates.
Thanks!

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ff354c99c5 This is another *BIG* change...
Samba now features a pluggable passdb interface, along the same lines as the
one in use in the auth subsystem.  In this case, only one backend may be active
at a time by the 'normal' interface, and only one backend per passdb_context is
permitted outside that.

This pluggable interface is designed to allow any number of passdb backends to
be compiled in, with the selection at runtime.  The 'passdb backend' paramater
has been created (and documented!) to support this.

As such, configure has been modfied to allow (for example) --with-ldap and the
old smbpasswd to be selected at the same time.

This patch also introduces two new backends:  smbpasswd_nua and tdbsam_nua.
These two backends accept 'non unix accounts', where the user does *not* exist
in /etc/passwd.  These accounts' don't have UIDs in the unix sense, but to
avoid conflicts in the algroitmic mapping of RIDs, they use the values
specified in the 'non unix account range' paramter - in the same way as the
winbind ranges are specifed.

While I was at it, I cleaned up some of the code in pdb_tdb (code copied
directly from smbpasswd and not really considered properly).  Most of this was
to do with % macro expansion on stored data.  It isn't easy to get the macros
into the tdb, and the first password change will 'expand' them.  tdbsam needs
to use a similar system to pdb_ldap in this regard.

This patch only makes minor adjustments to pdb_nisplus and pdb_ldap, becouse I
don't have the test facilities for these.  I plan to incoroprate at least
pdb_ldap into this scheme after consultation with Jerry.

Each (converted) passdb module now no longer has any 'static' variables, and
only exports 1 init function outside its .c file.

The non-unix-account support in this patch has been proven!  It is now possible
to join a win2k machine to a Samba PDC without an account in /etc/passwd!

Other changes:

Minor interface adjustments:
pdb_delete_sam_account() now takes a SAM_ACCOUNT, not a char*.

pdb_update_sam_account() no longer takes the 'override' argument that was being
ignored so often (every other passdb backend).  Extra checks have been added in
some places.

Minor code changes:
smbpasswd no longer attempts to initialise the passdb at startup, this is
now done on first use.

pdbedit has lost some of its 'machine account' logic, as this behaviour is now
controlled by the passdb subsystem directly.

The samr subsystem no longer calls 'local password change', but does the pdb
interactions directly.  This allow the ACB_ flags specifed to be transferred
direct to the backend, without interference.

Doco:

I've updated the doco to reflect some of the changes, and removed some paramters
no longer applicable to HEAD.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
07a21fcd23 This is the 'winbind default domain' patch from Alexander Bokovoy
<a.bokovoy@sam-solutions.net>.

The idea is the domain\username is rather harsh for unix systems - people don't
expect to have to FTP, SSH and (in particular) e-mail with a username like
that.

This 'corrects' that - but is not without its own problems.

As you can see from the changes to files like username.c and wb_client.c (smbd's
winbind client code) a lot of assumptions are made in a lot of places about
lp_winbind_seperator determining a users's status as a domain or local user.

The main change I will shortly be making is to investigate and kill off
winbind_initgroups() - as far as I know it was a workaround for an old bug in
winbind itself (and a bug in RH 5.2) and should no longer be relevent.

I am also going to move to using the 'winbind uid' and 'winbind gid' paramaters
to determine a user/groups's 'local' status, rather than the presence of the
seperator.

As such, this functionality is recommended for servers providing unix services,
but is currently less than optimal for windows clients.

(TODO: remove all references to lp_winbind_seperator() and
lp_winbind_use_default_domain() from smbd)

Andrew Bartlett
0001-01-01 00:00:00 +00:00