summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2001-10-29This commit is number 4 of 4.Andrew Bartlett23-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 used to be commit c95f5aeb9327347674589ae313b75bee3bf8e317)
2001-10-29This commit is number 3 of 4.Andrew Bartlett13-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 used to be commit e7634f81c5116ff4addfb7e495f54b6bb78e8f77)
2001-10-29This commit is number 2 of 4.Andrew Bartlett5-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 used to be commit 8f607810eb24ed1157bbd2e896c2c167bc34d986)
2001-10-29This commit is number 1 of 4.Andrew Bartlett4-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. (This used to be commit a8971a5448cf6d203b379c3ed01e331d5263c9ee)
2001-10-29Converted a bunch of functions to use sscanf %i instead of atoi toTim Potter1-11/+14
allow hex or decimal rids to be specified. (This used to be commit d93488b953337890a17de124f88cf2066f733c40)
2001-10-29Hey where did those 4 character tabs come from?Tim Potter1-4/+4
(This used to be commit 49d47238267c3a2e0fc466178b779a692a7809ff)
2001-10-29Don't reference tallocated memory that has already been disposed of. TheTim Potter3-11/+26
cli_samr_query_userinfo function used to do this. (This used to be commit da2c167660ec12360354f96dc672d935f58dd9c0)
2001-10-29Fixed confusing debug message - it was always printing uid 0 instead of theTim Potter1-1/+1
correct uid. (This used to be commit ad30a35ebc04f6a56c3ffb28bfb793557cf1fdf7)
2001-10-28fix a logic bug on max size of a returned string,Simo Sorce1-3/+9
this fixes also the bug with file renaming. (This used to be commit 5246d7609c3aff658fcd08a1f1c1bb6e11509e35)
2001-10-28added de.msg from Andreas MoroderMotonobu Takahashi1-0/+1707
(This used to be commit bc909797efcb9b13480d1a77e1429473bb107ed4)
2001-10-27Fix up the Makefile for now (thanks herb).Andrew Bartlett1-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 (This used to be commit a228e9b39f0a5642d5acaba90a92ba0b29adf689)
2001-10-27smbd/notify_hash.c: Merged Herb's fix.Jeremy Allison2-3/+4
lib/debug.c: Fix for potential null pointer access. Jeremy. (This used to be commit 5a4d22dd66ab782f6161aa5a4162c0e7f1d811fb)
2001-10-27Raise simultaneous open pipes from 64 to 1024 for large print serverJeremy Allison1-1/+1
environments. Jeremy. (This used to be commit e5f8147d02b57198f684c6686dfa497c6732ff44)
2001-10-27Added some connection checking code. Doesn't work yet though.Tim Potter1-10/+43
(This used to be commit 4f4dace5772780cf4eedc0ebca1c60d04171eb74)
2001-10-26A few spelling fixes from Vance. <vance@digital-host.net>Andrew Bartlett1-8/+8
Thanks! (This used to be commit 5fda15463a63018d917fbd7d6d9dd1fb0b2558cf)
2001-10-26samba-bugs@samba.org -> samba@samba.orgAndrew Bartlett1-1/+1
The rest of this is still broken however... (This used to be commit 6cce6350caf034bdf6e5b6417e762bebc3dd97c8)
2001-10-26Restore the intended behaviour for .headers.stampAndrew Bartlett1-1/+1
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 8c0cb50387cbbcca89d12cefae40a6a02d147ea4)
2001-10-26Fixed compile warning.Tim Potter1-1/+1
(This used to be commit 320c21b7a9e0a914b8a9523775df8895cb41256f)
2001-10-24Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 57b8e6d742addd9fa90da918ec4343d47562f0b7)
2001-10-24Remove xstrdup since it was added to lib/util.c. Caused compile failureJim McDonough1-13/+0
(This used to be commit 43c384fa7854a9592ce5e5b67cb650c91ea09a76)
2001-10-24Removed unused function.Tim Potter1-68/+0
(This used to be commit ef06de2a1ca434ab658940146b5d6c16bf580bb3)
2001-10-24Made default vfs ops static so we can use this symbol in actual modules.Tim Potter1-1/+1
(This used to be commit 398ced6eef7e52441ddc59fef70e4a50a96a73b7)
2001-10-23more compiler warningsHerb Lewis8-10/+10
(This used to be commit 12c10e876ea528fdf33e8ecfe42ab0ebb346b143)
2001-10-23.headers.stamp not getting touched if file already existed.Herb Lewis1-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? (This used to be commit 813490855339cffa31c8734ecd362eba7585bda2)
2001-10-23get rid of compiler warnings (casts and delete unused variables)Herb Lewis8-20/+17
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
2001-10-23IRIX compiler dies not like casts in macro argsHerb Lewis1-1/+1
(This used to be commit 1b3123df48ca586b3d9c86a152354690836f6beb)
2001-10-23Remove setbuffer which caused build errorsJim McDonough1-2/+0
(This used to be commit 5a482350a74e255b8db1ea3c8e76654d6f089f51)
2001-10-23get rid of compiler warningsHerb Lewis2-2/+2
(This used to be commit 3fed17c537985177d8f54d03b71fda04ff930d5d)
2001-10-23Fix popt library checkingJim McDonough2-13/+7
(This used to be commit 2cd33e88eb5ed88da90ddfd50a1ec96a2053479a)
2001-10-23Replace getopt_long with popt for parsing commandline optionsJim McDonough1-136/+91
(This used to be commit 0be7bf421be5ccff295a0d36331e915fce31796f)
2001-10-23Add popt for parsing commandline optionsJim McDonough19-745/+2608
(This used to be commit df34e11d84a6fe89dc6654eb10de0a49383e1dea)
2001-10-22ops, some testing code in compat function let only mangled name come back.Simo Sorce1-12/+12
(This used to be commit e48eb7b572de10481e928fb55243f47e8a3aa446)
2001-10-22server support for RAP session list functionJim McDonough2-0/+118
(This used to be commit d42c28fbadf577a23fb8c1da9e1c64a2f34fe133)
2001-10-22lets try the new mangling codeSimo Sorce2-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 (This used to be commit 1ffacd2068a896d36a9e56b6e28c63e2f7e98762)
2001-10-22a quick fix to get rpcclient working again. This just disablesAndrew Tridgell4-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. (This used to be commit 3f919b4360b3bfcc133f7d88bc5177e9d93f2db2)
2001-10-22samr querydispinfo can change level, start index and max entries.Jean-François Micouleau1-10/+33
added level 4 decoding. J.F. (This used to be commit 0573caa91bdff361e3e864d3fd39d450e3738580)
2001-10-22allow the samr commands to work back and the help too ;-)Jean-François Micouleau2-46/+24
J.F. (This used to be commit 0157fdc8a291ba9872757fb6cf5e16e98058a034)
2001-10-22- fixed link order of krb5 libsAndrew Tridgell5-134/+97
- accept a wide range of principal names in session setup (This used to be commit 672df66296f540b606aa43effab5f021b8978e4b)
2001-10-22Fix for @ in pathname from Kian Win.Jeremy Allison1-1/+5
Jeremy. (This used to be commit 070fd5180fef921efb363ff24f04a298254f108b)
2001-10-22Renamed inbuilt xstrdup to smb_xstrdup.Jeremy Allison1-5/+5
Jeremy. (This used to be commit cf99f9361370c521f28dcced008cbfec9fc38de5)
2001-10-22Added xstrdup, removed static version from smbpasswd.cJeremy Allison2-16/+14
Jeremy. (This used to be commit d01a9e5974d80ee8be2f7a20aeaae5826325d035)
2001-10-22Added xmalloc - calls smb_panic on zero size or malloc fail.Jeremy Allison1-1/+27
Added xmemdup - calls xmalloc. Made data_blob() call xmemdup. Defensive programming (I still hate the no error checking... :-). Jeremy. (This used to be commit 2cc262278f9d4892cf2485d7a73d88bc0e7559a8)
2001-10-21Ok, I know it's a language thing and it shouldn't matter.... but a kerberosJeremy Allison6-31/+32
name is a "principal", not a principle. English majors will complain :-). Jeremy. (This used to be commit b668d7d656cdd066820fb8044f24bcd4fda29524)
2001-10-21Fix for fussy Solaris compiler.Tim Potter1-3/+1
(This used to be commit d50005d4c118ae32d1ddbdee4feec479db4682b9)
2001-10-21patch for neater output() function from vanceAndrew Tridgell1-351/+193
(This used to be commit 2472ecf7fc510115489baf0a888b511446b9c1fd)
2001-10-21Fix for compilation on non-krb5 systemsAndrew Bartlett1-1/+1
(This used to be commit 44bdb8b12b3d6a7bf3148c2ac651a79f10776db6)
2001-10-21change smbd to use HOST/hostname principle form until I work out howAndrew Tridgell1-22/+18
to use the other form in netjoin smb_wct is a char, not a word (This used to be commit 3dbb48b188980cf6c869dc762e3039dd375bf392)
2001-10-21change smbd to use HOST/hostname principle form until I work out howAndrew Tridgell1-1/+3
to use the other form in netjoin (This used to be commit 58cfa13d6576bd34ceed7ba6ad52bced96e50544)
2001-10-21made smbclient cope better with arbitrary principle formsAndrew Tridgell3-21/+10
(This used to be commit d1341d74b7aa5f6b3f72e5409b245f87f1ad670b)
2001-10-21support both old and new kerberos OIDsAndrew Tridgell2-2/+3
(This used to be commit eac164c7e650a8f855e7b662b126a5dfc5516927)