1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

2518 Commits

Author SHA1 Message Date
Luke Leighton
b31c528146 another attempt at a fix on connect_serverlist()...
(This used to be commit 603c5f6df8c525f30d00da912d408b98378ea538)
1998-11-30 16:00:27 +00:00
Luke Leighton
013ff4d6b2 builtin alias password API
(This used to be commit 58c0f0a77c396a6021596c84d4a30b1c9a4b1419)
1998-11-30 15:42:40 +00:00
Luke Leighton
7f63a31062 andrej spotted problem with connect_serverlist (starts off assuming
a connection succeeds...).
(This used to be commit c0efc35b27d50c40bc04bfd9fb1d61ea5d32bde5)
1998-11-30 15:32:15 +00:00
Luke Leighton
31044dd8e6 - adding builtin[alias]db.
- lib/sids.c:

	generate_sam_sid() modified to take a domain name: it now
	generates "DOMAIN_NAME.SID".  reasons:

	1) if you run multiple samba servers on the same machine
	under different netbios names as members of a domain,
	they won't all use the same SID, which is a _big_ mistake
	but it would happen _by default_.

	2) we have (had) a problem with sid_to_string() and string_to_sid()
	which cause SIDs to be incorrectly read.  one of the major
	reasons for *NOT* making this change was so as not to disrupt
	existing users.  but as they will be anyway by this bug,
	we might as well go ahead.

- passdb/smbpass.c:

	wanted to change the meaning of the name in the smbpasswd
	file to an "nt" name not a "unix" name.  this is probably
	not a good idea: reverted this.

- output formatting / bug-fixing in rpcclient query_useraliases code.
(This used to be commit e4930f5f48f8246ceec8add8bf769954a963190c)
1998-11-30 15:08:58 +00:00
Luke Leighton
868b22f5a1 updated smb.conf - have not done a yodl2xxx.
(This used to be commit b95b2b5d44ad9f998a6f422132b854593de20f04)
1998-11-30 15:02:17 +00:00
Luke Leighton
130e971942 cvs getting it wrong. again.
(This used to be commit 776abe3fe52748b9d2939ff77f8a39155894b952)
1998-11-29 20:16:20 +00:00
Luke Leighton
f30539b1b6 enabling optimisation switches on some compiler warnings
(This used to be commit e717b898405fdcd0bb7787394961589aa62cacc3)
1998-11-29 20:08:04 +00:00
Luke Leighton
53373894ac "retired" two modules to preserve their cvs history.
added their replacements, added sam password database API modules
(This used to be commit b1d1c1337c69c6f6bf25ab932a1a6a757e3ea2ae)
1998-11-29 20:06:52 +00:00
Luke Leighton
30038de462 weekend work. user / group database API.
- split sam_passwd and smb_passwd into separate higher-order function tables

- renamed struct smb_passwd's "smb_user" to "unix_user".  added "nt_user"
plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd
password databases to fill in the blank entries that are not obtained
from whatever password database API instance is being used.

NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST
be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c
for the only example outside of the password database APIs i could find.

- added query_useraliases code to rpcclient.

- dealt with some nasty interdependencies involving non-smbd programs
and the password database API.  this is still not satisfactorily
resolved completelely, but it's the best i can do for now.

- #ifdef'd out some password database options so that people don't
mistakenly set them unless they recompile to _use_ those options.

lots of debugging done, it's still not finished.  the unix/NT uid/gid
and user-rid/group-rid issues are better, but not perfect.  the "BUILTIN"
domain is still missing: users cannot be added to "BUILTIN" groups yet,
as we only have an "alias" db API and a "group" db API but not "builtin-alias"
db API...
(This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-29 20:03:33 +00:00
Andrew Tridgell
534e6a2e1b removed include of net/route.h because it prevents compilation under
SCO 3.2 (including it also requires lots of streams stuff, making it a
total mess).

If this causes problems on some other platform then please add a
comment stating what platform and why the include is needed so we can
work out how to test for it properly.
(This used to be commit 21d779bf7def71d5d9c899eabbb6a110860bd8e2)
1998-11-29 09:29:24 +00:00
Andrew Tridgell
6192feac17 don't allow ".." in service name when doing "default service"
processing.
(This used to be commit 702263bba555a1d7c7999d40e5789b7e920dbce4)
1998-11-29 06:23:16 +00:00
John Terpstra
2675fa4708 Fixed typo. "Browsable is an acronym for browseable.
(This used to be commit 8de177b05a1043d4416e8f673e499cd403bb3522)
1998-11-28 03:01:32 +00:00
Tim Potter
9ebe82cd5c Now uninstalls man pages from correct source location.
Fix by Andrej Borsenkow <borsenkow.msk@sni.de>
(This used to be commit 5c0e31982e8eb1c93bc77925e59be65798f2dbad)
1998-11-27 21:32:08 +00:00
Andrew Tridgell
b90966d85b make the help links appear in a separate window, so you can read the
docs and do configuration at the same time.
(This used to be commit 386a3bfd337f4b248f6c88b9c98b9d6471cc9b25)
1998-11-27 06:36:56 +00:00
Andrew Tridgell
270edc929f - removed smb.conf.5.html as it now comes as part of htmldocs
- changed swat welcome screen to have links to all Samba html docs instead
  of just singing the praises of swat :)
(This used to be commit c830d893f1f7eb176dc1fb7de0a4efc748fd1423)
1998-11-27 06:11:03 +00:00
Andrew Tridgell
89058f8bc1 better layout of password options.
(This used to be commit d3fa0dd7a80a8d20e2d9db0b5ca24988059280fb)
1998-11-27 06:09:25 +00:00
Andrew Tridgell
05045be470 install all html docs in yodl help directory
(This used to be commit ed4d1062b2655d59f6904344e708aa53af235ad5)
1998-11-27 06:09:03 +00:00
Andrew Tridgell
8e18009a19 re-ran yodl
(This used to be commit 98b72722c8c221047d890f9b7b1d51f16fdac705)
1998-11-27 06:04:28 +00:00
Andrew Tridgell
1de47e3298 got rid of a dangerous message command example
(This used to be commit bfca6e6a9d06742ea4ef36f1faac57eb0419b2d6)
1998-11-27 05:15:55 +00:00
Tim Potter
b70700dba2 Replaced ZERO_STRUCT() with ZERO_STRUCTP() in cli_connect_serverlist().
Fix by Matt Chapman <m.chapman@student.unsw.edu.au>
(This used to be commit c44b418d6fd16a257af21f6b5b29b1cdf26015b7)
1998-11-26 06:35:25 +00:00
Andrew Tridgell
6ff1453ee1 updated SWAT README to remove cgi-bin instructions
(This used to be commit baa43fb17b04b7945456514e01682e5dca5dfe99)
1998-11-26 04:18:11 +00:00
Luke Leighton
b20fc00464 we have a problem: resolution of "Primary Group RID" which we assumed
would only be a domain group rid.  it can also be a local group rid,
which causes us problems in attempting to turn a unix gid into the
correct rid (domain group or local group).

sooo.... the fix is _in_ there, we just can't use it because it causes
link / knock-on problems in nmbd.
(This used to be commit e4ee6538709c33000774eb1676608f2dd67d5a30)
1998-11-26 00:48:31 +00:00
Luke Leighton
5ebcdbae9b yeehaah got users to be included in S-1-5-xxx-yyy-zzz's local groups.
now need search capability on S-1-5-20, which will need argh, a
"group database API" on S-1-5-20, and the ability to add BUILTIN\Admins
etc to "local group map" argh.
(This used to be commit a24f6eb00ba7486479cbcf7fadf5456521c56179)
1998-11-25 23:54:30 +00:00
Luke Leighton
9a0cb06b24 fixing group database issues
(This used to be commit 591c63e3e1e3201ddcd7582585b652fb848d80ca)
1998-11-25 23:11:25 +00:00
Jeremy Allison
bfc38ff872 Makefile.in: Added maintainer mode fixes.
aclocal.m4: Added AC_LIBTESTFUNC.
configure.in: Fixed -lsecurity -lsec problems.
client.c: dos_ fixes.
groupdb/aliasunix.c: Dead code removal.
include/includes.h: Added default PRINTCAP_NAME.
lib/genrand.c: dos_ fixes.
lib/replace.c: Added strtoul.
lib/system.c: dos_ fixes.
lib/util.c: dos_ fixes.
lib/util_sid.c: Signed/unsigned fixes.
lib/util_str.c: removed bad const.
locking/locking_slow.c: dos_ fixes.
printing/printing.c: dos_ fixes.
rpc_server/srv_samr.c: Dead code removal.
rpc_server/srv_sid.c: global_myworkgroup defined with wrong size AGAIN !
smbd/dir.c: dos_ fixes.
smbd/open.c: dos_ fixes.
smbd/oplock.c: dos_ fixes.
smbd/reply.c smbd/server.c smbd/service.c smbd/uid.c: dos_ fixes.

Jeremy.
(This used to be commit 6acb4b68f68d516e2ac3c47e500f5600d653435e)
1998-11-25 21:17:20 +00:00
Luke Leighton
59d4087160 LsaLookupNames client call (first used as lookupnames command in rpcclient).
(This used to be commit 68342a29a892e515cf2b22d759476d61944bcd59)
1998-11-25 19:57:04 +00:00
Herb Lewis
73106d9bae added file from 2.0 branch
(This used to be commit 8ec972ba6c274076b46081502acef256a70d1a38)
1998-11-25 18:11:42 +00:00
Luke Leighton
c9b2f20efc fixing domain join and domain login problems
(This used to be commit 90a24664318da97a6e8cfe4622a8573c0e3cbe5e)
1998-11-25 14:54:23 +00:00
Luke Leighton
9257ab7dbf clearer debug comments
(This used to be commit 06b9100c1c1590bad392a8d9bdd79a6c554a3cac)
1998-11-24 18:58:56 +00:00
Luke Leighton
60dc5d1260 oops, forgot to rename smbfilegrp to smbunixgrp.
(This used to be commit 6de2b03d1c6714d63c6dbe7a417fb442e95ee0d9)
1998-11-24 18:43:59 +00:00
Luke Leighton
a2e3532bf3 updated from yodl
(This used to be commit f057b2e7a2e6d6d1a2e9e24f4bb20d38bf6af9a2)
1998-11-24 17:21:12 +00:00
Luke Leighton
bbe6ced45e added "domain group map" and "local group map" explanations.
(This used to be commit 6c4cf9ea4ac9bc441236d4e823d5fa1e7a487c26)
1998-11-24 17:18:07 +00:00
Luke Leighton
ced486c841 sorting out difference between aliases and groups in the cases where
unix groups are not explicitly mapped.

i.e as a PDC or BDC you can have domain groups, as a member of a domain
you cannot.

as a member of a domain, unmapped unix groups are assumed to be aliases,
and as a PDC or BDC, unmapped unix groups are assumed to be unix groups.

there is _one_ other check needed with aliases to be added: unmapped unix
groups that have the same name as an NT group on the PDC (for which i will
need to write an LsaLookupNames call) should be assumed to be domain groups
on the PDC.
(This used to be commit 53b49b44e13a4ca9818ebc947372b1374831b568)
1998-11-24 16:47:49 +00:00
Luke Leighton
0c9df3c610 jean-francois pointed out problem with "lp_domain_role()" code, you
could never be a PDC.
(This used to be commit 2bcc540af80c37b8032a23d6d0045160a7c40e32)
1998-11-24 14:42:42 +00:00
Luke Leighton
49e158f0c1 initialise not initialize...
(This used to be commit b67d66a1e9d879cd5960380c94422c0af8dedaad)
1998-11-24 14:36:49 +00:00
Jeremy Allison
51b85654e3 Fixed oplock test path spec bug.
Jeremy.
(This used to be commit 252dd8b8929adbdff9917395d4f8caad2d7882b2)
1998-11-24 00:40:27 +00:00
Jeremy Allison
a4cfbedf1e Fixed -Wall -Wshadow warning.
Jeremy.
(This used to be commit 81b90208910528a4ace683f30e39c54d8cfa12b7)
1998-11-23 23:55:33 +00:00
Luke Leighton
83e41392b6 uninitialised counter
(This used to be commit 403f53d696d17f34dd1afc035a72eda792dd20ea)
1998-11-23 23:44:09 +00:00
Luke Leighton
e5d6ffd85d yp_prot.h and ypclnt.h correct: ypprot.h and yp_clnt.h wrong...
(This used to be commit c89642ff3fa0c0bc2bca62304db0282676e0b649)
1998-11-23 23:29:07 +00:00
Luke Leighton
9829ee9726 re-added ypprot.h and yp_clnt.h
(This used to be commit d50238823411f07d5db112843d9a1e3a84c7dbd7)
1998-11-23 23:09:26 +00:00
Luke Leighton
f516cec31a re-added includes for yp_prot.h and yp_clnt.h
(This used to be commit 53339b63897f51913fef183fd3b4565dad2ffad1)
1998-11-23 23:07:38 +00:00
Luke Leighton
d75712e52a get rid of __wait boring warning, caused by rpc/clnt.h
(This used to be commit 0fdac4b42fb55a26cdd73d6d5f4a3017d1b4db46)
1998-11-23 23:02:16 +00:00
Luke Leighton
d73f8e58af cvs being STUPID
(This used to be commit 22802195ed544b6042d791b34e704d608bbdfd84)
1998-11-23 22:45:36 +00:00
Luke Leighton
244c9f70bf remove unused variable
(This used to be commit 30b3f339f8d55c2d3a4cbc380b7f12eb040bf381)
1998-11-23 22:33:08 +00:00
Luke Leighton
5694edcc31 unused variable removed
(This used to be commit 16ac5c89b7417a6aa2596c5c7fbb1fa7542accfd)
1998-11-23 22:21:19 +00:00
Luke Leighton
eab235dd4a cvs being STUPID
(This used to be commit ba78b5932a1ed3f7c07720703b9131234f035689)
1998-11-23 22:16:37 +00:00
Luke Leighton
db24da8b36 cvs is acting wierd.
(This used to be commit 10e4cbd2647eb629b60b0060fa184212a89e54f2)
1998-11-23 22:07:05 +00:00
Luke Leighton
367c7e4ec1 someone had added code to convert rids to rids, assuming that the rids
in the file were gids: they are not.
(This used to be commit 8af860394fa3251a26285c8c96c9e4093346f20b)
1998-11-23 22:04:23 +00:00
Luke Leighton
a5cbb4ab27 remove / add / attempt to stop remove didn't work.
(This used to be commit 82b6292dff38f4e22ee8feab1b54504b95d705fa)
1998-11-23 21:54:19 +00:00
Luke Leighton
4cee58780c unix instance of group database API
(This used to be commit e76f593b3572ac881f1aa1fb3326d8b7169b0078)
1998-11-23 21:51:05 +00:00