1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

835 Commits

Author SHA1 Message Date
Tim Potter
8d26bc3581 Documented -I option to rpcclient.
(This used to be commit 9e64d6973b4a4015a1f0282b11654ed9716786bd)
2002-07-09 19:13:11 +00:00
Gerald Carter
09b2af9a64 fix typo in unix extensions description
(This used to be commit 0e10ba465daada29cf57337fbb929c480bbce488)
2002-07-02 14:17:42 +00:00
Andrew Bartlett
675a108c65 Jelmer has been keeping on top of the typos.
(This used to be commit 1e36b7e9620f616590dd9f4f44384272b62605ff)
2002-06-27 14:23:48 +00:00
Andrew Bartlett
b1fd1177ae We don't use SSL any more...
(from jelmer)

Andrew Bartlett
(This used to be commit f766fc47d405cd2862ab542d851cf0cbf07ed367)
2002-06-27 14:12:30 +00:00
Gerald Carter
b2e088af72 fix typo
(This used to be commit 27bba80c0e36f823e653439a829c285cc0663485)
2002-06-17 03:55:54 +00:00
Andrew Bartlett
e8361a4193 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
(This used to be commit 43fdd20386a45587e7b739f5c48c9cddc5c98da3)
2002-06-09 13:31:23 +00:00
Andrew Bartlett
a3c75aa406 This paragraph is irrelevent and misleading (needs fix for 2.2 as well)
(This used to be commit 3dd7fa7c57bb1c1d47b2c70a0dd4b5f14c1ddeb2)
2002-06-09 13:16:45 +00:00
Andrew Bartlett
20efe2fe6c 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
(This used to be commit cdcfe3671eb7570e15649b77f708e6579055e7bc)
2002-05-25 07:37:44 +00:00
Andrew Bartlett
fac2168b02 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
(This used to be commit 1022a176e5af25872f34147d6f8b38601134915c)
2002-05-24 13:24:58 +00:00
Andrew Bartlett
58e1fe62cc 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
(This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)
2002-05-18 05:52:52 +00:00
Andrew Bartlett
0d26e9f69c 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.
(This used to be commit 64aaec137e39595e6e61b55eb525615683a1393c)
2002-05-17 14:51:55 +00:00
Andrew Bartlett
eed5094264 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
(This used to be commit b04561d3fd3ee732877790fb4193b20ad72a75f8)
2002-05-17 12:42:39 +00:00
Andrew Bartlett
a64932dfc0 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
(This used to be commit 35e909b33870f6c5d8af9398d6f9f816e83e2ca4)
2002-05-17 11:10:34 +00:00
Gerald Carter
7a959e81d4 merging some changes from SAMBA_2_2
(This used to be commit e8ede079b5af4187573f1b8ed0d94b6f03cbbd22)
2002-05-08 15:37:14 +00:00
Gerald Carter
63050a8d16 * merge from SAMBA_2_2
* fix typos
* regenerate pages
(This used to be commit edfafa1d40649101d599859951f7289c1d057cfa)
2002-04-25 02:15:18 +00:00
Gerald Carter
61fec246b6 merge from HEAD
(This used to be commit c72db22a3f2d823b5ac30066ed53f5edb2b69495)
2002-04-16 16:53:07 +00:00
Gerald Carter
eebe9749e0 few fixes and regenerate
(This used to be commit 0ffda9ffad2073a5995ce34fde5c3b5fc4859b90)
2002-04-16 16:52:20 +00:00
Andrew Bartlett
6d239fc97f 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
(This used to be commit 80adf1dbb56cf8bdbfbcc2c8c7b670c0a23c97f8)
2002-04-15 08:50:36 +00:00
Volker Lendecke
492ab172d4 3 branches might become a pain... :-)
Volker
(This used to be commit 8ecfed59a3905c25a708172bf39511a0b7637776)
2002-04-14 12:20:10 +00:00
Volker Lendecke
26152050bb Merge from 2_2.
Volker
(This used to be commit 8973a01f5efa547ed356e27fe1660da732b24cdd)
2002-04-14 12:14:52 +00:00
Andrew Bartlett
35e8d461e9 As always, vance looks after the grammer... :-)
(This used to be commit 206f1158bd059de9bf4290935d131f42e4639f99)
2002-04-13 22:52:28 +00:00
Andrew Bartlett
076ba6981a Doco update from Hasch@t-online.de (Juergen Hasch)
(This used to be commit 1650bc969fbd36a02758fafd9addc66ea715e835)
2002-04-13 10:36:20 +00:00
Andrew Bartlett
a88ff199bc More updates from ctrlsoft. (Jelmer Vernooij <jelmer@nl.linux.org>)
Andrew Bartlett
(This used to be commit 012b3326c40ca0f8f4c7673310d73f695cc4f79b)
2002-04-13 10:32:09 +00:00
Andrew Bartlett
163a855d26 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
(This used to be commit 5275c94cdf0c64f347d4282f47088d084b1a7ea5)
2002-04-13 09:35:52 +00:00
Volker Lendecke
97e7a130e5 Merge from 2.2
(This used to be commit 4b69834eb722c647426d1d1495eb53f8b9b5ba7e)
2002-04-05 17:02:34 +00:00
Gerald Carter
ace98925be * merges from SAMBA_2_2
* addedd "private dir" to smb.conf.5.sgml
* regenerated man pages, HOWTOs, etc...
(This used to be commit 3b29006e35a991d20cda1c92d535ef016099d0d4)
2002-04-01 15:19:05 +00:00
Jim McDonough
825614500c 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.
(This used to be commit 81c5648b3c3179e0dcac7c0cc1a2adc76d922298)
2002-03-28 16:45:42 +00:00
Jim McDonough
f6bab5b0b1 Updated for long flags from popt conversion, as well as version number.
Once again, can someone run docbook on this?
(This used to be commit dc77ad423da65cc1135674085494a28678ec4b6f)
2002-03-27 16:36:24 +00:00
Jim McDonough
bcf6317a6e 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?
(This used to be commit e074f10622329ba6588078f8c640fbc29f536c5b)
2002-03-27 16:02:26 +00:00
Andrew Bartlett
9708356847 Documentation updates.
(This used to be commit 9a9e4e92ae079eb906dcc7123df092f4917b5dad)
2002-03-23 09:30:05 +00:00
Volker Lendecke
7db31acaa2 Same as in 2_2
(This used to be commit 96299b6391512079b53f1593206b6cd7ecaacb2f)
2002-03-08 14:38:54 +00:00
Gerald Carter
6bd2af90cb merge from 2.2 and regenerate
(This used to be commit b1cbc23d82cfca1179d6be1e11b8bea2d0acdc9e)
2002-02-19 16:59:27 +00:00
Gerald Carter
34ab184446 merge from 2.2
(This used to be commit 8b357e6551c3a91aa7017ae8dcf38558f15f1c0b)
2002-02-19 16:47:59 +00:00
Gerald Carter
732f5e8f80 fixes from 2,2
(This used to be commit 46bd77a02a47c26c4981472c8cea09e64c2ef4d2)
2002-02-11 13:49:02 +00:00
Gerald Carter
ebeda264d6 doc merge from 2.2
(This used to be commit 2df8df4cd9b271ac91245bd44d6384483c1a4524)
2002-02-09 14:05:09 +00:00
Gerald Carter
7998c99191 removed several parameters ("client code page", "valid chars",
"code page directory", "character set", et. al.)
(This used to be commit 6ff236249559f8a11381cab9cc1757b26764a39d)
2002-02-04 14:15:29 +00:00
Andrew Bartlett
4cf87fc667 A new simpiler syntax demands a new simpiler HOWTO. (This can all be reverted
if new simpiler syntax was a bad idea...).

Andrew Bartlett
(This used to be commit 717f45ca3ca85ca47f6d7b9379c17480f0bf82e4)
2002-02-03 03:51:01 +00:00
Gerald Carter
8cb4e23ffc merge from 2.2 and regen
(This used to be commit 7b7e4190739bd7df422e3f239fd89373edb97ee5)
2002-02-02 06:08:43 +00:00
Gerald Carter
28a4f3926c merge from 2.2
(This used to be commit a60be0216eb3d0c76f93ec3a3edd861861cb1a4e)
2002-02-02 04:58:57 +00:00
Gerald Carter
37096aa229 make all-docs to make sure everything is up-to-date
(This used to be commit 7235a21ca4f558fbea7e156e891683767dc2cda1)
2002-01-28 17:36:33 +00:00
Gerald Carter
bc06e06d34 merge from 2.2 and regenerate
(This used to be commit 55c53ef08974947cf10a79882b63d6d8e8baad4c)
2002-01-27 05:37:23 +00:00
Gerald Carter
ca12d82eaf merge from 2.2
(This used to be commit 2137c7163475691056fe1701b75128e238520b05)
2002-01-24 17:04:30 +00:00
Andrew Bartlett
84b8eb8fed Vance and his eagle eyes spotted a copy and paste error in my smb.conf updates.
Thanks!

Andrew Bartlett
(This used to be commit 7f7a53e8489f97ced28936252eca322c09b01d61)
2002-01-20 21:56:18 +00:00
Andrew Bartlett
1a74d8d1f0 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.
(This used to be commit ff354c99c585068af6dc1ff35a1f109a806b326b)
2002-01-20 14:30:58 +00:00
Andrew Bartlett
1fb9ccc4e2 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
(This used to be commit 07a21fcd2311d2d9b430b99303e3532a8c1159e4)
2002-01-18 02:37:55 +00:00
Gerald Carter
3469866334 commit some changes for ab, and keep working on the smbgroupedit
manpage.
(This used to be commit a10cdbfbed4e04609f511cbbf976df4b4d391729)
2002-01-11 00:41:27 +00:00
Andrew Bartlett
50fa21fec1 Take a stab at keeping the doco current :-)
(This used to be commit 88b0e670426c216d754716dc6095b673b9645f1a)
2002-01-10 12:32:59 +00:00
Gerald Carter
e54261b82c I think I've finally gotten this straighten out in my tree.
All should be curent now.
(This used to be commit 91662683e3e690fb69f333fadf0f317c53995ba7)
2002-01-08 22:53:58 +00:00
Gerald Carter
a7a73c7ff2 i **really** hate stuck tags in CVS :-( Figured out why
my files were not being checked in sometimes.....

 cvs update -A

cleared all the sticky tages and now I have to recheck some things in.


j-
(This used to be commit 241f4a548d57083b153afafafdd18ed5de5412b7)
2002-01-08 22:49:28 +00:00
Gerald Carter
2689976514 entering placeholders for forthcoming documentation
(This used to be commit 789c1defa47a1efd25efafab2d8a5a51c03b85b4)
2002-01-08 17:55:41 +00:00