kai/samba.git
23 years agodamn. We need root privilages to do semaphore operations even if we
Andrew Tridgell [Wed, 29 Oct 1997 02:59:22 +0000 (02:59 +0000)]
damn. We need root privilages to do semaphore operations even if we
have done the semget() as root.  The problem is that become_root() and
unbecome_root() are so slow!

I've provided two options. The default is to set the semaphores (but
_not_ the shared memory) world writeable so that a become_root() isn't
needed. Otherwise you can define SECURE_SEMAPHORES and pay the
performance penalty.

23 years ago- don't allow locking to initialise twice
Andrew Tridgell [Wed, 29 Oct 1997 02:18:08 +0000 (02:18 +0000)]
- don't allow locking to initialise twice
- check that it is initialised before de-initialising it!

23 years agoclean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
Andrew Tridgell [Wed, 29 Oct 1997 01:59:54 +0000 (01:59 +0000)]
clean up the hash entry code a bit. Got rid of lp_shmem_hash_size()
and made it private to the 2 shmem implementations. Added new
shmops->hash_size() function.

Added code to handle the IPC system limits by looping decreasing the
size of the resources (semaphores and shared memory) that we request
until we get under the system limits, which can be quite low on some
systems!

Added checks that the creator of the IPC objects is root. Otherwise we
would be open to a security hole where someone pre-creates the shared
memory segment and attaches.

23 years agoadded frag field to make_rpc_hdr() function
Luke Leighton [Wed, 29 Oct 1997 01:05:46 +0000 (01:05 +0000)]
added frag field to make_rpc_hdr() function

23 years agobyteorder.h :
Luke Leighton [Wed, 29 Oct 1997 00:04:14 +0000 (00:04 +0000)]
byteorder.h :

added mode for printing debug array data as chars not uint8/16/32s.
only really useful for (uint8) strings or (uint16) unicode strings

lsaparse.c smbparse.c smb.h :

rpc bind and rpc bind ack structures and parsing and creation functions.

ipc.c pipes.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

using rpc bind / bind ack parsing routines instead of incorrect use of
api_LsarpcTNP1 function.

ntclient.c :

creation of do_rpc_bind() function.

THAT'S IT, FOLKS!

23 years agoUtility code to produce printer definition files from MS files.
Jeremy Allison [Tue, 28 Oct 1997 23:58:31 +0000 (23:58 +0000)]
Utility code to produce printer definition files from MS files.
Part of code to support Windows 95 automated printer driver installs.
Written by Jean-Francois Micouleau <Jean-Francois.Micouleau@utc.fr>.

23 years agoAdded "printer driver location", "printer driver file" parameters.
Jeremy Allison [Tue, 28 Oct 1997 19:54:49 +0000 (19:54 +0000)]
Added "printer driver location", "printer driver file" parameters.
Jeremy.

23 years agoAdding PRINTER_DRIVER.txt docs.
Jeremy Allison [Tue, 28 Oct 1997 19:35:24 +0000 (19:35 +0000)]
Adding PRINTER_DRIVER.txt docs.

23 years agoAdding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
Jeremy Allison [Tue, 28 Oct 1997 19:32:59 +0000 (19:32 +0000)]
Adding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.
New program, make_printerdef, plus two new parameters :

[global] "printer driver file"
[local] "printer driver location"

Jeremy.

23 years agomention that Perl is required for build scripts
Herb Lewis [Tue, 28 Oct 1997 19:21:26 +0000 (19:21 +0000)]
mention that Perl is required for build scripts

23 years agoremoving Makefile and adding perl script to generate it form source tree
Herb Lewis [Tue, 28 Oct 1997 19:20:07 +0000 (19:20 +0000)]
removing Makefile and adding perl script to generate it form source tree

23 years agotired of updating Makefile - use perl script to generate it now
Herb Lewis [Tue, 28 Oct 1997 19:18:52 +0000 (19:18 +0000)]
tired of updating Makefile - use perl script to generate it now

23 years agoAdding printer drivers patch from Jean-Francois Micouleau
Jeremy Allison [Tue, 28 Oct 1997 18:15:48 +0000 (18:15 +0000)]
Adding printer drivers patch from Jean-Francois Micouleau
<Jean-Francois.Micouleau@utc.fr>. We can expand on this after
we have tested it out.
Jeremy.

23 years agosmb.h smbparse.c pipeutil.c :
Luke Leighton [Tue, 28 Oct 1997 17:54:10 +0000 (17:54 +0000)]
smb.h smbparse.c pipeutil.c :

added bind and bind ack structures and parsing functions.  restructured
rpc header stuff.

ntclient.c pipenetlog.c pipentlsa.c pipesrvsvc.c :

having to deal with restructuring above.

23 years agoenable sysv ipc and fast share modes on OSF1
Andrew Tridgell [Tue, 28 Oct 1997 15:07:01 +0000 (15:07 +0000)]
enable sysv ipc and fast share modes on OSF1

23 years agoneed includes.h to compile on some systems (eg. sunos4)
Andrew Tridgell [Tue, 28 Oct 1997 15:02:15 +0000 (15:02 +0000)]
need includes.h to compile on some systems (eg. sunos4)

23 years agofix for broken sunos4 includes (doesn't have SHM_R)
Andrew Tridgell [Tue, 28 Oct 1997 14:59:06 +0000 (14:59 +0000)]
fix for broken sunos4 includes (doesn't have SHM_R)

23 years agofix cast
Andrew Tridgell [Tue, 28 Oct 1997 14:55:47 +0000 (14:55 +0000)]
fix cast

23 years agodefine semun for broken solaris sysvipc
Andrew Tridgell [Tue, 28 Oct 1997 14:55:22 +0000 (14:55 +0000)]
define semun for broken solaris sysvipc

23 years agolower the default hash size if SEMMSL isn't defined
Andrew Tridgell [Tue, 28 Oct 1997 14:40:31 +0000 (14:40 +0000)]
lower the default hash size if SEMMSL isn't defined

23 years agodefine USE_SYSV_IPC on sunos4
Andrew Tridgell [Tue, 28 Oct 1997 14:25:26 +0000 (14:25 +0000)]
define USE_SYSV_IPC on sunos4

23 years agodefine USE_SYSV_IPC on a bunch more systems.
Andrew Tridgell [Tue, 28 Oct 1997 14:22:50 +0000 (14:22 +0000)]
define USE_SYSV_IPC on a bunch more systems.

Needs some testing though.

23 years agoSYSV IPC implementation of fast share modes.
Andrew Tridgell [Tue, 28 Oct 1997 14:19:54 +0000 (14:19 +0000)]
SYSV IPC implementation of fast share modes.

It will try sysv IPC first, then if that fails it will try mmap(),
then after that it will try share files.

I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the
moment. Probably a lot more could have it defined. In fact, the vast
majority of systems support it. Need autoconf again :-)

It should actually be faster than the mmap() version, and doesn't need
any lock files. This means the problem of the share mem file being on
a NFS drive will be gone.

23 years agorefuse pathworks type R connect (patch from Stephen Tweedie)
Andrew Tridgell [Tue, 28 Oct 1997 06:07:07 +0000 (06:07 +0000)]
refuse pathworks type R connect (patch from Stephen Tweedie)

23 years agoadded LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.
Luke Leighton [Mon, 27 Oct 1997 19:00:38 +0000 (19:00 +0000)]
added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h).  implemented in smbclient.
updated Query Info Policy to report domain name and domain sid for info levels
3 and 5.
fixed bug in dom_sid_to_string (idauths decoded wrong).  fixed bug in DOM_SID:
subauths are 32 bit not 16.

23 years agoFixed bug where we are a WINS server but not a domain master
Jeremy Allison [Mon, 27 Oct 1997 18:28:06 +0000 (18:28 +0000)]
Fixed bug where we are a WINS server but not a domain master
browser. We were doing a name query instead of a name status.
Jeremy.

23 years agoFixed ntclient.c so it would compile.
Jeremy Allison [Mon, 27 Oct 1997 18:07:36 +0000 (18:07 +0000)]
Fixed ntclient.c so it would compile.
Jeremy.

23 years agopreparing for release of 1.9.18alpha6
Samba Release Account [Mon, 27 Oct 1997 17:18:51 +0000 (17:18 +0000)]
preparing for release of 1.9.18alpha6

23 years agospelling mistake
Samba Release Account [Mon, 27 Oct 1997 17:18:35 +0000 (17:18 +0000)]
spelling mistake

23 years agoupdated to indicate reported success with NT 3.51 as well as NT 4.0
Luke Leighton [Mon, 27 Oct 1997 17:12:57 +0000 (17:12 +0000)]
updated to indicate reported success with NT 3.51 as well as NT 4.0

23 years agoupdated header to 1.9.18alpha6
Samba Release Account [Mon, 27 Oct 1997 17:09:46 +0000 (17:09 +0000)]
updated header to 1.9.18alpha6

23 years agoadded LSA Query Info Policy.
Luke Leighton [Mon, 27 Oct 1997 17:04:15 +0000 (17:04 +0000)]
added LSA Query Info Policy.
fixed a problem with byte ordering (doing an SIVAL of the setup parameters
which was _also_ being done in the creation of the SMB header.  oops).

23 years agochecks against file handle in api_fd_reply(). i don't know what error
Luke Leighton [Mon, 27 Oct 1997 16:14:29 +0000 (16:14 +0000)]
checks against file handle in api_fd_reply().  i don't know what error
message should be returned, so i just let it fall through to sending an
"api_unsupported"

23 years agodocumented LSA Open Policy Query.
Luke Leighton [Mon, 27 Oct 1997 15:10:17 +0000 (15:10 +0000)]
documented LSA Open Policy Query.

23 years agoadded LSA Open Policy query and response processing to smbclient
Luke Leighton [Mon, 27 Oct 1997 15:09:23 +0000 (15:09 +0000)]
added LSA Open Policy query and response processing to smbclient

23 years agochange the default file permissions on the SHARE_MEM_FILE* to
Andrew Tridgell [Mon, 27 Oct 1997 14:27:17 +0000 (14:27 +0000)]
change the default file permissions on the SHARE_MEM_FILE* to
0644. smbstatus now gets only read permission on the share files and
does no locking.

also get rid of some unnecessary umask(0) calls. smbd always runs with
umask(0)

23 years agoalso disable read prediction in 1.9.18
Andrew Tridgell [Mon, 27 Oct 1997 13:38:07 +0000 (13:38 +0000)]
also disable read prediction in 1.9.18

23 years agoFixed 2 oplock bugs:
Andrew Tridgell [Mon, 27 Oct 1997 12:02:34 +0000 (12:02 +0000)]
Fixed 2 oplock bugs:

1) the oplock macros in smb.h used | where they should have used
&. This means that smbd thought that all clients were always
requesting oplocks. This would have _really_ confused smbclient
and smbfs when they started receiving async oplock break requests when
they don't even know what an oplock is!

2) an oplock break request from a client can be embedded in a normal
lockingX request, and will be if the client has batched any lock
requests internally. The smbd code assumed that all oplock break
requests had num_locks==num_ulocks==0 which is not true. The only
thing special about a oplock break request with
num_locks==num_ulocks==0 is that no reply is sent. Otherwise it is
processed as a normal locking request in addition to the oplock break
processing.

These two fixes get the MS mail system in Win98 working on a Samba
1.9.18 network drive.

Andrew

23 years agoadded mention of compile-time experimentational NT Domain code.
Luke Leighton [Mon, 27 Oct 1997 11:11:41 +0000 (11:11 +0000)]
added mention of compile-time experimentational NT Domain code.

23 years agohooray. hooray some more. hooray a lot. got the client-side working.
Luke Leighton [Sun, 26 Oct 1997 18:42:47 +0000 (18:42 +0000)]
hooray.  hooray some more.  hooray a lot.  got the client-side working.

Q/R LSA_REQ_CHAL; Q/R LSA_AUTH2; Q/R LSA_SAMLOGON; Q/R LSA_SAMLOGOFF.
the last (non-essential right now) bit is the LSA_SRV_PWSET.

the next stage is to do LSA_OPENPOLICY; add the pipe binds (missing right
now); then we can test against an NT Server.

23 years agoadded -U option to nmblookup. This is similar to -B except that it
Andrew Tridgell [Sun, 26 Oct 1997 07:50:28 +0000 (07:50 +0000)]
added -U option to nmblookup. This is similar to -B except that it
forces the client to send a unicast instead of a broadcast netbios
packet. This is useful for diagnostics.

23 years agofix some casting errors in smbencrypt and some multiply-defined errors
Andrew Tridgell [Sun, 26 Oct 1997 07:45:36 +0000 (07:45 +0000)]
fix some casting errors in smbencrypt and some multiply-defined errors
in clientutil.c (Luke, you can't just copy a global variable
declaration from one file to another, you need to declare one of them
extern)

23 years agoThe browse synchronisation code in nmbsync.c now uses the clientgen.c
Andrew Tridgell [Sun, 26 Oct 1997 07:32:02 +0000 (07:32 +0000)]
The browse synchronisation code in nmbsync.c now uses the clientgen.c
code, which means we don't have to link with a fake getpass routine
and we don't have a whole pile of global variables that really have
nothing to do with nmbd and were there to keep the client code happy.

The code should function identically to what it did before (hopefully
it was correct)

The only thing that now uses the horrible clientutil.c code is
smbclient.

23 years agopreparing for release of 1.9.18alpha5
Samba Release Account [Sat, 25 Oct 1997 19:13:07 +0000 (19:13 +0000)]
preparing for release of 1.9.18alpha5

23 years agoupdated to describe smbclient work recently done.
Luke Leighton [Sat, 25 Oct 1997 18:13:04 +0000 (18:13 +0000)]
updated to describe smbclient work recently done.

23 years agolatest version
Luke Leighton [Sat, 25 Oct 1997 17:59:01 +0000 (17:59 +0000)]
latest version

23 years agooops!
Luke Leighton [Sat, 25 Oct 1997 17:58:53 +0000 (17:58 +0000)]
oops!

23 years agoadded correct client-side credential generation / checking to the LSA SAM
Luke Leighton [Sat, 25 Oct 1997 17:38:37 +0000 (17:38 +0000)]
added correct client-side credential generation / checking to the LSA SAM
Logon query.  i think i even got the client-side checking of the response
credentials right!

23 years agogot the SAM logon request generated, and received a SAM logon response back.
Luke Leighton [Sat, 25 Oct 1997 15:49:27 +0000 (15:49 +0000)]
got the SAM logon request generated, and received a SAM logon response back.
YEAH!

need to add:

- client-side credential calculation
- client-side parsing of the SAM logon response.

23 years agosam logon query creation functions. written twice because i deleted it.
Luke Leighton [Sat, 25 Oct 1997 13:15:52 +0000 (13:15 +0000)]
sam logon query creation functions.  written twice because i deleted it.

23 years agoMakefile :
Luke Leighton [Sat, 25 Oct 1997 10:58:18 +0000 (10:58 +0000)]
Makefile :

adding bits for new nt domain code

byteorder.h :

trying to get macros right, and not to crash on SUNOS5...

client.c :

added #ifdef NTDOMAIN, and created do_nt_login() function.  don't
want to have to recompile client.c unless absolutely necessary.

credentials.c :

moved deal_with_creds() [possibly inappropriately] into credentials.c

ipc.c reply.c server.c uid.c :

attempting to make (un)become_root() functions calleable from smbclient.
this is a little tricky: smbclient might have to be another setuid
root program, immediately setuid'ing to non-root, so that we can
reset-uid to root to get at the smbpasswd file.  or, have a secure
pipe mechanism to smbd to grab smbpasswd entries.  or the like.

smbdes.c smbencrypt.c :

created a function to generate lm and nt owf hashes.

lsaparse.c ntclient.c smbparse.c :

added nt client LSA_AUTH2 code.  it works, too!

pipenetlog.c pipentlsa.c pipesrvsvc.c :

simplification.  code-shuffling.  getting that damn offset right
for the opcode in RPC_HDR.

smb.h :

changed dcinfo xxx_creds to DOM_CRED structures instead of DOM_CHAL.
we might need to store the server times as well.

proto.h :

the usual.

23 years agoupdate SGI build files to latest source
Herb Lewis [Fri, 24 Oct 1997 18:41:08 +0000 (18:41 +0000)]
update SGI build files to latest source

23 years agopreparing for release of 1.9.18alpha4
Samba Release Account [Fri, 24 Oct 1997 14:40:37 +0000 (14:40 +0000)]
preparing for release of 1.9.18alpha4

23 years agopreparing for release of samba-1.9.18alpha4
Samba Release Account [Fri, 24 Oct 1997 14:39:28 +0000 (14:39 +0000)]
preparing for release of samba-1.9.18alpha4

23 years agoupdated to reflect the current state of play:
Luke Leighton [Fri, 24 Oct 1997 14:36:10 +0000 (14:36 +0000)]
updated to reflect the current state of play:

- jeremy's nmbd restructure (wins client / wins server stuff)
- which parameters are documented in smb.conf and which aren't
- mentioning the new smbclient work-in-progress

23 years agodefault server_name if NIS server is unavailable should be the local
Luke Leighton [Fri, 24 Oct 1997 13:58:21 +0000 (13:58 +0000)]
default server_name if NIS server is unavailable should be the local
machine, not a NULL string.

23 years agonmblib.c :
Luke Leighton [Fri, 24 Oct 1997 13:51:17 +0000 (13:51 +0000)]
nmblib.c :

adding some debug info

pipenetlog.c pipentlsa.c pipesrvsvc.c :

using unistrn2 instead of unistr2 in the SAM logon username.
wrong offset for command in request (use "reserved" field
not cancel_count.  AGH i'll get there)

23 years agonterr.c :
Luke Leighton [Fri, 24 Oct 1997 13:15:34 +0000 (13:15 +0000)]
nterr.c :

added a structure that wraps nt errors as strings and enums, so we
can do a smb_nt_error() function.

Makefile ntclient.c :

added ntclient.c, broken out nt domain stuff into a separate file.
getting fed up of compile-times and size of client.c.

fixed the do_lsa_req_chal() function.  made it read the response,
and return the challenge credentials received from the server.

next stop: do_lsa_auth_2().

client.c :

removed nt domain logon functions into a separate file.

pipenetlog.c pipentlsa.c pipesrvsvc.c smbparse.c :

i'd broken the offsets of the RPC_HDR while trying to sort out the
nt client code.  fixed it again.  added some robustness stuff.

util.c :

the unistrn2() function was null-terminating the string at one
character too many.

23 years agoBig change to make nmbd code more readable/understandable.
Jeremy Allison [Thu, 23 Oct 1997 22:30:57 +0000 (22:30 +0000)]
Big change to make nmbd code more readable/understandable.

Main change is removal of find_name_search() confusion.
This has been replaced with find_name_on_subnet() which
makes it explicit what is being searched.

Also changed wins_subnet to be wins_client_subnet in
preparation for splitting the wins subnet into client
and server pieces.

This is a big nmbd change and I'd appreciate any
bug reports.

Specific changes follow :

asyncdns.c:
     Removed wins entry from add_netbios_entry(). This is now
     explicit in the subnet_record parameter.

interface.c:
     iface_bcast(), iface_nmask(), iface_ip() return the
     default interface if none can be found. Made this
     behavior explicit - some code in nmbd incorrectly
     depended upon this (reply_name_status() for instance).

nameannounce.c:
     find_name_search changes to find_name_on_subnet.

namebrowse.c:
     wins_subnet renamed to wins_client_subnet.

namedbname.c:
     find_name_search removed. find_name_on_subnet added.
     add_netbios_entry - wins parameter removed.

namedbsubnet.c:
     find_req_subnet removed - not explicit enough.

nameelect.c:
     wins_subnet renamed to wins_client_subnet.

namepacket.c:
     listening() simplified.

nameresp.c:
     wins_subnet renamed to wins_client_subnet.

nameserv.c:
     find_name_search moved to find_name_on_subnet.

nameserv.h:
     FIND_XXX  -> changed to FIND_SELF_NAME, FIND_ANY_NAME.

nameservreply.c:
     find_name_search moved to find_name_on_subnet.
     Debug entries changed.

nameservresp.c:
     wins_subnet renamed to wins_client_subnet.

namework.c:
     wins_subnet renamed to wins_client_subnet.

nmbd.c:
     wins parameter removed from add_netbios_entry.

nmbsync:
     wins_subnet renamed to wins_client_subnet.

proto.h: The usual.

server.c:
     remove accepted fd from fd_set.

Jeremy (jallison@whistle.com)

23 years agorenamed static cli_setup_pkt() to static cli_setup_packet() because it
Luke Leighton [Thu, 23 Oct 1997 19:27:53 +0000 (19:27 +0000)]
renamed static cli_setup_pkt() to static cli_setup_packet() because it
clashed with the currently-used cli_setup_pkt() in clientutil.c

23 years agocommas in the wrong places...
Luke Leighton [Thu, 23 Oct 1997 19:24:58 +0000 (19:24 +0000)]
commas in the wrong places...

23 years agomissed nmbsync.c when adding setup count and setup pointer arguments to
Luke Leighton [Thu, 23 Oct 1997 17:54:21 +0000 (17:54 +0000)]
missed nmbsync.c when adding setup count and setup pointer arguments to
cli_call_api().  sorting this for jeremy.

there is a discrepancy between the client.c list_servers() and the nmbsync.c
add_info() calls to cli_call_api() - one has an mdrcount of 1024, the other
of zero.

i don't know what difference this makes.

23 years agogeneral sorting out, from crashes generated by do_lsa_req_chal() in client.c
Luke Leighton [Thu, 23 Oct 1997 16:17:07 +0000 (16:17 +0000)]
general sorting out, from crashes generated by do_lsa_req_chal() in client.c

trying to set up the data parameters etc and not understanding what's going on.

in api_netlogTNP, added smb_io_rpc_hdr() call to decode the header received
(and in this instance, generated by do_lsa_req_chal()).  and then noticed
that it's two bytes out.  but i don't know how to do "byte parameters"
and it's not the same format as the LSA_REQCHAL received from nt workstations.

agh!

23 years agomissed one of the files (lsarpc) in the touch and chmod instructions.
Luke Leighton [Thu, 23 Oct 1997 14:36:10 +0000 (14:36 +0000)]
missed one of the files (lsarpc) in the touch and chmod instructions.

23 years agoplaying about, trying to SMBopenX a \PIPE\NETLOGON (should be a SMBopen)
Luke Leighton [Thu, 23 Oct 1997 13:38:46 +0000 (13:38 +0000)]
playing about, trying to SMBopenX a \PIPE\NETLOGON (should be a SMBopen)
and then send a LSA_REQ_CHAL down it.

23 years agoclient.c :
Luke Leighton [Wed, 22 Oct 1997 18:37:43 +0000 (18:37 +0000)]
client.c :

send to \PIPE\ not \PIPE\NETLOGON.

ipc.c :

fstring name not being bzero'd caused problems when calling named_pipe().

23 years agoMakefile client.c :
Luke Leighton [Wed, 22 Oct 1997 17:51:02 +0000 (17:51 +0000)]
Makefile client.c :

adding start of undocumented options to do NT domain logons, client-side.
starting with LSA_REQCHAL.

the code here happily crashes smbd: i'll investigate this further... :-)

smbparse.c pipeutil.c lsaparse.c :

moved some of the common make_xxxx() functions out of pipeutil.c
so that the make_xxxx and (smb/lsa)_io_xxxx functions now sit
together.  makes sense, really...

added a make_q_req_chal() function.

restructured make_rpc_reply() and called it make_rpc_hdr().  created
functions create_rpc_reply() and create_rpc_response().

pipenetlog.c pipentlsa.c pipesrvsvc.c

calling new create_rpc_reply() function instead of old make_rpc_reply().

proto.h :

usual.

smb.h:

added enum for RPC_PACKET_TYPE

23 years agoMakefile client.c clientutil.c clitar.c nmbsync.c :
Luke Leighton [Wed, 22 Oct 1997 14:28:19 +0000 (14:28 +0000)]
Makefile client.c clientutil.c clitar.c nmbsync.c :

redid the split that i did a year ago, taking the functions in client.c
out into clientutil.c.  guess what?  we could now do encrypted password
NetServerEnum2 calls in nmbd, if we wanted to.

i can now use cli_call_api() to send to different pipes.  i hope.

pipenetlog.c:

allow adding to users group _and_ to admin group.  if adding to
guest group, don't allow adding to users or admin as well.

smb.h :

added some pipe #defines (\PIPE\NETLOGON \PIPE\srvsvc ...)

proto.h :

usual.

23 years agoloadparm.c :
Luke Leighton [Wed, 22 Oct 1997 11:31:37 +0000 (11:31 +0000)]
loadparm.c :

added "domain other sids" parameter

pipenetlog.c :

using "domain other sids" parameter in SAM Logon response.
using new name_to_rid() function for r_uid and r_gid.

pipentlsa.c :

minor mods to do with new name_to_rid() function.

pipesrvsvc.c :

in the "net share enum" response, allocate some more space for the buffer.
there can be only 32 share entries in the response anyway.  this needs
to be dealt with.

pipeutil.c :

modified name_to_rid() function to use new parameters "domain admin users"
and "domain guest users", but will otherwise do unix uid + 1000.

moved make_dom_gids() here.

proto.h:

the usual.

smb.h smbparse.c :

renamed sid_no to sid_rev_num in DOM_SID, and gid to r_gid in DOM_GID.

util.c :

moved make_dom_gids() from here.
created char *unistrn2(uint16* uni_buffer, int max_len)

23 years agoshared memory code cleanups (partly preparing for a possible sysV
Andrew Tridgell [Wed, 22 Oct 1997 11:15:14 +0000 (11:15 +0000)]
shared memory code cleanups (partly preparing for a possible sysV
shared memory implementation)

23 years agoImplemented asynchronous DNS lookups in nmbd.
Andrew Tridgell [Wed, 22 Oct 1997 11:02:00 +0000 (11:02 +0000)]
Implemented asynchronous DNS lookups in nmbd.

I realised this afternoon just how easy it is to add this, so I
thought I'd implement it while the idea was fresh.

nmbd forks at startup and uses a pipe to talk to its child. The child
does the DNS lookups and the file descriptor of the child is added to
the main select loop.

While I was doing this I discovered a bug in nmbd that explains why
the dns proxy option has been so expensive. The DNS cache entries in
the WINS list were never being checked, which means we always did a
DNS lookup even if we have done it before and it is in cache. I'm sure
this used to work (I tested the DNS cache when I added it) so someone
broke it :-(

Anyway, the async DNS gets rid of the problem completely. I'll commit
just the fix to the DNS cache bug to the 1.9.17 tree.

You can disable async DNS by adding -DSYNC_DNS to the compile flags.

23 years agoupdated tel no and email address for my entry.
Luke Leighton [Wed, 22 Oct 1997 10:13:03 +0000 (10:13 +0000)]
updated tel no and email address for my entry.

23 years agodon't send any statistics in the node status reply
Andrew Tridgell [Wed, 22 Oct 1997 03:16:35 +0000 (03:16 +0000)]
don't send any statistics in the node status reply

23 years agopreparing for release of 1.9.18alpha3
Samba Release Account [Tue, 21 Oct 1997 22:56:28 +0000 (22:56 +0000)]
preparing for release of 1.9.18alpha3

23 years agoWHATSNEW.txt: Updated for alpha3.
Jeremy Allison [Tue, 21 Oct 1997 22:51:21 +0000 (22:51 +0000)]
WHATSNEW.txt: Updated for alpha3.
server.c: int16 -> uint16 fix for port comparisons in oplock code.
          Needed for Solaris.
version.h: Updated to alpha3.
Jeremy (jallison@whistle.com)

23 years agoThe ubi_* modules are under LGPL, not standard GPL. This README explains
Christopher R. Hertel [Tue, 21 Oct 1997 21:43:42 +0000 (21:43 +0000)]
The ubi_* modules are under LGPL, not standard GPL.  This README explains
that.

23 years agopreparing for release of 1.9.18alpha2
Samba Release Account [Tue, 21 Oct 1997 21:17:26 +0000 (21:17 +0000)]
preparing for release of 1.9.18alpha2

23 years agoWHATSNEW.txt: Preparing for 1.9.18alpha2 release.
Jeremy Allison [Tue, 21 Oct 1997 19:55:34 +0000 (19:55 +0000)]
WHATSNEW.txt: Preparing for 1.9.18alpha2 release.
smb.conf.5: Added 'bind interfaces only' parameter.
version.h: Updated to 1.9.18alpha2.
Jeremy (jallison@whistle.com)

23 years agochgpasswd.c:
Jeremy Allison [Tue, 21 Oct 1997 18:27:55 +0000 (18:27 +0000)]
chgpasswd.c:
includes.h: SCO changes.
server.c: Added code in open_sockets to allow 'bind interfaces only' to
          work as documented.
Jeremy (jallison@whistle.com)

23 years agoloadparm.c :
Luke Leighton [Tue, 21 Oct 1997 18:25:14 +0000 (18:25 +0000)]
loadparm.c :

added "domain admin users" parameter
added "domain guest users" parameter

these two complement the "domain groups" parameter.  the "domain groups"
parameter should be for your own groups, and well-known aliases.

util.c :

added ability to do "domain groups = power_users admin_users backup_ops"
which are well-known RID aliases, not well-known RID groups.

pipenetlog.c :

combine the "domain admin users"; "domain guest users" and "domain groups"
parameters to give an array of RID groups to include in the SAM Logon
response.

ipc.c smb.h :

moved REALLOC() into smb.h
added RID #defines.

proto.h:

usual.

23 years agodamn, I spelt EACCES wrong.
Andrew Tridgell [Tue, 21 Oct 1997 13:15:20 +0000 (13:15 +0000)]
damn, I spelt EACCES wrong.

actually it's wrong in the linux man page for utime ...

23 years agocheck for EPERM or EACCESS in file_utime()
Andrew Tridgell [Tue, 21 Oct 1997 13:03:46 +0000 (13:03 +0000)]
check for EPERM or EACCESS in file_utime()

23 years agodon't check lp_alternate_permissions() in the new utime workaround
Andrew Tridgell [Tue, 21 Oct 1997 12:55:49 +0000 (12:55 +0000)]
don't check lp_alternate_permissions() in the new utime workaround
code. lp_alternate_permissions() is intended only to affect the
display of file permissions, not what you can actually do with the
files.

23 years agofix the order of become_uid() and become_gid() in become_root(). This
Andrew Tridgell [Tue, 21 Oct 1997 11:54:57 +0000 (11:54 +0000)]
fix the order of become_uid() and become_gid() in become_root(). This
was a harmless bug but left log entries

code cleanup in reply_lanman2()

23 years agoUpdating an entry.Paul
Samba Release Account [Tue, 21 Oct 1997 11:50:14 +0000 (11:50 +0000)]
Updating an entry.Paul

23 years agoadd a note on how to map usernames with spaces in them
Andrew Tridgell [Tue, 21 Oct 1997 10:30:07 +0000 (10:30 +0000)]
add a note on how to map usernames with spaces in them

23 years agoadded a note about which netbios name is use in server level security
Andrew Tridgell [Tue, 21 Oct 1997 09:43:03 +0000 (09:43 +0000)]
added a note about which netbios name is use in server level security

23 years agoprototype updates
Andrew Tridgell [Tue, 21 Oct 1997 09:39:45 +0000 (09:39 +0000)]
prototype updates

23 years agosome cleanups in the clientutil.c code.
Andrew Tridgell [Tue, 21 Oct 1997 09:39:08 +0000 (09:39 +0000)]
some cleanups in the clientutil.c code.

I'm actually hoping to remove this module completely once we convert
nmbd to using the new (much cleaner) clientgen.c

smbclient now also reports if it connects as a guest user

23 years agorewrote the password server code using the new clientgen.c client
Andrew Tridgell [Tue, 21 Oct 1997 09:34:33 +0000 (09:34 +0000)]
rewrote the password server code using the new clientgen.c client
interface

The new code uses a source netbios name equal to the Samba servers
name, not the client name. It also uses NetWkstaUserLogon to do a full
network logon. This means it will honour the servers logon
restrictions (such as login times etc).

23 years agoThis is a set of generic SMB client routines. I needed this in a hurry
Andrew Tridgell [Tue, 21 Oct 1997 09:12:41 +0000 (09:12 +0000)]
This is a set of generic SMB client routines. I needed this in a hurry
to fix the password server code, so I didn't use SMBlib. This code is
fairly generic and uses a "struct cli_state" to hold the client
state.

23 years agoget rid of the KEEP_PASSWORD_SERVER_OPEN define
Andrew Tridgell [Tue, 21 Oct 1997 09:11:19 +0000 (09:11 +0000)]
get rid of the KEEP_PASSWORD_SERVER_OPEN define

23 years agoadd some debug info
Andrew Tridgell [Tue, 21 Oct 1997 09:09:55 +0000 (09:09 +0000)]
add some debug info

23 years agoAdding make_smbcodepage.1 man page.
Jeremy Allison [Mon, 20 Oct 1997 20:34:55 +0000 (20:34 +0000)]
Adding make_smbcodepage.1 man page.
Updated smb.conf with dos filetimes.
Jeremy (jallison@whistle.com)

23 years agoloadparm.c: Changed 'interfaces only' parameter to 'bind interfaces only'. Added
Jeremy Allison [Mon, 20 Oct 1997 18:52:04 +0000 (18:52 +0000)]
loadparm.c: Changed 'interfaces only' parameter to 'bind interfaces only'. Added
            'dos filetimes' parameter for UTIME fix.
locking_shm.c: Fixed typo (sorry Andrew :-).
namepacket.c: Changed lp_interfaces_only() to lp_bind_interfaces_only().
proto.h: The usual.
reply.c: Made filetime calls use new file_utime call (wrapper for sys_utime).
server.c: Made filetime calls use new file_utime call (wrapper for sys_utime).
system.c: Added Andrew's sanity checks to times in sys_utime().
time.c: Moved set_filetime() to server.c. Made null_mtime()¬†global.
trans2.c: Made filetime calls use new file_utime call (wrapper for sys_utime).
Jeremy (jallison@whistle.com)

23 years agoadded "domain groups" parameter, allowing you to specify the groups that
Luke Leighton [Mon, 20 Oct 1997 16:25:19 +0000 (16:25 +0000)]
added "domain groups" parameter, allowing you to specify the groups that
the user belongs to.

it would be nice to know exactly what the domain groups _are_....

23 years agoadded description of parameters:
Luke Leighton [Mon, 20 Oct 1997 16:24:14 +0000 (16:24 +0000)]
added description of parameters:

domain sid
domain groups
logon drive
logon path

23 years agoadded copyright to headers.
Luke Leighton [Mon, 20 Oct 1997 14:46:05 +0000 (14:46 +0000)]
added copyright to headers.

23 years agoNTDOMAIN.txt:
Luke Leighton [Mon, 20 Oct 1997 14:43:00 +0000 (14:43 +0000)]
NTDOMAIN.txt:

describes how to set up samba as an NT PDC.  it includes debugging
assisting info.  it is expected that this document turn into a
user's document, rather than a debugger's document.

cifsntdomain.txt :

this is the "NT Domain Authentication (draft)" white paper, current
version.  if anyone think it's a bad idea to put a copy of this in
here, i'm quite happy to remove it.

23 years agoAdded DNS Proxy, Printing, [netlogon] share modes = no.
John Terpstra [Mon, 20 Oct 1997 13:18:16 +0000 (13:18 +0000)]
Added DNS Proxy, Printing, [netlogon] share modes = no.