summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Removed unused variable.Tim Potter2001-11-141-1/+0
|
* Look for DOMAIN\group in group lists and ask winbind.Jeremy Allison2001-11-131-68/+89
| | | | Jeremy.
* messed up with patches, this should be the right one,Simo Sorce2001-11-121-2/+1
| | | | sorry
* some bugfix and new functions,Simo Sorce2001-11-123-10/+88
| | | | | modified mangle.c to use mosltly acnv_????() functions. this should make also build farm happy
* fixed, moved and added some functionsSimo Sorce2001-11-102-98/+153
| | | | note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c
* add convert_string_allocate() functionSimo Sorce2001-11-071-5/+86
|
* Removed totally annoying verbose debug in sid_to_string()Tim Potter2001-11-051-2/+0
|
* Added missing strchr_wa.Jeremy Allison2001-11-041-0/+5
| | | | Jeremy.
* a big one:Simo Sorce2001-11-044-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.
* remove {} from default valid char listAndrew Tridgell2001-11-041-1/+1
|
* Added NT_USER_TOKEN into server_info to fix extra groups problem.Jeremy Allison2001-11-031-2/+2
| | | | | Got "medieval on our ass" about const warnings (as many as I could :-). Jeremy.
* zero the data, not a pointer to the data ...Andrew Tridgell2001-11-011-1/+1
|
* Small 'const' updates ahead of some AuthRewrite merging.Andrew Bartlett2001-10-311-1/+1
|
* Parionia to ensure people don't install libsmb based programs setuid root.Andrew Bartlett2001-10-311-0/+8
| | | | | | | libsmb has not been written to be setuid, with things like LIBSMB_PROG allowing all sort of fun and games. Andrew Bartlett
* Add a bit of 'const' for the data_blob code.Andrew Bartlett2001-10-291-3/+13
| | | | | Add a new data_blob_clear_free() function - that zero's out the buffer when its done.
* 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.