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

1174 Commits

Author SHA1 Message Date
Jeremy Allison
13c9823eb1 Removed NFS quotas code for Solaris as Alan wants to re-write it.
Jeremy.
-
Jeremy Allison
3d2c59bfe0 Added NFS quota support for Solaris 5.x from Alan Romeril <a.romeril@ic.ac.uk>.
sun1.samba.org is down at the moment so I can't test the compile on this. I'm
sure Solaris people using quotas will scream if I've meesed anything up :-).
Jeremy.
-
Jeremy Allison
7c718fc85e Bail out early if null passwords and lp_null_passwords not set.
Jeremy.
-
Jeremy Allison
07cee46d1d Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip on
connection fail.
Jeremy.
-
Jeremy Allison
109a174de9 Patch from Sean.Batt@anu.edu.au to ensure error reporting is done before
any code that could modify errno is called.
Jeremy.
-
Jeremy Allison
641ada44ae smbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved it
to the places where [f]chmod_acl is called instead.
Jeremy.
-
Jeremy Allison
d43d907c38 Ensure get/set NT ACL code is redirected through vfs.
Jeremy.
-
Jeremy Allison
83f52394e6 smbd/posix_acls.c: Sync up with 2.2 changes - don't return deny ACE's.
smbd/vfs.c: Don't call [f]chmod_acl if no acl support.
Jeremy.
-
Jeremy Allison
38b19fad28 More unused variables.
Jeremy.
-
Jeremy Allison
1391aa6a6f Made the fixes Andrew suggested to asci string code to use srvstr_push.
Jeremy.
-
Jeremy Allison
da79b519e0 Two OS/2 printer fixes from Jim McDonough @ IBM.
First one adds a new info level into the lanman printing and an ioctl to the trans2 code.
    Andrew - this uses ASCII only. It looks ok to me but please check !
Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped.
Jeremy.
-
Jeremy Allison
29414fe0d6 groupdb/mapping.c:
include/proto.h: Fix missing (void) in proto.
rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that
							clash with users.
smbd/posix_acls.c: Ensure default ACE's are sensible.
utils/pdbedit.c: Fix from Simo Sorce.
Jeremy.
-
Jeremy Allison
5b9a88c2d0 Sync up with 2.2 ACL code.
Jeremy.
-
Jean-François Micouleau
7154deb026 first pass of the new group mapping code
J.F.
-
Jeremy Allison
852b9e15ac New POSIX ACL mapping code. Works with UNIX permissions, now for testing
with real ACLs...
Jeremy.
-
Jeremy Allison
80c18d8849 Fix for crash when doing name lookup with a quoted string. Part of
lookup_name was expecting to be able to write to the string. Changed
lookup_name to use const.
Jeremy.
-
Jeremy Allison
49f0e7e714 Added sys_dlopen/sys_dlsym/sys_dlclose.
Jeremy.
-
Andrew Tridgell
e430ded56e fixed some compilation errors with IRIX cc -
Andrew Tridgell
0ea62800ed ADMIN$ is an IPC share, not a disk share -
Jeremy Allison
af364b93d9 lib/system.c (Finally) fixed all insure errors in password caching code. We can't
stop libc routines from calling getpwXXX functions, so caching a pointer to them
is impossible. This new code now makes two copies of the returned struct passwd
struct - one used as a cache, one returned to allow the caller to modify. When
doing a lookup we compare against the cached copy. Code is now easier to understand
also.
smbd/posix_acls.c: If we move the head of the linked list, remember to pass a
reference to that pointer.....
Jeremy.
-
Jeremy Allison
7b97ac289e I'm happy with the mapping for NT getACL, now for NT setACL.
Jeremy.
-
Andrew Tridgell
899ca6e832 don't need to force unicode strings in flg2 anymore -
Andrew Tridgell
1d145a3786 finished the conversion to unicode of the last of the trans2 fns -
Andrew Tridgell
ecc2c35ca0 converted the nttrans code to unicode on the wire -
Andrew Tridgell
70d6b09ac9 converted reply_printqueue -
Andrew Tridgell
0331f93a81 converted reply_search -
Andrew Tridgell
e787fc1daf enable unicode on the wire by default in smbd
the unicode support isn't complete, but it is good enough to be usable
for a test server.
-
Jeremy Allison
0d6c7dedd2 Tidyup return of zero-permissions (map to ACE_DENIED, GENERIC_ALL, Everyone).
Jeremy.
-
Jeremy Allison
45e96777d0 Last tweak (I promise :-). Fallback to returning our SID if we're a domain
member but can't get the domain sid.
Jeremy.
-
Andrew Tridgell
d5b39a1d43 don't need srvstr_push_size or srvstr_pull_size -
Andrew Tridgell
54bde1b3ae converted the smb messaging code to unicode -
Andrew Tridgell
ddee550877 converted a bunch more trans2 calls for unicode. This got quite tricky :( -
Andrew Tridgell
dca433d035 fixed srvstr_push() call -
Andrew Tridgell
fbb3bf12df converted a bunch more fns to unicode -
Jeremy Allison
f1839d469e Fix from Jim McDonough of IBM for using Win9x user manager.
Jeremy.
-
Andrew Tridgell
a6dd666226 simpler and more correct srvstr_push()
it now uses outbuf not inbuf for the unicode flag, which
allows for some server fns to be ascii and means one less
parameter in push calls
-
Andrew Tridgell
1e92d340ce converted reply_tcon() -
Andrew Tridgell
a074600a09 converted a bunch more server functions to unicode -
Andrew Tridgell
e54d379030 added STR_ASCII flag to srvstr_pull() -
Andrew Tridgell
242a6a96d1 - convert chkpath
- devicename in tconx is always ascii
-
Andrew Tridgell
84fc5a7795 converted findnext to unicode -
Andrew Tridgell
b98b1435e9 this patch does a number of things:
- removes SMB_ALIGNMENT. That macro caused all sorts of problems with
  getting unicode aligned right in sub-protocols (such as SMBtrans and
  SMBtrans2). I believe the performance reasons for having
  SMB_ALIGNMENT has gone away with the new variants of the SMB
  protocol anyway, as newer commands tend to have their own internal
  alignment.

- fix the locations where we set smb_flg2 to absolute values. We must
  never do this if we want a hope of coping with unicode.

- add initial support for unicode on the wire in smbd. Currently
  enabled using SMBD_USE_UNICODE environment variable.
-
Jeremy Allison
83133bab0e Added ADMIN$ share as alias for IPC$ except no guest connect. AS/U wants
to do RPC calls down this treeid.
Jeremy.
-
Jeremy Allison
46b12f2275 Moved cruft out of smb.h into ntdomain.h where it belongs. dc struct
now in pipe struct (where used) rather than user_struct.
Secured machine account password changing in srv_netlog_nt.c - ensure
that only the given machine can change its own password. May need to
free this up later for NT admin tools, but this is a fail-safe secure
position for now.
Jeremy.
-
Jeremy Allison
31e0ce310e Remove "BYTE" - we already have uint8 - don't need more conflicts with
system header files...
Jeremy.
-
Jeremy Allison
0be41d5158 Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMR
RPC code to merge with new passdb code.
Currently rpcclient doesn't compile. I'm working on it...
Jeremy.
-
Andrew Tridgell
2c8da0ae22 converted reply_open, reply_open_and_x and reply_fclose -
Andrew Tridgell
7684c1e672 started support for unicode on the wire in smbd. Using a very similar
method to what was used in the client I now have session setup and
tconx working.

Currently this is enabled with SMBD_USE_UNICODE environment
variable. Once the code is complete this will become a smb.conf
option.
-
Jeremy Allison
0cd37c831d Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.
We were reading the endainness in the RPC header and then never propagating
it to the internal parse_structs used to parse the data.
Also removed the "align" argument to prs_init as it was *always* set to
4, and if needed can be set differently on a case by case basis.
Now ready for AS/U testing when Herb gets it set up :-).
Jeremy.
-
Gerald Carter
1d84da779a merge of 'lanman auth' and 'min protocol' from 2.2 -