summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* More spelling and grammer from Vance. <vance@digital-host.net>Andrew Bartlett2001-10-295-26/+28
| | | | | | Thanks! Andrew Bartlett
* This commit is number 4 of 4.Andrew Bartlett2001-10-293-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 commit is number 3 of 4.Andrew Bartlett2001-10-292-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 commit is number 2 of 4.Andrew Bartlett2001-10-291-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.
* smbd/notify_hash.c: Merged Herb's fix.Jeremy Allison2001-10-271-1/+2
| | | | | lib/debug.c: Fix for potential null pointer access. Jeremy.
* A few spelling fixes from Vance. <vance@digital-host.net>Andrew Bartlett2001-10-261-8/+8
| | | | Thanks!
* Added || -> && fix from "Orwig, Paul" <PORWIG@PacificLife.com>.Jeremy Allison2001-10-241-2/+2
| | | | Jeremy.
* Removed unused function.Tim Potter2001-10-241-68/+0
|
* get rid of compiler warnings (casts and delete unused variables)Herb Lewis2001-10-232-9/+7
|
* a quick fix to get rpcclient working again. This just disablesAndrew Tridgell2001-10-221-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.
* Added xstrdup, removed static version from smbpasswd.cJeremy Allison2001-10-221-2/+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.
* Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter2001-10-201-4/+4
|
* removed an unused variableAndrew Tridgell2001-10-201-1/+0
|
* Merge Gerry's %G change from 2.2.2.Jeremy Allison2001-10-181-7/+8
| | | | Jeremy.
* added basic NTLMSSP support in smbd. This is still quite rough, andAndrew Tridgell2001-10-171-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
* return of vsnprintf doesn't include terminationAndrew Tridgell2001-10-141-1/+1
| | | | thanks to simo for spotting this
* bit neater talloc_asprintf() implementationAndrew Tridgell2001-10-141-19/+11
|
* introduce mangle backward compatibility functionsSimo Sorce2001-10-131-0/+31
| | | | add talloc_asprintf()
* This file is really old and not used anymore.Tim Potter2001-10-121-1375/+0
|
* first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell2001-10-111-2/+9
| | | | of gettext for internationalisation support. There is more to do
* initial kerberos/ADS/SPNEGO support in libsmb and smbclient. ToAndrew Tridgell2001-10-112-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
* old fixes I forgot to commitSimo Sorce2001-10-091-5/+5
|
* initial support to error report in smbclient, useful when using smbclient -c ↵Simo Sorce2001-10-091-1/+3
| | | | | | in scripts. Thanks to Claudio Cicali aka FleXer for the initial patch
* fixed lame valid tableAndrew Tridgell2001-10-071-2/+2
|
* fixed basic ucs2 operation on big endian boxes. Still a bit more toAndrew Tridgell2001-10-031-5/+5
| | | | do, but at least you can connect now.
* switched over to a new method of handling uppercase/lowercase mappingsAndrew Tridgell2001-10-035-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.
* Fixed up the change password bug when not using PAM.Jeremy Allison2001-10-021-4/+116
| | | | | | | | | | | | The problem is we were trying to use mask_match as a generic wildcard matcher for UNIX strings (like the password prompts). We can't do that - we need a unix_wild_match (re-added into lib/util.c) as the ms_fnmatch semantics for empty strings are completely wrong. This caused partial reads to be accepted as correct passwd change responses when they were not.... Also added paranioa test to stop passwd change being done as root with no %u in the passwd program string. Jeremy.
* Fixed the bug with member servers in a Samba PDC hosted domain not allowingJeremy Allison2001-10-022-2/+26
| | | | | | other access. Problem was max time was being set to 0xffffffff, instead of 0x7fffffff. Jeremy.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-0226-61/+0
|
* make strupper() and strlower() not modify the string if it doesn'tAndrew Tridgell2001-09-302-6/+16
| | | | | | need modifying that makes constant strings OK
* merge from 2.2Gerald Carter2001-09-301-17/+0
|
* Add a few const statements to various odd bits of the tree. (Fixes someAndrew Bartlett2001-09-293-4/+4
| | | | warnings)
* OpenSSL merge from 2.2Gerald Carter2001-09-262-2/+2
|
* Added Elrond patch to make se_access_check use NT datastructures, not Samba.Jeremy Allison2001-09-261-5/+8
| | | | Jeremy.
* - the inactive core of the new mangling code that use tdbSimo Sorce2001-09-251-0/+107
| | | | - some more utils for unicode string manipulation
* fixed the really awful performance problem with the stat cache when itAndrew Tridgell2001-09-251-8/+10
| | | | | ran out of primes and used a power of two hash modulus. It ended up sticking all the entries in just a few buckets. Yuck!
* added a little smbtorture test for dumping the unicode table of aAndrew Tridgell2001-09-251-1/+0
| | | | | | | | | server. This is just a framework right now - I want this to eventually replace the win32 test code from monyo The interesting this about this test is that it shows up a really horrible performance bug in our stat cache code. I'll see if I can fix it.
* allow all ucs2 chars in utf8, rather than mapping some to a singleAndrew Tridgell2001-09-251-10/+1
| | | | char like libiconv does
* Fixed enumeration of large numbers of groups from a Samba DC.Jeremy Allison2001-09-251-1/+5
| | | | | Tidied up debug messages in lib/messages.c Jeremy.
* fixed a silly off by 1 bugAndrew Tridgell2001-09-241-0/+3
|
* Ignore unmappable (NT Authority, BUILTIN etc.) SIDs in an ACL set.Jeremy Allison2001-09-221-0/+24
| | | | Jeremy.
* Fix (I hope) compile on HP-UX. Found by the build farm.Andrew Bartlett2001-09-191-1/+1
|
* fixed ctemp in server and client. It turns out that ctemp on NT is ↵Andrew Tridgell2001-09-171-3/+4
| | | | completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
* move to SAFE_FREE()Simo Sorce2001-09-1723-168/+129
|
* Restore the profiling data shmem parinoia. This whole area needs to beAndrew Bartlett2001-09-151-0/+10
| | | | fixed - an mmaped file or the like would be a good idea.
* added a new global option "hostname lookups = yes/no"Andrew Tridgell2001-09-131-0/+8
| | | | | | | | This should finally kill off the remaining places where we attempt reverse lookups of the IP of the client. It may be that some pam modules called via the session code will need "hostname lookups = yes" but I've left it off by default as most sites don't need it and so many sites have broken reverse maps
* convert more code to use XFILEAndrew Tridgell2001-09-102-7/+7
|
* declare dbf in one spotAndrew Tridgell2001-09-102-2/+0
|
* added xfileAndrew Tridgell2001-09-101-0/+340
|