1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

118 Commits

Author SHA1 Message Date
Tim Potter
d78224a7d2 Return a (void *)0 instead of NULL in readdir64() wrapper. -
Tim Potter
36f9ce7993 Return a #error if no functions could be found to wrap around. -
Luke Leighton
6d14db6a6c removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.
-
Luke Leighton
2a509e9606 - got client code cleartext passwords working again in cli_session_setup.
needed this for some tests.

- removed code that said "if lm password is not encrypted then encrypt both
  lm and nt passwords".  actually it said "if lm password length is not 24
  bytes and we're in security=user mode..."

  it didn't bother to check whether the nt password was NULL or not, and
  doing the encryption inside cli_session_setup is the wrong place.

- checked all instances where cli_session_setup is called with cleartext
  passwords that are expected to then be encrypted (see above) with the
  test "if pwlen != 24...".  there was only one: all the others either
  provide encrypted passwords, do null sessions or use
  cli_establish_connection.

* recommendation: use cli_establish_connection() in smbwrapper/smbw.c
-
Luke Leighton
57e0254946 issues spotted by herb. -
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
05696b4bbf add a error code when failed to get lock -
Jeremy Allison
18ff93a9ab Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.
Tidied up some of the mess (no other word for it). Still doesn't
compile cleanly. There are calls with incorrect parameters that
don't seem to be doing the right thing.

This code still needs surgery :-(.

Jeremy.
-
Andrew Tridgell
5be3c37f50 fixes for OSF1 compilation -
Jeremy Allison
bacd3e9d20 Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.
client/client.c:
client/clitar.c:
include/client.h:
smbwrapper/smbw_dir.c:
smbwrapper/smbw_stat.c:
smbwrapper/smbw.c:
lib/util.c: Converted all use of 'mode' to uint16.
smbd/quotas.c: Fixed stupid comment bug I put in there :-(.
printing/printing.c: Fix from J.F. to new code.
Jeremy.
-
Andrew Tridgell
e14ca7765a converted smbclient to use clientgen.c rather than clientutil.c
I did this when I saw yet another bug report complaining about
smbclient intermittently missing files. Rather than applying more
patches to smbclient it was better to move to the more robust
clientgen.c code.

The conversion wasn't perfect, I probably lost some features of
smbclient while doing it, but at least smbclient should be consistent
now. It if fails it should _always_ fail rather than giving people the
false impression of a reliable utility.

the tar stuff seems to work, but hasn't had much testing as I never
use it myself. I'm sure someone will find bugs in my conversion of
smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It
now uses clientgen.c exclusively.

smbclient is still quite messy, but at least it doesn't build its own
SMB packets.

I haven't touched smbmount as I never use it. Mike, do you want to
convert smbmount to use clientgen.c?
-
Herb Lewis
86743dfda4 some versions of Irix pass the HAVE__ACL test but don't have acl.h
test for both before including ACL support.
-
Andrew Tridgell
85f639ab2b handle the case of an intermediate binary not loading smbwrapper.so
(for example /usr/bin/man because it is setgid).
-
Andrew Tridgell
2565ccf9de volker was concerned about unique inode numbers and smbsh. This set of
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to
try to provide inode numbers. If it is 0 then use the hash of the
filename as before.
-
Andrew Tridgell
9d863fb168 make sure that apps can't close one of the internal smbw file
descriptors by catching close attempts on those fds and returning
EBADF.
-
Andrew Tridgell
252fe1e701 don't use SMBW_PWD_ENV any more -
Andrew Tridgell
4eb7b5c6a8 fixed problems with PWD - we no longer use the PWD env variable
instead the shared variable area is used.

this fixes problems with /bin/sh under solaris
-
Andrew Tridgell
636182f183 make the shared variable stuff slightly more sophisticated -
Jeremy Allison
50413d0d81 server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstring
(as it is everywhere else).
smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST.
                    Exec users preferred shell is SHELL environment variable is set.
tests/fcntl_lock.c: Added sys/types.h for systems that need this.
Jeremy.
-
Andrew Tridgell
5b7b24d3f9 oops, I ot the return type of putenv() wrong -
Andrew Tridgell
dc08f1a5c9 use putenv() more portably -
Andrew Tridgell
72bce217ef removed setenv(), replaced with smbw_setenv() -
Jeremy Allison
76448d1d82 smbd/nttrans.c smbd/trans2.c: First fixes for NT5.0beta2. That redirector
has some *horrible* bugs !
smbwrapper/shared.c smbwrapper/smbsh.c smbwrapper/smbw.c: Fixed gcc warnings.
Jeremy.
-
Andrew Tridgell
9b249c075e added command line options to smbsh -
Andrew Tridgell
279cbe69ef - don't use env variables for passwords and usernames (yeah!)
- added a shared variable area based on a unlinked open file, and
  implement a general get/set interface to it
- cache hostname lookups and master ip lookups in shared variable area
-
Jeremy Allison
60dc1a4a00 Small tidyups for gcc in 'preen' mode....
Jeremy.
-
Andrew Tridgell
121e321a12 changed some debug levels -
Jeremy Allison
04d79a9ae5 Re-added code to tell the user how many open files they
have. Needed for server diagnosis purposes...
Jeremy.
-
Luke Leighton
aa9dd697d4 tridge, i had to put a #ifdef _STAT_VER_LINUX_OLD round a bit of code
that didn't have _STAT_VER_LINUX_OLD defined.  maybe you want to sort
this out properly...
-
Andrew Tridgell
784b1590c8 smbsh launch program is now in C -
Luke Leighton
e0445419b2 dce/rpc. -
Luke Leighton
62fdeef1b7 dce/rpc -
Andrew Tridgell
91597c12fb - fixed a bunch of warnings and minor errors
- got smbtorture to compile
- removed %D from some of lukes code - Luke, what is %D? it ain't
  portable anyway
-
Andrew Tridgell
349469221a use 1 second resolution calls if possible -
Andrew Tridgell
6121f7c8c2 fixed a problem with fchdir() that broke "cvs -d" in smbsh -
Andrew Tridgell
e5ed0e6f96 added some comments -
Andrew Tridgell
9efbb21f35 don't prototype the acl() functions -
Andrew Tridgell
f374706cbf restore errno after smbw initialisation -
Andrew Tridgell
42765a654f we need realcalls.h in realcalls.c -
Andrew Tridgell
fda52c6fd1 fixed a warning on SunOS -
Andrew Tridgell
d651229ef3 use double for dummy arrays to ensure alignment -
Andrew Tridgell
c506ffa527 fixed fork() on SunOS4 -
Andrew Tridgell
8fc7bc0ee6 - updated docs to say OSF1 works
- more solaris acl fixes
-
Andrew Tridgell
ab5ed686f8 fixed facl() bug for solaris -
Andrew Tridgell
15aa1b52cd fixed __xstat() under linux -
Andrew Tridgell
96fc2856bc return type cleanups for IRIX -
Andrew Tridgell
fd6a59d8ca yet another attempt at making this stuff portable. This time I use
minimal includes in wrapped.c
-
Andrew Tridgell
4ea3f86f99 not needed any more -
Andrew Tridgell
ab49ffe37f possibly use __sys_llseek() -
Andrew Tridgell
1918ea2991 won't need wrapper.h anymore -