samba.git
25 years agopwdb_smb_to_sam was not returning NULL for nt name so that
Luke Leighton [Tue, 9 Feb 1999 16:01:28 +0000 (16:01 +0000)]
pwdb_smb_to_sam was not returning NULL for nt name so that
pwdb_sam_map_names() was using a "blank" static string instead of
a NULL pointer for nt names.  NULL means over-ride, so the nt name
got left as "blank".

this causes nt clients to terminate with extreme prejudice.

25 years agoFix for NT BSOD problem. There's no reason to have two "NT usernames" running
Matthew Chapman [Tue, 9 Feb 1999 03:57:10 +0000 (03:57 +0000)]
Fix for NT BSOD problem. There's no reason to have two "NT usernames" running
around anyway.

The real problem is, once again, the brokenness of pwdb_sam_map_names et al.
This time it is deciding to return blank NT usernames, which NT's redirector
objects to.

I'm currently working on improving the pwdb/mapping code, should be ready in a
couple of weeks.

25 years agoUNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()
Luke Leighton [Mon, 8 Feb 1999 23:40:49 +0000 (23:40 +0000)]
UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()

25 years agoreload_services needs to be called prior to init_files but after
Luke Leighton [Mon, 8 Feb 1999 01:46:46 +0000 (01:46 +0000)]
reload_services needs to be called prior to init_files but after
get_myname.

25 years agoiteration of sam passwd entries was an order n-cubed algorithm due
Luke Leighton [Mon, 8 Feb 1999 00:24:57 +0000 (00:24 +0000)]
iteration of sam passwd entries was an order n-cubed algorithm due
to resolution of unix name to nt name being unnecessarily _inside_
another loop.

25 years agoinitialise my name (used in %h) prior to loading smb.conf files.
Luke Leighton [Wed, 3 Feb 1999 17:10:44 +0000 (17:10 +0000)]
initialise my name (used in %h) prior to loading smb.conf files.

25 years ago%s not $s
Luke Leighton [Wed, 3 Feb 1999 16:30:54 +0000 (16:30 +0000)]
%s not $s

25 years agocorrections to get data stream for 2nd and subsequent pdus copied from
Luke Leighton [Wed, 3 Feb 1999 01:58:52 +0000 (01:58 +0000)]
corrections to get data stream for 2nd and subsequent pdus copied from
right place (forgot to subtract 0x18 header bytes)

25 years agocache unix groups so that two-level getgrent calls don't occur.
Luke Leighton [Wed, 3 Feb 1999 00:49:24 +0000 (00:49 +0000)]
cache unix groups so that two-level getgrent calls don't occur.

25 years agomultiple dce/rpc PDUs failed to work after ntlmssp update was added.
Luke Leighton [Wed, 3 Feb 1999 00:48:27 +0000 (00:48 +0000)]
multiple dce/rpc PDUs failed to work after ntlmssp update was added.

25 years agoserver type announcements modified to include the "role" of the server:
Luke Leighton [Tue, 2 Feb 1999 19:53:10 +0000 (19:53 +0000)]
server type announcements modified to include the "role" of the server:
domain member, pdc, bdc.

25 years agoMinor change to bring smbmount in the main branch in line with some bzero
Michael Warfield [Mon, 1 Feb 1999 22:01:29 +0000 (22:01 +0000)]
Minor change to bring smbmount in the main branch in line with some bzero
to memset changes...

25 years agocomma after DOM_MAP_USER removed
Luke Leighton [Mon, 1 Feb 1999 16:32:01 +0000 (16:32 +0000)]
comma after DOM_MAP_USER removed

25 years agoMust set password length to 24 after we encrypt a password.
Matthew Chapman [Mon, 1 Feb 1999 05:25:54 +0000 (05:25 +0000)]
Must set password length to 24 after we encrypt a password.

25 years agoInitialise NTTIME properly in make_reg_q_enum_key instead of using
Matthew Chapman [Mon, 1 Feb 1999 02:39:37 +0000 (02:39 +0000)]
Initialise NTTIME properly in make_reg_q_enum_key instead of using
unix_to_nt_time hack. Seems to me it's ignored anyway (dummy return
buffer?).

25 years agoFixed a domain functionality problem where NT clients would start
Matthew Chapman [Mon, 1 Feb 1999 02:37:45 +0000 (02:37 +0000)]
Fixed a domain functionality problem where NT clients would start
endlessly repeating a network SAMLOGON (hoping it to change, hmmm...).

( Guess what I found in pwdb_init_sam...

  unix_to_nt_time(&user->logon_time, (time_t)-1);
  unix_to_nt_time(&user->logoff_time, (time_t)-1);
  unix_to_nt_time(&user->kickoff_time, (time_t)-1);
  ... )

25 years agoAdded init_nt_time function which initialises an NTTIME to -1.
Matthew Chapman [Mon, 1 Feb 1999 02:36:24 +0000 (02:36 +0000)]
Added init_nt_time function which initialises an NTTIME to -1.

25 years agoOk... Yet another round of fixes for smbmount and autofs.
Michael Warfield [Sun, 31 Jan 1999 21:28:55 +0000 (21:28 +0000)]
Ok...  Yet another round of fixes for smbmount and autofs.

1)  The earlier fix for the smbmount race conditions broke the PID
registration with smbfs.  That fix has been backed out and
replaced by a signalling convention from the child smbmount
process back to the parent telling the parent when it is safe
to exit.

2)  Fixing all of this uncovered a NASTY deadly embrace between smbmount,
smbmnt, and autofs.  This was caused by the setsid call in the
daemon code.  The smbmnt process no longer was registered as
"magic" because it was no longer in the autofs process group.
Many many kudos and thanks to H Peter Anvin for giving me the
clue to solving this agravating puzzle.  The setsid was moved
down the where the child signals the parent and a warn left in
its place in the daemonize code.

3)  Fixed (actually worked around with a BUTT UGLY HACK) a problem with
SMB_GET_MOUNTPID in smbumount.c.  The smb_fs.h header file has
the parameter to this ioctl defined as a uid_t.  Unfortunately
that's a 32 bit quantity under glibc and it's currently a 16 bit
quantity in kernel space.  Undefined the macro and redefined
it with a parameter of __kernel_uid_t.  That should keep us
out of trouble till I can have someone fix smb_fs.h in the
kernel sources...

25 years agofix for enumerate domain users (bug spotted by sean matthews).
Luke Leighton [Fri, 29 Jan 1999 21:22:08 +0000 (21:22 +0000)]
fix for enumerate domain users (bug spotted by sean matthews).

also needed to use start index properly and generate next index.

both client and server code need to recognise error code 0x105
when there's not enough room to store all the users in one call.

sort this out another time.

25 years agoremoved encrypt-password code pre-cli_session_setup(), session setup
Luke Leighton [Fri, 29 Jan 1999 19:31:52 +0000 (19:31 +0000)]
removed encrypt-password code pre-cli_session_setup(), session setup
fn decides whether to encrypt password or not.

25 years agouni_svc_name not uni_srv_name
Luke Leighton [Fri, 29 Jan 1999 19:20:27 +0000 (19:20 +0000)]
uni_svc_name not uni_srv_name

25 years agorpcclient "Service Control Manager" svcenum [-i] command.
Luke Leighton [Thu, 28 Jan 1999 21:11:15 +0000 (21:11 +0000)]
rpcclient "Service Control Manager" svcenum [-i] command.

25 years agoerror code cleanup
Luke Leighton [Thu, 28 Jan 1999 21:10:38 +0000 (21:10 +0000)]
error code cleanup

25 years agoreturned cli_session_setup to previous behaviour. added a couple of
Luke Leighton [Thu, 28 Jan 1999 18:40:53 +0000 (18:40 +0000)]
returned cli_session_setup to previous behaviour.  added a couple of
validation checks and also added capability to send plaintext passwords.
send "ntpasslen" of zero to do this.  sending same plaintext password
for pass and ntpass arguments will result in previous behaviour of
encrypting password if server supports it.

25 years agoService Control Manager - service enumeration.
Luke Leighton [Wed, 27 Jan 1999 20:31:58 +0000 (20:31 +0000)]
Service Control Manager - service enumeration.

25 years agoset_port warning / unused / global/local variable overlap issues
Luke Leighton [Wed, 27 Jan 1999 19:37:29 +0000 (19:37 +0000)]
set_port warning / unused / global/local variable overlap issues

cmd_svcctl.c tests got put into cvs by mistake.

25 years agoFuss fuss fuss.
Christopher R. Hertel [Wed, 27 Jan 1999 18:22:48 +0000 (18:22 +0000)]
Fuss fuss fuss.

Added missing default: statements to two switch blocks.

Chris -)-----

25 years ago- got client code cleartext passwords working again in cli_session_setup.
Luke Leighton [Wed, 27 Jan 1999 00:08:33 +0000 (00:08 +0000)]
- 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

25 years agocompilation errors due to addition of smb file handle parameter.
Luke Leighton [Wed, 27 Jan 1999 00:03:31 +0000 (00:03 +0000)]
compilation errors due to addition of smb file handle parameter.

25 years agoPutting back the -p flag in smbclient.
Richard Sharpe [Mon, 25 Jan 1999 01:46:14 +0000 (01:46 +0000)]
Putting back the -p flag in smbclient.

However, it seems that the -s flag
in smbclient is also ignored :-(

25 years agoMore changes to get SSL working with 2.x.x
Richard Sharpe [Mon, 25 Jan 1999 00:36:45 +0000 (00:36 +0000)]
More changes to get SSL working with 2.x.x

Now, we have most of the configure support done, next
have to fix Makefile.in and other things ...

25 years agoFixing up configure to properly support ssl
Richard Sharpe [Sun, 24 Jan 1999 14:20:19 +0000 (14:20 +0000)]
Fixing up configure to properly support ssl

25 years agoAdding first of the fixes for SSL.
Richard Sharpe [Sun, 24 Jan 1999 14:08:55 +0000 (14:08 +0000)]
Adding first of the fixes for SSL.

A whole bunch of string variables in loadparm.c were
not being initialized properly.  Programs crashed as a result.

This set of code not tested, but same code tested elsewhere,
and all this guarded by #ifdef HAVE_SSL

25 years agoIn security=user mode we must allow cli_connect_serverlist to connect to our
Matthew Chapman [Mon, 18 Jan 1999 01:35:43 +0000 (01:35 +0000)]
In security=user mode we must allow cli_connect_serverlist to connect to our
own smbd process, rather than complaining about a password server loop.

25 years agoAdded load_interfaces in smbpasswd to allow name resolution by broadcast and
Matthew Chapman [Mon, 18 Jan 1999 01:32:45 +0000 (01:32 +0000)]
Added load_interfaces in smbpasswd to allow name resolution by broadcast and
multiple interfaces. (Jeremy already committed this in SAMBA_2_0).

25 years agoA small change to clitar.c (really, I promise :-)
Richard Sharpe [Sun, 17 Jan 1999 01:03:52 +0000 (01:03 +0000)]
A small change to clitar.c (really, I promise :-)

If we are writing the tar file to stdout, set dbf to stderr
so that we do not screw up tar output with log info etc.

Compiles clean and tested with 38MB backup. Honest :-)

25 years agoeclass != ERRDOS && num != ERRmoredata
Matthew Chapman [Fri, 15 Jan 1999 05:09:36 +0000 (05:09 +0000)]
eclass != ERRDOS && num != ERRmoredata
is not the same as
!(eclass == ERRDOS && num == ERRmoredata)

This was causing smbclient to segfault on receiving certain errors.

25 years agoFixed typo in srv_samr.c where samr_add_groupmem and samr_del_groupmem were
Matthew Chapman [Fri, 15 Jan 1999 05:02:41 +0000 (05:02 +0000)]
Fixed typo in srv_samr.c where samr_add_groupmem and samr_del_groupmem were
the wrong way around.

25 years agoFinally committing my LDAP changes.
Matthew Chapman [Fri, 15 Jan 1999 05:00:26 +0000 (05:00 +0000)]
Finally committing my LDAP changes.

* Added new APIs for modifying groups.
* RIDs are allocated similarly to NT, starting from 1000 and incrementing by 1
  for each new user/group.
* RIDs are now consistently in hex

* Fixed bugs reported by Allan Bjorklund <allan@umich.edu>:
   - ldap_close_connection is exported by OpenLDAP - changed to ldap_disconnect
   - Missing ldap_connect() in getusergroups functions
   - ldap_next_entry was being called too early while retrieving a sam_struct
   - LDAP globals should be extern in sampassldap.c

* Fixed bugs reported by Martin Hofbauer <mh@bacher.at>
   - Newly added workstation trust accounts had attributes DU rather than W.
   - User dn's were forced to start with "uid=XX" rather than using the existing
     dn.

25 years agoFixed the "You password will expire in 0 days. Would you like to
Gerald Carter [Wed, 13 Jan 1999 00:48:25 +0000 (00:48 +0000)]
Fixed the "You password will expire in 0 days.  Would you like to
change it now?" message when you login to a Samba Controlled domain.

The fix is a hard coded 42 days from right now until you need to
change you pasword again time (see passdb/sampassdb.c:pwdb_smb_to_sam())

Also fixed getsmbfilepwent() so that it will read in the last password
change time correctly.

* Related to this lib/util_pwdb.c:StrnCaseCmp() returns 0 if the
strings match.  Chouldn't this be the pther way?  Oh well.  I
didn't change the return code as it was used in several
other cases (see lib/util_pwdb.c:pwdb_get_last_set_time())

25 years agofixed an uninitialized variable in lookupsmbgrpgid() and
Gerald Carter [Wed, 13 Jan 1999 00:40:04 +0000 (00:40 +0000)]
fixed an uninitialized variable in lookupsmbgrpgid() and
lookupsmbpwuid that was causing a SEGFAULT in smbd.

25 years agoUpdated the docs to match the changes I made to debug2html.
Christopher R. Hertel [Tue, 29 Dec 1998 21:16:08 +0000 (21:16 +0000)]
Updated the docs to match the changes I made to debug2html.
Chris -)-----

25 years agoWhile writing the man page, I realized that it was a bit silly not to accept
Christopher R. Hertel [Tue, 29 Dec 1998 20:43:01 +0000 (20:43 +0000)]
While writing the man page, I realized that it was a bit silly not to accept
command-line parameters.  I've added that capability.  Of course, the man
page is now wrong.  Sigh.

Chris -)-----

25 years agoFirst go at documentation for debug2html.
Christopher R. Hertel [Tue, 29 Dec 1998 18:57:38 +0000 (18:57 +0000)]
First go at documentation for debug2html.

Chris -)-----

25 years agoSorry that this is going so slowly.
Christopher R. Hertel [Mon, 28 Dec 1998 22:34:08 +0000 (22:34 +0000)]
Sorry that this is going so slowly.

I've added debug2html to Makefile.in so that it compiles as part of the
normal build.  Fixed a typo in debug2html.c as well.

One problem:  I found it necessary to link with both $(PARAM_OBJ) and
              $(LIB_OBJ).  The result is an executable that is much larger
              than it really needs to be.

25 years agoModified packaging-prep script to remove use of "rm -f *".
John Terpstra [Sun, 27 Dec 1998 22:31:50 +0000 (22:31 +0000)]
Modified packaging-prep script to remove use of "rm -f *".

25 years agoChanging to PHT standard SPEC settings.
John Terpstra [Mon, 21 Dec 1998 10:12:27 +0000 (10:12 +0000)]
Changing to PHT standard SPEC settings.

25 years agofix for potential lsass.exe crashing due to negative response from
Luke Leighton [Sun, 20 Dec 1998 00:37:24 +0000 (00:37 +0000)]
fix for potential lsass.exe crashing due to negative response from
LsaLookupNames being incorrect.  this is a bit wierd: why would the
lsass.exe on the nt _client_ crash due to an LsaLookupNames response
from a samba _server_?

25 years agoadding start of remote lookup for domain member role.
Luke Leighton [Sun, 20 Dec 1998 00:35:43 +0000 (00:35 +0000)]
adding start of remote lookup for domain member role.

25 years agolib_sec_ctxt.o not .c
Luke Leighton [Sun, 20 Dec 1998 00:31:18 +0000 (00:31 +0000)]
lib_sec_ctxt.o not .c

25 years agoUpdated makefile-path info contributed on the samba-technical mailing list.
John Terpstra [Sat, 19 Dec 1998 03:29:03 +0000 (03:29 +0000)]
Updated makefile-path info contributed on the samba-technical mailing list.

25 years agoFixed problems in debug code because I did not compile
Richard Sharpe [Sat, 19 Dec 1998 02:08:35 +0000 (02:08 +0000)]
Fixed problems in debug code because I did not compile
first :-(

25 years agoAdded some debugging to clitar ...
Richard Sharpe [Sat, 19 Dec 1998 01:43:24 +0000 (01:43 +0000)]
Added some debugging to clitar ...

25 years agoFixed tar recurse bug.
Jeremy Allison [Thu, 17 Dec 1998 22:44:56 +0000 (22:44 +0000)]
Fixed tar recurse bug.
Jeremy.

25 years agoFix bug with nmbd running wild due to recursion in retransmit_or_expire_response_reco...
Jeremy Allison [Thu, 17 Dec 1998 21:41:28 +0000 (21:41 +0000)]
Fix bug with nmbd running wild due to recursion in retransmit_or_expire_response_records().
Jeremy.

25 years agoand in head branch:
Andrew Tridgell [Thu, 17 Dec 1998 01:04:38 +0000 (01:04 +0000)]
and in head branch:

make sure we include sys/mman.h if available

25 years agoA while back, Andrew and I talked about making the debug parsing code a
Christopher R. Hertel [Wed, 16 Dec 1998 18:50:54 +0000 (18:50 +0000)]
A while back, Andrew and I talked about making the debug parsing code a
better "fit" with other Samba code.  This is a small first step toward
doing what (I think) we agreed to do.

I've moved the key function from ubiqx/debugparse.c into lib/debug.c.  I
have also moved the enum from ubiqx/debugparse.h into the debug section in
smb.h.

The next thing to do is to get debug2html added into the Makefile.in so
that it is always produced when compiling the suite.

Chris -)-----

25 years agoon Linux force fcntl/mmap based shared memory and on other systems
Andrew Tridgell [Tue, 15 Dec 1998 03:16:24 +0000 (03:16 +0000)]
on Linux force fcntl/mmap based shared memory and on other systems
force IPC/shmem based shared memory.

25 years agoserver_cryptkey() now calling cli_connectserverlist(). stupid microsoft
Luke Leighton [Mon, 14 Dec 1998 21:22:59 +0000 (21:22 +0000)]
server_cryptkey() now calling cli_connectserverlist().  stupid microsoft
idiotic *SMBSERVER connectionism added to cli_connect_serverlist().
also added check for protocol < LANMAN2.

25 years agoadded sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.
Luke Leighton [Mon, 14 Dec 1998 20:23:20 +0000 (20:23 +0000)]
added sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.

25 years agotrying to track down issues in get_home_dir().
Luke Leighton [Mon, 14 Dec 1998 20:21:39 +0000 (20:21 +0000)]
trying to track down issues in get_home_dir().

25 years ago%U substitution should be unix user not nt user
Luke Leighton [Fri, 11 Dec 1998 19:27:19 +0000 (19:27 +0000)]
%U substitution should be unix user not nt user

25 years agoadding svcctl parsing code
Luke Leighton [Wed, 9 Dec 1998 23:16:37 +0000 (23:16 +0000)]
adding svcctl parsing code

25 years agobugfix in smb_err_msg
Luke Leighton [Wed, 9 Dec 1998 18:59:12 +0000 (18:59 +0000)]
bugfix in smb_err_msg

25 years agooops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.
Luke Leighton [Wed, 9 Dec 1998 16:30:37 +0000 (16:30 +0000)]
oops, util_pwdb.c appears to be included in PASSDB_OBJ not LIB_OBJ.

25 years agoadding some enumerate services code, client and server.
Luke Leighton [Wed, 9 Dec 1998 16:28:04 +0000 (16:28 +0000)]
adding some enumerate services code, client and server.

25 years agoneed to initialise global_myworkgroup
Luke Leighton [Wed, 9 Dec 1998 16:23:57 +0000 (16:23 +0000)]
need to initialise global_myworkgroup

25 years agoremoved the SID stuff from the head branch as well.
Andrew Tridgell [Wed, 9 Dec 1998 06:35:37 +0000 (06:35 +0000)]
removed the SID stuff from the head branch as well.

This allows the removal of PASSDB_OBJ, RPC_CLIENT_OBJ and
RPC_PARSE_OBJ from nmbd in the head branch.

so nmbd just went on a diet :)

25 years agoadding "Service Control Manager" commands to rpcclient.
Luke Leighton [Tue, 8 Dec 1998 23:29:37 +0000 (23:29 +0000)]
adding "Service Control Manager" commands to rpcclient.

25 years agoAdding George's Mac extension code.
Jeremy Allison [Tue, 8 Dec 1998 02:25:41 +0000 (02:25 +0000)]
Adding George's Mac extension code.
Jeremy.

25 years agoAdding George's Mac extension include files.
Jeremy Allison [Tue, 8 Dec 1998 02:22:56 +0000 (02:22 +0000)]
Adding George's Mac extension include files.
Jeremy.

25 years agoldap_getpw() also needs to be (void)
Luke Leighton [Tue, 8 Dec 1998 00:33:05 +0000 (00:33 +0000)]
ldap_getpw() also needs to be (void)

25 years agocompilation warnings due to missing (void) in ldap_close_connection.
Luke Leighton [Tue, 8 Dec 1998 00:30:23 +0000 (00:30 +0000)]
compilation warnings due to missing (void) in ldap_close_connection.

25 years agoadding srvsvc pipe.
Luke Leighton [Tue, 8 Dec 1998 00:25:04 +0000 (00:25 +0000)]
adding srvsvc pipe.

25 years agoadded ldap files by Matthew Chapman.
Luke Leighton [Mon, 7 Dec 1998 22:52:49 +0000 (22:52 +0000)]
added ldap files by Matthew Chapman.

25 years agoMatthew Chapman spotted that smbpasschange was assuming the existence
Luke Leighton [Mon, 7 Dec 1998 22:52:13 +0000 (22:52 +0000)]
Matthew Chapman spotted that smbpasschange was assuming the existence
of a private/smbpasswd file, this will not be the case for other
database APIs.  removed startsmbdb and endsmbpwdb calls because
add_smbpwd_entry() and mod_smbpwd_entry() don't need them.

25 years agofixed warnings (and potential errors) due to integer overflow when
Andrew Tridgell [Mon, 7 Dec 1998 22:43:43 +0000 (22:43 +0000)]
fixed warnings (and potential errors) due to integer overflow when
creating locking masks

25 years agoadded text and html versions of LDAP.yo. smb.conf.5 not generated yet
Luke Leighton [Mon, 7 Dec 1998 21:48:58 +0000 (21:48 +0000)]
added text and html versions of LDAP.yo.  smb.conf.5 not generated yet
because there were parts rejected from the ldap patch file.

25 years agoupdated for Matt Chapman's ldap code
Luke Leighton [Mon, 7 Dec 1998 21:44:37 +0000 (21:44 +0000)]
updated for Matt Chapman's ldap code

25 years agoissues spotted by herb.
Luke Leighton [Mon, 7 Dec 1998 21:40:53 +0000 (21:40 +0000)]
issues spotted by herb.

25 years agomatthew chapman's ldap code, to date. plus docs!
Luke Leighton [Mon, 7 Dec 1998 21:37:17 +0000 (21:37 +0000)]
matthew chapman's ldap code, to date.  plus docs!

25 years agobugs in rpcclient. add_aliasmem uses a DOM_SID2 not a DOM_SID.
Luke Leighton [Mon, 7 Dec 1998 21:32:02 +0000 (21:32 +0000)]
bugs in rpcclient.  add_aliasmem uses a DOM_SID2 not a DOM_SID.

25 years agofirst attempt at making unix setuid/setgid code that is independent of
Luke Leighton [Mon, 7 Dec 1998 20:28:51 +0000 (20:28 +0000)]
first attempt at making unix setuid/setgid code that is independent of
cnums and snums.

25 years agosync with 2.0 tree
Herb Lewis [Mon, 7 Dec 1998 20:27:01 +0000 (20:27 +0000)]
sync with 2.0 tree

25 years agoremoved nt_pipe_fnum from struct cli_state. need to be able to call
Luke Leighton [Mon, 7 Dec 1998 20:23:41 +0000 (20:23 +0000)]
removed nt_pipe_fnum from struct cli_state.  need to be able to call
LsaLookupSids etc from within SamrQueryAliasMembers, for example.
fnum is now a parameter to client functions.  thanks to mike black
for starting the ball rolling.

25 years ago- lib/unix_sec_ctxt.c
Luke Leighton [Mon, 7 Dec 1998 17:23:48 +0000 (17:23 +0000)]
- lib/unix_sec_ctxt.c

attempt at taking lib/uid.c and getting a unix security context
change module that is independent of "cnums" and "snums".
a security context is needed for pipes, not just IPC$ or other
services.

- group database API

added add_group/alias_member, del_group/alias_member,
del_group/alias_entry functions.  del_builtin_entry() is
deliberately set to NULL to cause an exception, you cannot
delete builtin aliases.

- parse_lsa.c srv_lsa.c

fixed lookup_names code, it was a load of trash and didn't do
anything.

- cmd_samr.c rpcclient.c srv_samr.c

added "deletegroup", "deletealias", "delaliasmem", "delgroupmem",
"addgroupmem", "addaliasmem", "createalias", "creategroup", to
both client and server code.

server code calls into unix stubs right now, which don't actually
do anything.  the only instance where they are expected to do
anything is in appliance mode NOT even in the ldap code or anything.

client code modified to call samr_lookup_names() for group code
(because we can) and lsa_lookup_names() for alias code (because
we have to).

- srv_lookup.c

oops, lookup on unsplit name, we got lookup on DOMAIN, DOMAIN\name
instead of DOMAIN, name.

25 years agofixed a link to testparm.1.html
Andrew Tridgell [Mon, 7 Dec 1998 10:37:13 +0000 (10:37 +0000)]
fixed a link to testparm.1.html

25 years agooops - lock test was the wrong way around
Andrew Tridgell [Sat, 5 Dec 1998 08:19:42 +0000 (08:19 +0000)]
oops - lock test was the wrong way around

25 years agofixed pidfile handling to check for a lock on the file, so we can be
Andrew Tridgell [Sat, 5 Dec 1998 08:09:59 +0000 (08:09 +0000)]
fixed pidfile handling to check for a lock on the file, so we can be
sure it is a samba process that is running.

25 years agoreplaced the icons in SWAT with real icons
Andrew Tridgell [Sat, 5 Dec 1998 06:54:10 +0000 (06:54 +0000)]
replaced the icons in SWAT with real icons

25 years agoSync up critical kernel oplock bugfix. I don't want to lose
Jeremy Allison [Sat, 5 Dec 1998 01:03:42 +0000 (01:03 +0000)]
Sync up critical kernel oplock bugfix. I don't want to lose
this....
Jeremy.

25 years agoadded delete domain group and local group and delete domain group member.
Luke Leighton [Fri, 4 Dec 1998 23:06:27 +0000 (23:06 +0000)]
added delete domain group and local group and delete domain group member.

25 years agofixing "addgroupmem" and "enumgroups -m" commands, samr_open_group()
Luke Leighton [Fri, 4 Dec 1998 22:00:39 +0000 (22:00 +0000)]
fixing "addgroupmem" and "enumgroups -m" commands, samr_open_group()
needed a flags fields as you get 0x0000 0010 and 0x0000 001f unknown
values for different purposes, no-one's going to tell us what they
are and i don't CARE!

25 years ago- oops, i got "add alias member" and "delete alias member" swapped.
Luke Leighton [Fri, 4 Dec 1998 21:48:06 +0000 (21:48 +0000)]
- oops, i got "add alias member" and "delete alias member" swapped.

- samr_enum_dom_users, the first 4 bytes is some sort of garbage,
  nt5-beta2 clears them out to zeros whereas nt4 does not.
  fixed bug where we were assuming that the first 4 bytes of a
  response _had_ to be non-zero.

- cli_lsarpc.c: forgot to append the rid on the lsa_lookup_names()
  client call.

- added in "addaliasmem" and "addgroupmem" commands.  the addaliasmem
  command actually turned out to be a "delaliasmem" :-) :-)

- parse_lsa.c: moved assert array check to after the size of useable
  array space is set...

25 years ago- renamed do_samr_xxx to samr_xxx
Luke Leighton [Fri, 4 Dec 1998 16:30:00 +0000 (16:30 +0000)]
- renamed do_samr_xxx to samr_xxx
- renamed do_lsa_xxx to lsa_xxx

- added "enumgroups [-m]" command, enumerates groups, shows members.
- added cmd_sam_add_groupmem(), need to call these in rpcclient.c
- added cmd_sam_add_aliasmem(), need to call these in rpcclient.c

- modified "enumaliases [-m]" command

- improved "enumgroups" and "enumaliases" to display names not just RIDS/SIDs.

- renamed "samr_unknown_12" to "samr_lookup_rids".

- added the following client-side functions:

get_samr_query_groupmem()
get_samr_query_aliasmem()
get_samr_query_groupinfo()
samr_enum_dom_groups()
samr_enum_dom_aliases()
samr_add_aliasmem()
samr_add_groupmem()

- improved display output (display.c)

25 years agoUpdated packaging files from 2.0.0 branch - NOTE: Not yet operative.
John Terpstra [Fri, 4 Dec 1998 00:13:12 +0000 (00:13 +0000)]
Updated packaging files from 2.0.0 branch - NOTE: Not yet operative.
I will update these when 2.0.0beta3 has shipped. <John H Terpstra>

25 years agoUpdated version info and date in document headers.
John Terpstra [Thu, 3 Dec 1998 23:14:52 +0000 (23:14 +0000)]
Updated version info and date in document headers.

25 years agoadded createalias command to rpcclient
Luke Leighton [Thu, 3 Dec 1998 22:20:30 +0000 (22:20 +0000)]
added createalias command to rpcclient

25 years agocreate domain group command (creategroup) added to rpcclient.
Luke Leighton [Thu, 3 Dec 1998 20:50:33 +0000 (20:50 +0000)]
create domain group command (creategroup) added to rpcclient.

renamed do_samr_xxxx to samr_xxxx.

25 years agomoved get_unixgroups it will be needed by the unix instance of the group
Luke Leighton [Thu, 3 Dec 1998 17:41:14 +0000 (17:41 +0000)]
moved get_unixgroups it will be needed by the unix instance of the group
DB API