1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-14 01:57:53 +03:00

6577 Commits

Author SHA1 Message Date
Andrew Bartlett
e7634f81c5 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
-
Andrew Bartlett
8f607810eb 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.
-
Andrew Bartlett
a8971a5448 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.
-
Tim Potter
d93488b953 Converted a bunch of functions to use sscanf %i instead of atoi to
allow hex or decimal rids to be specified.
-
Tim Potter
49d4723826 Hey where did those 4 character tabs come from? -
Tim Potter
da2c167660 Don't reference tallocated memory that has already been disposed of. The
cli_samr_query_userinfo function used to do this.
-
Tim Potter
ad30a35ebc Fixed confusing debug message - it was always printing uid 0 instead of the
correct uid.
-
Simo Sorce
5246d7609c fix a logic bug on max size of a returned string,
this fixes also the bug with file renaming.
-
Motonobu Takahashi
bc909797ef added de.msg from Andreas Moroder -
Andrew Bartlett
a228e9b39f 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
-
Jeremy Allison
5a4d22dd66 smbd/notify_hash.c: Merged Herb's fix.
lib/debug.c: Fix for potential null pointer access.
Jeremy.
-
Jeremy Allison
e5f8147d02 Raise simultaneous open pipes from 64 to 1024 for large print server
environments.
Jeremy.
-
Tim Potter
4f4dace577 Added some connection checking code. Doesn't work yet though. -
Andrew Bartlett
5fda15463a A few spelling fixes from Vance. <vance@digital-host.net>
Thanks!
-
Andrew Bartlett
6cce6350ca samba-bugs@samba.org -> samba@samba.org
The rest of this is still broken however...
-
Andrew Bartlett
8c0cb50387 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
-
Tim Potter
320c21b7a9 Fixed compile warning. -
Jeremy Allison
57b8e6d742 Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.
Jeremy.
-
Jim McDonough
43c384fa78 Remove xstrdup since it was added to lib/util.c. Caused compile failure -
Tim Potter
86de168ea9 Updated copyright notice. -
Tim Potter
91ab6f75d9 Renamed global_vfs_ops to default_vfs_ops and made static.
Make a copy of the default ops structure rather than following a pointer.

This fixes the audit VFS example module!
-
Tim Potter
ef06de2a1c Removed unused function. -
Tim Potter
398ced6eef Made default vfs ops static so we can use this symbol in actual modules. -
Tim Potter
69275e4f0f Don't get stuck in an infinite loop in vfs_connect. -
Herb Lewis
12c10e876e more compiler warnings -
Herb Lewis
8134908553 .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?
-
Herb Lewis
51cb4411df get rid of compiler warnings (casts and delete unused variables) -
Herb Lewis
1b3123df48 IRIX compiler dies not like casts in macro args -
Jim McDonough
5a482350a7 Remove setbuffer which caused build errors -
Herb Lewis
3fed17c537 get rid of compiler warnings -
Jim McDonough
2cd33e88eb Fix popt library checking -
Jim McDonough
0be7bf421b Replace getopt_long with popt for parsing commandline options -
Jim McDonough
df34e11d84 Add popt for parsing commandline options -
Simo Sorce
e48eb7b572 ops, some testing code in compat function let only mangled name come back. -
Jim McDonough
d42c28fbad server support for RAP session list function -
Simo Sorce
1ffacd2068 lets try the new mangling code
all the calls go through a compatibility interface will
change that soon
a new mangle.tdb file will be set in the lock directory
it contains a static mapping longname<->manglename
-
Andrew Tridgell
3f919b4360 a quick fix to get rpcclient working again. This just disables
NTLMSSP in cli_establish_connection()

What we really need to do is kill off the pwd_cache code. It is horrible,
and assumes the challenge comes in the negprot reply.
-
Jean-François Micouleau
0573caa91b samr querydispinfo can change level, start index and max entries.
added level 4 decoding.

	J.F.
-
Jean-François Micouleau
0157fdc8a2 allow the samr commands to work back and the help too ;-)
J.F.
-
Andrew Tridgell
672df66296 - fixed link order of krb5 libs
- accept a wide range of principal names in session setup
-
Jeremy Allison
070fd5180f Fix for @ in pathname from Kian Win.
Jeremy.
-
Jeremy Allison
cf99f93613 Renamed inbuilt xstrdup to smb_xstrdup.
Jeremy.
-
Jeremy Allison
d01a9e5974 Added xstrdup, removed static version from smbpasswd.c
Jeremy.
-
Jeremy Allison
2cc262278f Added xmalloc - calls smb_panic on zero size or malloc fail.
Added xmemdup - calls xmalloc.
Made data_blob() call xmemdup.
Defensive programming (I still hate the no error checking... :-).
Jeremy.
-
Jeremy Allison
b668d7d656 Ok, I know it's a language thing and it shouldn't matter.... but a kerberos
name is a "principal", not a principle. English majors will complain :-).
Jeremy.
-
Tim Potter
d50005d4c1 Fix for fussy Solaris compiler. -
Andrew Tridgell
2472ecf7fc patch for neater output() function from vance -
Andrew Bartlett
44bdb8b12b Fix for compilation on non-krb5 systems -
Andrew Tridgell
3dbb48b188 change smbd to use HOST/hostname principle form until I work out how
to use the other form in netjoin

smb_wct is a char, not a word
-
Andrew Tridgell
58cfa13d65 change smbd to use HOST/hostname principle form until I work out how
to use the other form in netjoin
-