| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Now makes more sense, at least to my sleep deprived brain.
|
|
|
|
|
|
|
|
|
| |
nmblookup -M -
does.
Also added a -T flag, which forces the translation of IP addresses to
names. Not [yet] the default.
|
|
|
|
|
|
| |
smbd/reply.c: Changed "Error" in level 0 debug message about NT bug to "Warning"
as Samba will continue without it.
Jeremy.
|
|
|
|
|
|
| |
utils/smbpasswd.c: Added load_interfaces() to allow name resolution to work correctly
for multihomed smb.confs.
Jeremy.
|
|
|
|
|
|
|
| |
from Tim Rice.
utils/smbpasswd.c web/swat.c: Added set_auth_parameters() call where needed for OSF1_ENC_SEC.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
All setuid code now resides in the one module lib/util_sec.c.
The interfaces this module exports are :
void gain_root_privilage(void); - Set real/eff/saved uid's to 0.
void gain_root_group_privilage(void); - Set real/eff/saved gid's to 0.
int set_effective_uid(uid_t uid); - Set eff uid *only* to given value.
int set_effective_gid(gid_t gid); - Set eff gid *only* to given value.
BOOL become_user_permanently(uid_t uid, gid_t gid); - Set real/eff/saved uid's and gid's
to uid and gid permanently - with no way back to root.
Most of the quota code now uses these calls (except for a few
special cases).
smbd/chgpasswd.c: Ensured the dochild exits in the fork()'d child.
libsmb/nmblib.c: Fix from Jasper for memory leak.
Jeremy.
|
|
|
|
| |
Jeremy
|
|
|
|
|
|
| |
password a second time would add the user with a potentially random
garbage password.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
changes are bzero -> memset as the compiler on HPUX is very picky about
bzero (probably a strange define).
The significant changes are in configure.in, to fix the HPUX shadow.h
problem and also move the large file support to the correct place.
passdb/pass_check.c: Added includes for KRB5, DCE and AFS if requested in autoconf.
tests/trapdoor.c: Fix to use setresuid and setresgid if defined.
The rest of the changes are bzero -> memset.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
enumerate printers
param/loadparm.c added parameter to lp_dump to limit number of items
dumped. Pulled real dump code into new function
lp_dump_one so it can be called by swat
utils/testparm.c extra parameter added for lp_dump call
web/statuspage.c got rid of extra > being printed when smbd not
running
web/swat.c allow auto loaded printers to be enumerated in
printer page
include/proto.h changed number of parameters in lp_dump and new
function lp_dump_one defined.
|
|
|
|
|
| |
in hosts allow/deny checks.
Jeremy.
|
|
|
|
|
|
|
|
|
| |
HAVE_SETRESGID and HAVE_SETRESGID_DECL defines, based
on the HAVE_SETRESUID checks.
I also updated the places that setresgid was being called
based on HAVE_SETRESUID being defined and made sure *both*
were defined before allowing the call.
Jeremy.
|
|
|
|
|
|
|
|
|
| |
configure.in: Implemented andrej's private and swat file changes and SINIX changes.
client/smbmount.c: Head branch race condition fix.
lib/system.c: Fix compile for OS's that don't have shared mmap.
smbd/dfree.c: Fix compile for STAT_STATVFS64 as well as STAT_STATVFS.
utils/smbpasswd.c: Tidied up error messages.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I have added the 'crap applience' mode code to the 2.0 branch.
This allows smbd in security=server or security=domain mode
to create a UNIX user on the fly if the password server
accepts them but there is no local UNIX user.
It uses two new parameters
add user script
delete user script
and replaces %u with the username.
Note that I have violated my own rules by not yet
documenting this :-). But I intend to, after some
more testing.
It seems ok - but needs more testing.
Jeremy.
|
|
|
|
|
| |
also allow specifying [host hostip] without [configfile]
updated man page
|
|
|
|
|
|
|
| |
HAVE_PUTPRPWNAM is defined in -lsecurity.
<net/route.h> needed to stop compile complaints in <net/if.h>
smbpasswd: Moved SunOS optind/optarg to global scope.
Jeremy
|
|
|
|
|
|
| |
Needed as in the 64 bit file spec new open types are needed on many OS's
to be able to seek past 32bits.
Jeremy.
|
|
|
|
| |
Jeremy.
|
| |
|
| |
|
|
|
|
| |
Now passes strings instead.
|
|
|
|
|
|
| |
doesn't require a new password entry. Sets the 'enable/disable' code
back to being symmetrical.
Jeremy.
|
|
|
|
| |
instead of opening pipes and other horrible stuff.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
should allow us to call a function in swat rather than piping to
smbpasswd.
while doing this I also fixed quite a few "const char *" versus "char *" issues
that cropped up while using const to track down bugs in the code. This
led to changes in several generic functions.
The smbpasswd changes should be correct but they have not been
extensively tested. At least if I have introduced bugs then we should
be able to fix them more easily than before.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
include/smb.h:
param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-).
printing/printing.c: Added J.F.'s latest fix.
rpc_parse/parse_misc.c:
parse_reg.c:
rpcclient/cmd_reg.c:
rpcclient/display.c: SGI compiler signed/unsigned issues.
smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-).
utils/testparm.c: Added extra test.
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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?
|
|
|
|
|
|
|
|
|
| |
param/loadparm.c: Removed "networkstation user login", "domain controller", and "domain sid" parameters.
passdb/passdb.c: Removed "networkstation user login" code and changed bug test code
to only check once for a bad password server. This will stop the
complaints of many "bad login" audit records in NT PDC logs.
utils/smbpasswd.c: Removed check for "domain controller".
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
| |
libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast
and got a reply.
smbd/dfree.c:
smbd/noquotas.c:
smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota
code.
utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat.
Jeremy.
|
| |
|
|
|
|
| |
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
|
| |
smbd/quotas.c:
Added quotas patch for autoconf from Dejan Ilic <svedja@lysator.liu.se>.
printing/printing.c: Filenames with spaces patch from Allan Bjorklund <allan@umich.edu>
utils/nmblookup.c: Fix usage() function.
smbd/reply.c: Split out the security=server and security=domain checks into
check_server_security() and check_domain_security() to aid the
writing of the 'hack' appliance mode invented by John Schimmel.
Jeremy.
|
|
|
|
|
|
|
| |
password change server as anonymous - you don't need to have
logged on as the user to do the password change. Doh ! (Why
didn't *I* think of that one.... :-).
Jeremy.
|
|
|
|
|
|
|
|
|
|
|
| |
know that 'make proto' will ignore them there. The debugparse.h header
file is included in includes.h, and includes.h is included in debugparse.c,
so all of the pieces "see" each other. I've compiled and tested this,
and it does seem to work. It's the same compromise model I used when
adding the ubiqx modules into the system, which is why I put it all into
the same directory.
Chris -)-----
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
current status is "it works". I need to add some syntax error recovery
and a usage message. Basic stuff.
I've also modified Makefile.in. If you want to compile it you'll have to
do a 'make debug2html', as I used smbtorture as a model. We can decide
later if this tool is useful enough to be compiled always.
BTW, a 'make realclean' fails because the bin directory isn't empty.
That's because it doesn't delete optionally compiled files such as
smbtorture and debug2html (and because of the CVS subdirectory, but I
think that's only a problem for developers).
Chris -)-----
|
|
|
|
|
|
|
|
|
|
|
| |
* Debug message filtering.
* I need to add all this to Makefile.in
(If it looks at all strange I'll ask for help.)
If you want to compile debug2html, you'll need to do it by hand until I
make the changes to Makefile.in. Sorry.
Chris -)-----
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
hey, you can see how many connections succeed while the rpctorture
command is running!
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
- handle 0 params in ipc.c
|
|
|
|
|
|
| |
- got smbtorture to compile
- removed %D from some of lukes code - Luke, what is %D? it ain't
portable anyway
|
| |
|
|
|
|
|
|
| |
- cleaned up resolve_name() (split into separate functions for each resolver)
- if can't find local master then use #1B name
- support listing of foreign workgroups in /smb/
|
| |
|
|
|
|
|
|
|
|
|
|
| |
create_new_hashes didn't zero the buffer for the md4hash: nt_lm_owf_gen
did, because jeremy sorted this out a couple of days ago. call
nt_lm_owf_gen instead.
- call SMBOWFencrypt from SMBencrypt and SMBNTencrypt.
- added #ifdef DEBUG_PASSWORD debug password calls.
|