summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * - fix string len for an ucs2_to_dos function as any ucs2 char may be up to 4 ↵Simo Sorce2001-10-291-4/+81
| | | | | | | | | | | | dos hars... - addedd ascii compatibility functions
| * More spelling and grammer from Vance. <vance@digital-host.net>Andrew Bartlett2001-10-295-26/+28
| | | | | | | | | | | | Thanks! Andrew Bartlett
| * This patch applied, except without the structure changes to nmblib.cAndrew Bartlett2001-10-295-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 commit is number 4 of 4.Andrew Bartlett2001-10-2923-258/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 commit is number 3 of 4.Andrew Bartlett2001-10-2913-53/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 commit is number 2 of 4.Andrew Bartlett2001-10-295-75/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 commit is number 1 of 4.Andrew Bartlett2001-10-294-23/+70
| | | | | | | | | | | | | | | | | | 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.
| * Converted a bunch of functions to use sscanf %i instead of atoi toTim Potter2001-10-291-11/+14
| | | | | | | | allow hex or decimal rids to be specified.
| * Hey where did those 4 character tabs come from?Tim Potter2001-10-291-4/+4
| |
| * Don't reference tallocated memory that has already been disposed of. TheTim Potter2001-10-293-11/+26
| | | | | | | | cli_samr_query_userinfo function used to do this.
| * Fixed confusing debug message - it was always printing uid 0 instead of theTim Potter2001-10-291-1/+1
| | | | | | | | correct uid.
| * fix a logic bug on max size of a returned string,Simo Sorce2001-10-281-3/+9
| | | | | | | | this fixes also the bug with file renaming.
| * added de.msg from Andreas MoroderMotonobu Takahashi2001-10-281-0/+1707
| |
| * Fix up the Makefile for now (thanks herb).Andrew Bartlett2001-10-271-2/+2
| | | | | | | | | | | | | | I understand that Vance is reworking the build_options stuff, so maybe we can have better way of regenerating this in future. Andrew Bartlett
| * smbd/notify_hash.c: Merged Herb's fix.Jeremy Allison2001-10-272-3/+4
| | | | | | | | | | lib/debug.c: Fix for potential null pointer access. Jeremy.
| * Raise simultaneous open pipes from 64 to 1024 for large print serverJeremy Allison2001-10-271-1/+1
| | | | | | | | | | environments. Jeremy.
| * Added some connection checking code. Doesn't work yet though.Tim Potter2001-10-271-10/+43
| |
| * A few spelling fixes from Vance. <vance@digital-host.net>Andrew Bartlett2001-10-261-8/+8
| | | | | | | | Thanks!
| * samba-bugs@samba.org -> samba@samba.orgAndrew Bartlett2001-10-261-1/+1
| | | | | | | | The rest of this is still broken however...
| * Restore the intended behaviour for .headers.stampAndrew Bartlett2001-10-261-1/+1
| | | | | | | | | | | | | | We don't want a 'make headers' (aka make proto) to force a rebuild of the entire tree. Andrew Bartlett
| * Fixed compile warning.Tim Potter2001-10-261-1/+1
| |
| * Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.Jeremy Allison2001-10-241-2/+2
| | | | | | | | Jeremy.
| * Remove xstrdup since it was added to lib/util.c. Caused compile failureJim McDonough2001-10-241-13/+0
| |
| * Updated copyright notice.Tim Potter2001-10-241-1/+1
| |
| * Renamed global_vfs_ops to default_vfs_ops and made static.Tim Potter2001-10-241-12/+15
| | | | | | | | | | | | Make a copy of the default ops structure rather than following a pointer. This fixes the audit VFS example module!
| * Removed unused function.Tim Potter2001-10-241-68/+0
| |
| * Made default vfs ops static so we can use this symbol in actual modules.Tim Potter2001-10-241-1/+1
| |
| * Don't get stuck in an infinite loop in vfs_connect.Tim Potter2001-10-231-1/+1
| |
| * more compiler warningsHerb Lewis2001-10-238-10/+10
| |
| * .headers.stamp not getting touched if file already existed.Herb Lewis2001-10-231-1/+1
| | | | | | | | | | | | 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?
| * get rid of compiler warnings (casts and delete unused variables)Herb Lewis2001-10-238-20/+17
| |
| * IRIX compiler dies not like casts in macro argsHerb Lewis2001-10-231-1/+1
| |
| * Remove setbuffer which caused build errorsJim McDonough2001-10-231-2/+0
| |
| * get rid of compiler warningsHerb Lewis2001-10-232-2/+2
| |
| * Fix popt library checkingJim McDonough2001-10-232-13/+7
| |
| * Replace getopt_long with popt for parsing commandline optionsJim McDonough2001-10-231-136/+91
| |
| * Add popt for parsing commandline optionsJim McDonough2001-10-2319-745/+2608
| |
| * ops, some testing code in compat function let only mangled name come back.Simo Sorce2001-10-221-12/+12
| |
| * server support for RAP session list functionJim McDonough2001-10-222-0/+118
| |
| * lets try the new mangling codeSimo Sorce2001-10-222-7/+44
| | | | | | | | | | | | | | 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
| * a quick fix to get rpcclient working again. This just disablesAndrew Tridgell2001-10-224-2/+10
| | | | | | | | | | | | | | 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.
| * samr querydispinfo can change level, start index and max entries.Jean-François Micouleau2001-10-221-10/+33
| | | | | | | | | | | | added level 4 decoding. J.F.
| * allow the samr commands to work back and the help too ;-)Jean-François Micouleau2001-10-222-46/+24
| | | | | | | | J.F.
| * - fixed link order of krb5 libsAndrew Tridgell2001-10-225-134/+97
| | | | | | | | - accept a wide range of principal names in session setup
| * Fix for @ in pathname from Kian Win.Jeremy Allison2001-10-221-1/+5
| | | | | | | | Jeremy.
| * Renamed inbuilt xstrdup to smb_xstrdup.Jeremy Allison2001-10-221-5/+5
| | | | | | | | Jeremy.
| * Added xstrdup, removed static version from smbpasswd.cJeremy Allison2001-10-222-16/+14
| | | | | | | | Jeremy.
| * Added xmalloc - calls smb_panic on zero size or malloc fail.Jeremy Allison2001-10-221-1/+27
| | | | | | | | | | | | | | Added xmemdup - calls xmalloc. Made data_blob() call xmemdup. Defensive programming (I still hate the no error checking... :-). Jeremy.
| * Ok, I know it's a language thing and it shouldn't matter.... but a kerberosJeremy Allison2001-10-216-31/+32
| | | | | | | | | | name is a "principal", not a principle. English majors will complain :-). Jeremy.
| * Fix for fussy Solaris compiler.Tim Potter2001-10-211-3/+1
| |