summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2001-11-19LIBDIR and LOCKDIR are dynamically configured too.Martin Pool1-4/+9
(This used to be commit 868999ad3c82ad72f11d5b3208b0e42b1ed95096)
2001-11-19Oops, Tim says rl_completion_func_t doesn't exist in all versions ofMartin Pool1-7/+5
readline. (This used to be commit c4b44cfc3f15f9e85a36981867e534792ccb724e)
2001-11-19Quieten compiler warnings about a callback function prototype that hasMartin Pool1-1/+7
changed in recent versions of Readline. (This used to be commit d0a0d27caa04029a814d942e35fb5382bb9a492c)
2001-11-18fixed some bugs.Simo Sorce2-18/+19
(This used to be commit 37edaeddce09193450b18b1b85aa41960cb39741)
2001-11-16Fixed detection of RedHat headers. Removed another file !Jeremy Allison1-212/+0
Jeremy. (This used to be commit d70674312d8b98367ccdbbc12fe880f9f539d258)
2001-11-16I *love* removing code :-). Removed 4 files that weren't being used.Jeremy Allison2-112/+1
All this stuff was being pulled in due to *one* unneeded call to fetch a domain SID which smbpasswd already puts in the database... Jeremy. (This used to be commit 6bf2505cce7db770fd4db5b19999a78588e96b58)
2001-11-15Tidyups in the merge process.Jeremy Allison1-32/+36
Jeremy. (This used to be commit a7b45bfb713adaaad0dca3dc13139ee5a909a383)
2001-11-15FALSE -> FalseTim Potter1-1/+1
(This used to be commit 7c6529c081abe051055be5fbf3016fbea2474752)
2001-11-14Removed unused variable.Tim Potter1-1/+0
(This used to be commit c8c7da237dc17d9b785bc15b9b569caeeb6d283e)
2001-11-13Look for DOMAIN\group in group lists and ask winbind.Jeremy Allison1-68/+89
Jeremy. (This used to be commit 763fd1c78757ea640dd50ac72caf5ebbb465b3b9)
2001-11-12messed up with patches, this should be the right one,Simo Sorce1-2/+1
sorry (This used to be commit 023514a0b6170b1907696a2147ee44dc3aa4589d)
2001-11-12some bugfix and new functions,Simo Sorce3-10/+88
modified mangle.c to use mosltly acnv_????() functions. this should make also build farm happy (This used to be commit 8bb5cb27c2012b8967482255d48a1b48d3acd9db)
2001-11-10fixed, moved and added some functionsSimo Sorce2-98/+153
note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c (This used to be commit 64dde3b64fc091cda95fc4ed145595b5d79b2e01)
2001-11-07add convert_string_allocate() functionSimo Sorce1-5/+86
(This used to be commit 8b494b0be323c983b7ea3d1dcf1f61216396caec)
2001-11-05Removed totally annoying verbose debug in sid_to_string()Tim Potter1-2/+0
(This used to be commit 4f21ddb8737d3f72a84465d3384351ccd2b07d15)
2001-11-04Added missing strchr_wa.Jeremy Allison1-0/+5
Jeremy. (This used to be commit 16c5d279b97250ceb84ee6de6e5e801350c816c4)
2001-11-04a big one:Simo Sorce4-29/+319
- old mangle code has gone, the new one based on tdb seem resonably ok probably the valid.dat table need to be updated to treat wild chars as invalid ones (work ok without it) - a LOT of new string manipulation function for unicode, they are somewhat tested but a review would not be bad - some new function I will need for the new unix_convert function I'm writing, this will be renamed filename_convert and use only unicode strings. - charconv, I attached a comment, if someone wnat to look if I'm right or just was hacking to late in the night to make a sane one :) of course any bug is my responsibility an will be pleased to see patches if you find any. :-) Simo. (This used to be commit ee19f7efb6ea9216fc91cf112ac1afa691983e9d)
2001-11-04remove {} from default valid char listAndrew Tridgell1-1/+1
(This used to be commit 5dd3c7b3fb8aac7fb3a256ae40c882fb8983537f)
2001-11-03Added NT_USER_TOKEN into server_info to fix extra groups problem.Jeremy Allison1-2/+2
Got "medieval on our ass" about const warnings (as many as I could :-). Jeremy. (This used to be commit ee5e7ca547eff016818ba5c43b8ea0c9fa69b808)
2001-11-01zero the data, not a pointer to the data ...Andrew Tridgell1-1/+1
(This used to be commit eeaa80aa09736dc1c5f5f72a1437eb9d9c0d4ae7)
2001-10-31Small 'const' updates ahead of some AuthRewrite merging.Andrew Bartlett1-1/+1
(This used to be commit 3b5e72bda3263c6bdf81dfface4fae4f06b71032)
2001-10-31Parionia to ensure people don't install libsmb based programs setuid root.Andrew Bartlett1-0/+8
libsmb has not been written to be setuid, with things like LIBSMB_PROG allowing all sort of fun and games. Andrew Bartlett (This used to be commit 0c8e9339d8238de92e9146d04091694b62874c33)
2001-10-29Add a bit of 'const' for the data_blob code.Andrew Bartlett1-3/+13
Add a new data_blob_clear_free() function - that zero's out the buffer when its done. (This used to be commit b02ed7ee195ebd9060f91e117c002d661b6cc9d6)
2001-10-29More spelling and grammer from Vance. <vance@digital-host.net>Andrew Bartlett5-26/+28
Thanks! Andrew Bartlett (This used to be commit f019bed7663b4a20c1b5ab6b59fcadda17b89acd)
2001-10-29This commit is number 4 of 4.Andrew Bartlett3-9/+9
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 Bartlett2-20/+59
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 Bartlett1-3/+14
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-27smbd/notify_hash.c: Merged Herb's fix.Jeremy Allison1-1/+2
lib/debug.c: Fix for potential null pointer access. Jeremy. (This used to be commit 5a4d22dd66ab782f6161aa5a4162c0e7f1d811fb)
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-24Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 57b8e6d742addd9fa90da918ec4343d47562f0b7)
2001-10-24Removed unused function.Tim Potter1-68/+0
(This used to be commit ef06de2a1ca434ab658940146b5d6c16bf580bb3)
2001-10-23get rid of compiler warnings (casts and delete unused variables)Herb Lewis2-9/+7
(This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808)
2001-10-22a quick fix to get rpcclient working again. This just disablesAndrew Tridgell1-1/+1
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-22Added xstrdup, removed static version from smbpasswd.cJeremy Allison1-2/+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-20Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter1-4/+4
(This used to be commit b16a15a13ed7d267c6366abaeeb3ccafa5776f5e)
2001-10-20removed an unused variableAndrew Tridgell1-1/+0
(This used to be commit 9355f251656d0233395dae6978c58f4e520e069b)
2001-10-18Merge Gerry's %G change from 2.2.2.Jeremy Allison1-7/+8
Jeremy. (This used to be commit d8262286ddb6105a9d3b0730912447ea2401a3fb)
2001-10-17added basic NTLMSSP support in smbd. This is still quite rough, andAndrew Tridgell1-2/+2
loses things like username mapping. I wanted to get this in then discuss it a bit to see how we want to split up the existing session setup code (This used to be commit b74fda69bf23207c26d8b2af23910d8f2eb89875)
2001-10-14return of vsnprintf doesn't include terminationAndrew Tridgell1-1/+1
thanks to simo for spotting this (This used to be commit acd84ed762a5f50c69c79d13cb18e4204096b304)
2001-10-14bit neater talloc_asprintf() implementationAndrew Tridgell1-19/+11
(This used to be commit 8ca8875cd94dce8827ce8cb857b2d7a959ab7891)
2001-10-13introduce mangle backward compatibility functionsSimo Sorce1-0/+31
add talloc_asprintf() (This used to be commit 7264d611eff871f424d449e1ff1c7ec3f5fdde40)
2001-10-12This file is really old and not used anymore.Tim Potter1-1375/+0
(This used to be commit ffef3c386957b08994f62eca18a29554daa91d3c)
2001-10-11first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell1-2/+9
of gettext for internationalisation support. There is more to do (This used to be commit ab7f67677a1ade4669e5c2750d0a38422ea616a9)
2001-10-11initial kerberos/ADS/SPNEGO support in libsmb and smbclient. ToAndrew Tridgell2-0/+43
activate you need to: - install krb5 libraries - run configure - build smbclient - run kinit to get a TGT - run smbclient with the -k option to choose kerberos auth (This used to be commit d33057585644e1337bac743e25ed7653bfb39eef)
2001-10-09old fixes I forgot to commitSimo Sorce1-5/+5
(This used to be commit 7895593929f443c6a256d2a13035aee11bed3dbf)
2001-10-09initial support to error report in smbclient, useful when using smbclient -c ↵Simo Sorce1-1/+3
in scripts. Thanks to Claudio Cicali aka FleXer for the initial patch (This used to be commit 53b95b3c0fd087b1cade95fd8de849547ac3bfcb)
2001-10-07fixed lame valid tableAndrew Tridgell1-2/+2
(This used to be commit 67017619afed8fe10abd65d54538348d3ea92b9f)
2001-10-03fixed basic ucs2 operation on big endian boxes. Still a bit more toAndrew Tridgell1-5/+5
do, but at least you can connect now. (This used to be commit 211aeffa1a770716f798fd6ba12ab29a95555526)
2001-10-03switched over to a new method of handling uppercase/lowercase mappingsAndrew Tridgell5-75/+122
for unicode strings. The new method relies on 3 files that are mmap'd at startup to provide the mapping tables. The upcase.dat and lowcase.dat tables should be the same on all systems. The valid.dat table says what characters are valid in 8.3 names, and differs between systems. I'm committing the japanese valid.dat here, in future we need some way of automatically installing and choosing a appropriate table. This commit also adds my mini tdb based gettext replacement in intl/lang_tdb.c. I have not enabled this yet and have not removed the old gettext code as the new code is still being looked at by Monyo. Right now the code assumes that the upcase.dat, lowcase.dat and valid.dat files are installed in the Samba lib directory. That is not a good choice, but I'll leave them there until we work out the new install directory structure for Samba 3.0. simo - please look at the isvalid_w() function and think about using it in your new mangling code. That should be the final step to correctly passing the chargen test code from monyo. (This used to be commit 1c221994f118dd542a158b2db51e07d04d0e9314)