1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

5751 Commits

Author SHA1 Message Date
Tim Potter
a947591674 Fix debug in domain_client_validate() when password server = *.
(This used to be commit c78fec86c9)
2001-10-30 05:54:38 +00:00
Tim Potter
35e44b3a83 Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level.
(This used to be commit c79e94ea27)
2001-10-30 05:41:07 +00:00
Tim Potter
f441ccd484 Allow the logon level to be passed to cli_netlogon_sam_logon() rather than
the validation level.  This allows us to test interactive or network logons.

Interestingly enough a win2k native mode server generates a rpc fault when
presented with a network logon!
(This used to be commit 0758c0ea84)
2001-10-30 05:38:41 +00:00
Tim Potter
560c0c92ad Removed confusing comment.
(This used to be commit b496936634)
2001-10-30 05:29:37 +00:00
Andrew Bartlett
15741d2fe4 Fix up smbpasswd -e/-d so that it doesn't change the password under you any
more.

(Previously it set them to 'XXXX' or similar when only the flags were being
changed - a bug I must have introduced when I reworked the passdb end of things
a few weeks back.)

Adds a new local flag:  LOCAL_SET_PASSWORD to specify that the password is
actually to be changed.

Andrew Bartlett
(This used to be commit cea6b6cb22)
2001-10-30 05:21:16 +00:00
Tim Potter
160950ae0e Display some errors if the initial connection to the server could not be
made.
(This used to be commit c3f5df8d67)
2001-10-30 04:21:53 +00:00
Tim Potter
5c3ccf7766 Added samlogon command to test against win2k native mode server. I think
there's a bug in the marshalling of net_sam_logon.
(This used to be commit 7c5ac46b8a)
2001-10-30 01:49:44 +00:00
Tim Potter
d16ce1910b Fixed typo in debug message.
(This used to be commit 26fa0374bb)
2001-10-30 00:19:43 +00:00
Andrew Bartlett
11dc29786e Fix up auth_smbpasswd.c to use the password interface, rather than the
structures directly.

Andrew Bartlett
(This used to be commit c2dc24ab63)
2001-10-29 22:28:21 +00:00
Andrew Bartlett
53ec47a209 Add a bit of 'const' for the data_blob code.
Add a new data_blob_clear_free() function - that zero's out the buffer
when its done.
(This used to be commit b02ed7ee19)
2001-10-29 22:14:17 +00:00
Volker Lendecke
e5cee57941 Don't force winbind to use non-local DC's.
Volker
(This used to be commit fd1d0064b3)
2001-10-29 15:00:45 +00:00
Simo Sorce
192a8f9a3e clear errno before a call, tdbsam will not update it.
just a hack to make things work.
(This used to be commit fd1bc3557a)
2001-10-29 13:31:01 +00:00
Simo Sorce
a972d2c448 another few changes to the new mangle code
(This used to be commit 92f953c156)
2001-10-29 13:21:29 +00:00
Simo Sorce
95aa4c6bbe change some more functions to the new mangle interface.
(This used to be commit 06a7c28ea1)
2001-10-29 13:19:22 +00:00
Simo Sorce
f93a8a3f90 - fix string len for an ucs2_to_dos function as any ucs2 char may be up to 4 dos hars...
- addedd ascii compatibility functions
(This used to be commit 8b9302b707)
2001-10-29 11:37:42 +00:00
Andrew Bartlett
f9879578c6 More spelling and grammer from Vance. <vance@digital-host.net>
Thanks!

Andrew Bartlett
(This used to be commit f019bed766)
2001-10-29 08:26:45 +00:00
Andrew Bartlett
fab88997b0 This patch applied, except without the structure changes to nmblib.c
Andrew Bartlett.

From kai@cmail.ru Mon Oct 29 18:50:42 2001
Date: Fri, 19 Oct 2001 17:26:06 +0300
From: Andrew V. Samoilov <kai@cmail.ru>
To: samba-technical@lists.samba.org
Subject: [patch]: makes some arrays const to be shared between processes

Hi!

This patch makes some arrays const. So these arrays go to text/rodata
segment and are shared between all of the processes which use shared
library with these arrays.

Regards,
Andrew V. Samoilov.

P.S. Please cc your answer to kai@cmail.ru,
I don't subscribed to this list.


ChangeLog:
	* cliconnect.c (prots): Make const.
	* clierror.c (rap_errmap): Likewise.
	* nmblib.c (nmb_header_opcode_names): Likewise.
	(lookup_opcode_name): Make opcode_namep const. Eliminate i.
	* nterr.c (nt_err_code_struct): Typedef const.
	* smberr.c (err_code_struct): Make const.
	(err_classes): Likewise.
(This used to be commit cb84485a2b)
2001-10-29 08:12:44 +00:00
Andrew Bartlett
d9d7f023d8 This commit is number 4 of 4.
In particular this commit focuses on:

Actually adding the 'const' to the passdb interface, and the flow-on changes.

Also kill off the 'disp_info' stuff, as its no longer used.

While these changes have been mildly tested, and are pretty small, any
assistance in this is appreciated.

----

These changes introduces a large dose of 'const' to the Samba tree.
There are a number of good reasons to do this:

	- I want to allow the SAM_ACCOUNT structure to move from wasteful
	pstrings and fstrings to  allocated strings.  We can't do that if
	people are modifying these outputs, as they may well make
	assumptions about getting pstrings and fstrings

	- I want --with-pam_smbpass to compile with a slightly sane
	volume of warnings, currently its  pretty bad, even in 2.2
	where is compiles at all.

	- Tridge assures me that he no longer opposes 'const religion'
	based on the ability to  #define const the problem away.

	- Changed Get_Pwnam(x,y) into two variants (so that the const
	parameter can work correctly): - Get_Pwnam(const x) and
	Get_Pwnam_Modify(x).

	- Reworked smbd/chgpasswd.c to work with these mods, passing
	around a 'struct passwd' rather  than the modified username

---

This finishes this line of commits off, your tree should now compile again :-)

Andrew Bartlett
(This used to be commit c95f5aeb93)
2001-10-29 07:35:11 +00:00
Andrew Bartlett
2038649e51 This commit is number 3 of 4.
In particular this commit focuses on:

Changing the Get_Pwnam code so that it can work in a const-enforced
environment.

While these changes have been mildly tested, and are pretty small, any
assistance in this is appreciated.

----

These changes allow for 'const' in the Samba tree.

There are a number of good reasons to do this:

	- I want to allow the SAM_ACCOUNT structure to move from wasteful
	pstrings and fstrings to  allocated strings.  We can't do that if
	people are modifying these outputs, as they may well make
	assumptions about getting pstrings and fstrings

	- I want --with-pam_smbpass to compile with a slightly sane
	volume of warnings, currently its  pretty bad, even in 2.2
	where is compiles at all.

	- Tridge assures me that he no longer opposes 'const religion'
	based on the ability to  #define const the problem away.

	- Changed Get_Pwnam(x,y) into two variants (so that the const
	parameter can work correctly): - Get_Pwnam(const x) and
	Get_Pwnam_Modify(x).

	- Reworked smbd/chgpasswd.c to work with these mods, passing
	around a 'struct passwd' rather  than the modified username
(This used to be commit e7634f81c5)
2001-10-29 07:28:32 +00:00
Andrew Bartlett
0db1899256 This commit is number 2 of 4.
In particular this commit focuses on:

The guts of the moving about inside passdb.

While these changes have been mildly tested, and are pretty small, any
assistance in this is appreciated.

----

These changes allow for the introduction of  a large dose of 'const' to
the Samba tree.

There are a number of good reasons to do this:

	- I want to allow the SAM_ACCOUNT structure to move from wasteful
	pstrings and fstrings to  allocated strings.  We can't do that if
	people are modifying these outputs, as they may well make
	assumptions about getting pstrings and fstrings

	- I want --with-pam_smbpass to compile with a slightly sane
	volume of warnings, currently its  pretty bad, even in 2.2
	where is compiles at all.

	- Tridge assures me that he no longer opposes 'const religion'
	based on the ability to  #define const the problem away.

	- Changed Get_Pwnam(x,y) into two variants (so that the const
	parameter can work correctly): - Get_Pwnam(const x) and
	Get_Pwnam_Modify(x).

	- Reworked smbd/chgpasswd.c to work with these mods, passing
	around a 'struct passwd' rather  than the modified username

passdb/

	- Kill off disp_info stuff, it isn't used any more - Kill off
	support for writing to the old smbpasswd format, it isn't relevent
	to Samba 3.0

	- Move around and modify the pdb_...() helper functions, adding
	one that sets the last changed  time to 'now' and that sets the
	must change time appropriately.

	- Remove the ugly forced update of the LCT- value in
	pdb_smbpasswd.  - Remove the implicit modification of the ACB
	flags when both NT and LM passwords are set.

	- Removed substation in pdb_getsampwnam output, as a single
	password change will render them  inoperable in any case (they
	will be substituted and stored)

	- Added a default RID to the init_sam_from_pw() function, based on
	our rid algorithm.

	- Added checks that an smbpasswd stored user has a uid-based RID.

	- Fail to store tdb based users without a RID

lib/
    - Change the substituion code to use global_myname if there is
      no connection (and therefore no called name) at the present time.
(This used to be commit 8f607810eb)
2001-10-29 07:24:49 +00:00
Andrew Bartlett
ab5d5cfbe0 This commit is number 1 of 4.
In particular this commit focusses on:

Adding the new 'pass changed now' helper function.

While these changes have been mildly tested, and are pretty small, any
assistance in this is appreciated.
(This used to be commit a8971a5448)
2001-10-29 07:15:51 +00:00
Tim Potter
879ecfae58 Converted a bunch of functions to use sscanf %i instead of atoi to
allow hex or decimal rids to be specified.
(This used to be commit d93488b953)
2001-10-29 05:38:02 +00:00
Tim Potter
7c98cf29f3 Hey where did those 4 character tabs come from?
(This used to be commit 49d4723826)
2001-10-29 04:57:20 +00:00
Tim Potter
b8b04c4d5e Don't reference tallocated memory that has already been disposed of. The
cli_samr_query_userinfo function used to do this.
(This used to be commit da2c167660)
2001-10-29 04:50:17 +00:00
Tim Potter
67dae09cc6 Fixed confusing debug message - it was always printing uid 0 instead of the
correct uid.
(This used to be commit ad30a35ebc)
2001-10-29 03:46:09 +00:00
Simo Sorce
7433cb7c75 fix a logic bug on max size of a returned string,
this fixes also the bug with file renaming.
(This used to be commit 5246d7609c)
2001-10-28 19:19:57 +00:00
Motonobu Takahashi
0374d57a4c added de.msg from Andreas Moroder
(This used to be commit bc909797ef)
2001-10-28 12:16:00 +00:00
Andrew Bartlett
24ce7fec9e Fix up the Makefile for now (thanks herb).
I understand that Vance is reworking the build_options stuff, so maybe we can
have better way of regenerating this in future.

Andrew Bartlett
(This used to be commit a228e9b39f)
2001-10-27 12:59:46 +00:00
Jeremy Allison
b947ad3a49 smbd/notify_hash.c: Merged Herb's fix.
lib/debug.c: Fix for potential null pointer access.
Jeremy.
(This used to be commit 5a4d22dd66)
2001-10-27 07:17:21 +00:00
Jeremy Allison
d04824639d Raise simultaneous open pipes from 64 to 1024 for large print server
environments.
Jeremy.
(This used to be commit e5f8147d02)
2001-10-27 07:16:48 +00:00
Tim Potter
b267dc04e6 Added some connection checking code. Doesn't work yet though.
(This used to be commit 4f4dace577)
2001-10-27 04:48:22 +00:00
Andrew Bartlett
d148a15c6c A few spelling fixes from Vance. <vance@digital-host.net>
Thanks!
(This used to be commit 5fda15463a)
2001-10-26 23:54:25 +00:00
Andrew Bartlett
1f511942b2 samba-bugs@samba.org -> samba@samba.org
The rest of this is still broken however...
(This used to be commit 6cce6350ca)
2001-10-26 23:12:32 +00:00
Andrew Bartlett
464def3437 Restore the intended behaviour for .headers.stamp
We don't want a 'make headers' (aka make proto) to force a rebuild
of the entire tree.

Andrew Bartlett
(This used to be commit 8c0cb50387)
2001-10-26 23:03:33 +00:00
Tim Potter
a9cf7fb2da Fixed compile warning.
(This used to be commit 320c21b7a9)
2001-10-26 22:58:32 +00:00
Jeremy Allison
d0015fae10 Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.
Jeremy.
(This used to be commit 57b8e6d742)
2001-10-24 23:52:29 +00:00
Jim McDonough
11d830c533 Remove xstrdup since it was added to lib/util.c. Caused compile failure
(This used to be commit 43c384fa78)
2001-10-24 17:58:03 +00:00
Tim Potter
0c8ef48479 Removed unused function.
(This used to be commit ef06de2a1c)
2001-10-24 00:36:49 +00:00
Tim Potter
fb328c9cc4 Made default vfs ops static so we can use this symbol in actual modules.
(This used to be commit 398ced6eef)
2001-10-24 00:35:55 +00:00
Herb Lewis
b8fe0f6711 more compiler warnings
(This used to be commit 12c10e876e)
2001-10-23 20:39:38 +00:00
Herb Lewis
9e9b503024 .headers.stamp not getting touched if file already existed.
Not sure what the original intent was with the [ -f $@ ] test but this
prevented the touch from happening. Could whoever originally added this
target check this out?
(This used to be commit 8134908553)
2001-10-23 20:32:24 +00:00
Herb Lewis
3ea3492713 get rid of compiler warnings (casts and delete unused variables)
(This used to be commit 51cb4411df)
2001-10-23 19:10:30 +00:00
Herb Lewis
2a2cccabca IRIX compiler dies not like casts in macro args
(This used to be commit 1b3123df48)
2001-10-23 18:15:18 +00:00
Jim McDonough
c290b209c5 Remove setbuffer which caused build errors
(This used to be commit 5a482350a7)
2001-10-23 17:49:28 +00:00
Herb Lewis
6a38643472 get rid of compiler warnings
(This used to be commit 3fed17c537)
2001-10-23 17:39:03 +00:00
Jim McDonough
053f21feda Fix popt library checking
(This used to be commit 2cd33e88eb)
2001-10-23 17:12:30 +00:00
Jim McDonough
b955d94d5c Replace getopt_long with popt for parsing commandline options
(This used to be commit 0be7bf421b)
2001-10-23 14:16:59 +00:00
Jim McDonough
be6edf50c4 Add popt for parsing commandline options
(This used to be commit df34e11d84)
2001-10-23 14:16:22 +00:00
Simo Sorce
b0152aaea0 ops, some testing code in compat function let only mangled name come back.
(This used to be commit e48eb7b572)
2001-10-22 23:25:11 +00:00
Jim McDonough
a443dea5d1 server support for RAP session list function
(This used to be commit d42c28fbad)
2001-10-22 18:14:42 +00:00