1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

156 Commits

Author SHA1 Message Date
Jeremy Allison
fcbf865162 Fix smbwrapper from global* changes.
Jeremy.
0001-01-01 00:00:00 +00:00
Tim Potter
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
0001-01-01 00:00:00 +00:00
Tim Potter
78013c0ecc Unused file. 0001-01-01 00:00:00 +00:00
Tim Potter
778f5f77a6 Got medieval on another pointless extern. Removed extern struct ipzero
and replaced with two functions:

	void zero_ip(struct in_adder *ip);
	BOOL is_zero_ip(struct in_addr ip);
0001-01-01 00:00:00 +00:00
Jeremy Allison
54c968913d W2K doesn't seem to respond to *#0 names in node status. Ensure name
lookup uses password server parameter when looking for PDCs.
Jeremy.
0001-01-01 00:00:00 +00:00
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
0001-01-01 00:00:00 +00:00
Tim Potter
234943c066 charset_initialise() doesn't exist anymore.
Why don't we build smbwrapper on a build farm machine to spot this sort of
thing earlier?
0001-01-01 00:00:00 +00:00
Simo Sorce
39409a20f6 remove unused function in mangle.c
fix some alloc leaks spotted by andreas moroder.
0001-01-01 00:00:00 +00:00
Tim Potter
2d0922b0ea Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header. 0001-01-01 00:00:00 +00:00
Simo Sorce
a95943fde0 move to SAFE_FREE() 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d1e9fb7778 fixed compilation error in smbw 0001-01-01 00:00:00 +00:00
Gerald Carter
0e4d2384de merge from 2.2 0001-01-01 00:00:00 +00:00
Andrew Tridgell
fe6679dffb convert more code to use XFILE 0001-01-01 00:00:00 +00:00
Andrew Tridgell
f41c3bb80f declare dbf in one spot 0001-01-01 00:00:00 +00:00
Andrew Tridgell
1af8bf34f1 replaced stdio in many parts of samba with a XFILE. XFILE is a cut-down
replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor
limit that we hit with nasty consequences on some systems

I would eventually prefer us to have a configure test to see if we need
to replace stdio, but for now this code needs to be tested widely so
I'm enabling it by default.
0001-01-01 00:00:00 +00:00
Simo Sorce
c53c5eca15 compile fix 0001-01-01 00:00:00 +00:00
Simo Sorce
fa8e55b8b4 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
c41fc06376 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
debb471267 The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
0001-01-01 00:00:00 +00:00
Tim Potter
11a7c5e3d6 Grr - fixed compile error in smbwrapper stuff. 0001-01-01 00:00:00 +00:00
Tim Potter
1e38eef54d Added a caching system to smbsh. Previously access to workgroup or server
directories under /smb generated net share enum or net server enum calls.
For large networks this could result in bad performance.  We now cache these
results and only call net * enums after the cache timeout has exceeded.
0001-01-01 00:00:00 +00:00
Jeremy Allison
9b32b8a8cf To stop people complaining about the mktemp call, move it into lib/util.c. Thanks
to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke
XFS ACL code.
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
33aefc76e8 setup workgroup when found 0001-01-01 00:00:00 +00:00
Tim Potter
24c78fdf5f Fix for no master browser present. 0001-01-01 00:00:00 +00:00
Tim Potter
d7920a670b Compile fix for smbw_dir_add function. 0001-01-01 00:00:00 +00:00
Richard Sharpe
d45e667a74 Needed a callback arg on cli_list ... 0001-01-01 00:00:00 +00:00
Tim Potter
d006e6adca Added extra argument to calls to smbw_share_add() 0001-01-01 00:00:00 +00:00
Richard Sharpe
7f862e387f I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I had
to modifiy any routine that calls it to pass NULL and so forth.

Should have no impact. It compiles OK.
0001-01-01 00:00:00 +00:00
Tim Potter
9255e52624 Return an empty directory for a stat on a share we aren't allowed to
connect to.  This gives a permission denied when a cd is attempted, but
not a permission denied in the directory listing one level up.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
f2be88a873 implemented a much nicer name_status() interface. It now returns a
list of structures rather than the dodgy parsing code we had before

this also gets smbw working correctly with no initial workgroup (using
name_status_find on __MSBROWSE__ returns)
0001-01-01 00:00:00 +00:00
Tim Potter
4d80ee4f41 Added support for SERVICESF shared variable to change configuration file
used in lp_load().
0001-01-01 00:00:00 +00:00
Andrew Tridgell
8f97d59186 added support for browsing the list of workgroups at the top level in
smbw
0001-01-01 00:00:00 +00:00
Tim Potter
600eb0eb00 Fetch authentication info before actually using it. 0001-01-01 00:00:00 +00:00
Tim Potter
644c78d64a Added a authentication hook to smbwrapper which allows a (username,
workgroup, password) tuple to be provided by another function.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
ae80ca637c added -L option 0001-01-01 00:00:00 +00:00
Andrew Tridgell
614fd4119c got smbw to compile again on Linux 0001-01-01 00:00:00 +00:00
Herb Lewis
d97f5d57d0 removed extra arguements from make_nmb_name calls 0001-01-01 00:00:00 +00:00
Andrew Tridgell
453a822a76 first pass at updating head branch to be to be the same as the SAMBA_2_0 branch 0001-01-01 00:00:00 +00:00
Tim Potter
d78224a7d2 Return a (void *)0 instead of NULL in readdir64() wrapper. 0001-01-01 00:00:00 +00:00
Tim Potter
36f9ce7993 Return a #error if no functions could be found to wrap around. 0001-01-01 00:00:00 +00:00
Luke Leighton
6d14db6a6c removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.
0001-01-01 00:00:00 +00:00
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
0001-01-01 00:00:00 +00:00
Luke Leighton
57e0254946 issues spotted by herb. 0001-01-01 00:00:00 +00:00
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...
0001-01-01 00:00:00 +00:00
Andrew Tridgell
05696b4bbf add a error code when failed to get lock 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
Andrew Tridgell
5be3c37f50 fixes for OSF1 compilation 0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00
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?
0001-01-01 00:00:00 +00:00
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.
0001-01-01 00:00:00 +00:00