1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

2524 Commits

Author SHA1 Message Date
Luke Leighton
474f94f419 attempting to fix "domain user map" up, but it's a bit complicated.
i may simply go for a response in the NetSamLogon returning the
unix username, forcing the NT user to appear to be a unix user,
however even that is fraught with implications.

might just have to go the whole hog and do this tuple thing,
"unix_name + nt_name" always associated together...


issue with api_net_sam_logon, getsam21pwent() being called twice,
the second time overwriting static buffer data (argh) so had to
make a copy.

noticed a nested "become_root()"/"unbecome_root()" which will have
to be tracked down...
-
Luke Leighton
c5ba5fa6fe passdb.c now calls getpwnam() which returns results in a static buffer.
a call _outside_ of this was _also_ calling getpwnam.   the calls to
getsmbpwnam() were therefore overwriting the static buffer.
-
Luke Leighton
4b5bd4e18c pwdb_initialise() in the wrong place: must load smb.conf first. thanks phil. -
Luke Leighton
37a6acf43c missed out endit()s, ta andrej. -
Michael Warfield
12739f0456 Earlier fix for smbmount timing window was the wrong patch.
My bad...  Earlier one was the patch from the CIFS conference that
didn't work, this fixes...
-
Luke Leighton
3257b72c6e moving rpc/rpc.h to after netinet.h -
Luke Leighton
603c5f6df8 another attempt at a fix on connect_serverlist()... -
Luke Leighton
58c0f0a77c builtin alias password API -
Luke Leighton
c0efc35b27 andrej spotted problem with connect_serverlist (starts off assuming
a connection succeeds...).
-
Luke Leighton
e4930f5f48 - 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.
-
Luke Leighton
b95b2b5d44 updated smb.conf - have not done a yodl2xxx. -
Luke Leighton
776abe3fe5 cvs getting it wrong. again. -
Luke Leighton
e717b89840 enabling optimisation switches on some compiler warnings -
Luke Leighton
b1d1c1337c "retired" two modules to preserve their cvs history.
added their replacements, added sam password database API modules
-
Luke Leighton
5d5d7e4de7 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...
-
Andrew Tridgell
21d779bf7d 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.
-
Andrew Tridgell
702263bba5 don't allow ".." in service name when doing "default service"
processing.
-
John Terpstra
8de177b05a Fixed typo. "Browsable is an acronym for browseable. -
Tim Potter
5c0e31982e Now uninstalls man pages from correct source location.
Fix by Andrej Borsenkow <borsenkow.msk@sni.de>
-
Andrew Tridgell
386a3bfd33 make the help links appear in a separate window, so you can read the
docs and do configuration at the same time.
-
Andrew Tridgell
c830d893f1 - 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 :)
-
Andrew Tridgell
d3fa0dd7a8 better layout of password options. -
Andrew Tridgell
ed4d1062b2 install all html docs in yodl help directory -
Andrew Tridgell
98b72722c8 re-ran yodl -
Andrew Tridgell
bfca6e6a9d got rid of a dangerous message command example -
Tim Potter
c44b418d6f Replaced ZERO_STRUCT() with ZERO_STRUCTP() in cli_connect_serverlist().
Fix by Matt Chapman <m.chapman@student.unsw.edu.au>
-
Andrew Tridgell
baa43fb17b updated SWAT README to remove cgi-bin instructions -
Luke Leighton
e4ee653870 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.
-
Luke Leighton
a24f6eb00b 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.
-
Luke Leighton
591c63e3e1 fixing group database issues -
Jeremy Allison
6acb4b68f6 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.
-
Luke Leighton
68342a29a8 LsaLookupNames client call (first used as lookupnames command in rpcclient). -
Herb Lewis
8ec972ba6c added file from 2.0 branch -
Luke Leighton
90a2466431 fixing domain join and domain login problems -
Luke Leighton
06b9100c1c clearer debug comments -
Luke Leighton
6de2b03d1c oops, forgot to rename smbfilegrp to smbunixgrp. -
Luke Leighton
f057b2e7a2 updated from yodl -
Luke Leighton
6c4cf9ea4a added "domain group map" and "local group map" explanations. -
Luke Leighton
53b49b44e1 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.
-
Luke Leighton
2bcc540af8 jean-francois pointed out problem with "lp_domain_role()" code, you
could never be a PDC.
-
Luke Leighton
b67d66a1e9 initialise not initialize... -
Jeremy Allison
252dd8b892 Fixed oplock test path spec bug.
Jeremy.
-
Jeremy Allison
81b9020891 Fixed -Wall -Wshadow warning.
Jeremy.
-
Luke Leighton
403f53d696 uninitialised counter -
Luke Leighton
c89642ff3f yp_prot.h and ypclnt.h correct: ypprot.h and yp_clnt.h wrong... -
Luke Leighton
d502388234 re-added ypprot.h and yp_clnt.h -
Luke Leighton
53339b6389 re-added includes for yp_prot.h and yp_clnt.h -
Luke Leighton
0fdac4b42f get rid of __wait boring warning, caused by rpc/clnt.h -
Luke Leighton
22802195ed cvs being STUPID -
Luke Leighton
30b3f339f8 remove unused variable -