summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* better method of generating the case equivalence tableAndrew Tridgell2001-10-021-22/+37
| | | | | interestingly, this shows that w2kp-jp and w2kp have the *same* case equivalence table, but it is not the same as the Samba one.
* Fixed the bug with member servers in a Samba PDC hosted domain not allowingJeremy Allison2001-10-0210-593/+629
| | | | | | other access. Problem was max time was being set to 0xffffffff, instead of 0x7fffffff. Jeremy.
* the CASETABLE torture target now generates the complete unicodeAndrew Tridgell2001-10-022-0/+75
| | | | | | | | | equivalence table for a server. This was inspired by the chargen win32 code from monyo. This takes a *long* time to run against a Samba server due to the case insensitive comparisons in the filesystem. That makes it a N^2 operation, and N is 64k. It is linear on NT.
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-02222-506/+3
|
* Added copyright (not sure who owns it though) and #include guards.Tim Potter2001-10-021-0/+25
|
* Added copyright and include guards.Tim Potter2001-10-021-1/+23
|
* honor the ACB_PWNOEXP flag in smbpasswdAndrew Tridgell2001-10-012-4/+2
|
* - fix handling of 0 last_change_time and must_change_timeAndrew Tridgell2001-10-016-74/+77
| | | | - move the arbitrary 21 day timeout to local.h
* Don't try to write the LM password in the NT password feild.Andrew Bartlett2001-09-301-1/+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
* I told Jeremy at the CIFS conference that I would sort the command listChristopher R. Hertel2001-09-301-30/+33
| | | | | | | in smbclient. Done. I had a little trouble because the "!" command is a special case and must be listed last. Awkward. Chris -)-----
* Small changes to register_vuid ahead of a larger restructure.Andrew Bartlett2001-09-301-3/+3
|
* Make header comment clearer, these are RIDs, not UIDs.Andrew Bartlett2001-09-301-2/+3
|
* Finally kill off the SMBENCRYPT() macro.Andrew Bartlett2001-09-301-2/+0
|
* merge from 2.2Gerald Carter2001-09-301-17/+0
|
* fixed in *BSDMotonobu Takahashi2001-09-291-2/+2
|
* fixed not to install in *BSD, but perhaps on Solaris, cannot installMotonobu Takahashi2001-09-291-2/+2
|
* undef the code for nowSimo Sorce2001-09-291-2/+2
|
* further devel and test kit.Simo Sorce2001-09-291-67/+264
| | | | | first tests show it still does not work. work in progress...
* not to creat gmo files from po files during makingMotonobu Takahashi2001-09-291-1/+3
| | | | | | | | this is because some platforms such as HP-UX do not have any msgfmt command. if someone updates po file, then he has to update gmo files manually and commit.
* This is the passdb section of the previously mentioned commit.Andrew Bartlett2001-09-292-65/+111
| | | | | | | | | | | | | | Of particular note is the change to pdb_free_sam() to take its sam argument by reference, allowing it to be NULLified by the SAFE_FREE() macro, and the changed to local_password_change() both to make it work and to remove the duplicate code that caused so much breakage over the last few days. - Small change in behaviour: when LOCAL_ADD_USER is set, the user doesn't actually exist locally but does exist in the passdb we don't attempt to do a GetPwnam(). (How the entry got there is another matter, and most passdbs won't allow this anyway). Andrew Bartlett
* Fix up a number of intertwined issues:Andrew Bartlett2001-09-2914-166/+232
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The big one is a global change to allow us to NULLify the free'ed pointer to a former passdb object. This was done to allow idra's SAFE_FREE() macro to do its magic, and to satisfy the input test in pdb_init_sam() for a NULL pointer to start with. This NULL pointer test was what was breaking the adding of accounts up until now, and this code has been reworked to avoid duplicating work - I hope this will avoid a similar mess-up in future. Finally, I fixed a few nasty bugs where the pdb_ fuctions's return codes were being ignored. Some of these functions malloc() and are permitted to fail. Also, this caught a nasty bug where pdb_set_lanman_password(sam, NULL) acheived precisely didilly-squat, just returning False. Now that we check the returns this bug was spotted. This could allow different LM and NT passwords. - the pdbedit code needs to start checking these too, but I havn't had a chance to fix it. I have also fixed up where some of the password changing code was using the pdb_set functions to store *internal* data. I assume this is from a previous lot of mass conversion work... Most likally (and going on past experience) I have missed somthing, probably in the LanMan password change code which I havn't yet been able to test, but this lot is in much better shape than it was before. If all this is too much to swallow (particularly for 2.2.2) then just adding a sam_pass = NULL to the particular line of passdb.c should do the trick for the ovbious bug. Andrew Bartlett
* return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.Simo Sorce2001-09-291-1/+1
|
* Add a few const statements to various odd bits of the tree. (Fixes someAndrew Bartlett2001-09-293-4/+4
| | | | warnings)
* Don't build make_printerdef in HEAD. This tool is not needed exceptGerald Carter2001-09-291-1/+1
| | | | to support 2.0.x style WIn9x driver download.
* Fixed CUPS detection - patch from Michael Sweet.Jeremy Allison2001-09-283-10/+10
| | | | Jeremy.
* How the heck I missed this I don't know, but somehow I got a copy-and-pasteAndrew Bartlett2001-09-281-16/+12
| | | | | | | | | | | | | | | error in here... Now you can change local passwords again. There is stil somthing broken about remote (via windows/sampasswd) password changing. I shall have to revise my testing, I honestly don't know how this slipped through the net. MERGE for 2.2.2. Sorry, Andrew Bartlett
* Removed smbpasswd_XX call (how did this get re-added, I removed allJeremy Allison2001-09-271-1/+1
| | | | | these yesterday ?). Jeremy.
* Sync 2.2.2 and HEAD (I will keep these the same if it kills me :-).Jeremy Allison2001-09-271-127/+103
| | | | Jeremy.
* Merge HEAD and 2.2 - try frantically to keep in sync.Jeremy Allison2001-09-271-13/+13
| | | | Jeremy.
* How often did I read the CVS commit messageVolker Lendecke2001-09-271-1/+1
| | | | | | "Always compile before commit" :-(( Volker
* get out unicode_from_buffer and buffer_from_unicode, unneeded.Simo Sorce2001-09-271-112/+139
| | | | | | | store mangled filename in dos charset and unmangled in unicode. clean ups still lot to do. againg compiled but not yet tested.
* Major update to pdbedit's import and export code, in line with reqests for itAndrew Bartlett2001-09-271-81/+83
| | | | | | | | | to use the pdb_ formatting functions. Similarly, it now uses pdb_set...() rather than accessing passdb members directly. Andrew Bartlett
* Kill unused variablesAndrew Bartlett2001-09-271-2/+0
|
* Fix memory leak in get_sampwd_entries(), reindent for clarity.Andrew Bartlett2001-09-272-74/+153
| | | | | | | | | | | | | | | | | - call pdb_reset_sam() after each getent call. Fix bug in get_group_alias_entries(), were if num_entries was zero this caused talloc() to return NULL, failing a test below with NT_STATUS_NO_MEMORY. Fix pdb_reset_sam() to correctly initalise the sam structure. Move default value code into a single place, likewise for sam freeing code. - should make things easier if we decide to malloc other strings, or get more non-zero default values. Finally, add a function in init a sam struct from a getpwnam() return. Andrew Bartlett
* sync up with 2.2Gerald Carter2001-09-271-0/+0
|
* minor fixesSimo Sorce2001-09-272-32/+15
|
* fixed compilation of tdbtortureAndrew Tridgell2001-09-271-0/+5
|
* OpenSSL merge from 2.2Gerald Carter2001-09-267-911/+966
|
* From 2.2.Volker Lendecke2001-09-261-0/+6
| | | | Volker
* merge from 2.2Gerald Carter2001-09-262-3/+3
|
* Kill of the reply.c end of the workstaion trust account mess.Andrew Bartlett2001-09-262-169/+61
| | | | | | | | | | | | | | Fix the NT errror codes, this time in line with WinXP/2k. - Return the normal error codes, expect for bad user/bad password. These map to logon failure, as a quick security hack. We follow suit. Simplfy some of the password extraction code, the auth subsytem has the intelegence to sort this stuff out, no need to do it here. Move to 'global_encrypted_passwords_negotiated' to determine the use of unencrypted hacks, replacing the current mess. Andrew Bartlett
* Process the workstation trust account code INSIDE the authenticaion subsystem,Andrew Bartlett2001-09-262-10/+40
| | | | | | just like any other logon. Matching code removal in reply.c to follow. Andrew Bartlett
* Rearrange the order of the checks in auth_smbpasswd.c, always check passwordsAndrew Bartlett2001-09-262-146/+222
| | | | | | | first. Add password expiry and 'must change before first logon' support. - This requires that the passdb be up to the job to supply the info.
* Fix this to use the plaintext password code directly, like SWAT does.Andrew Bartlett2001-09-261-7/+11
| | | | | | | | | | | This whole area needs to be cleaned up. Should this kind of passowrd change/check be permitted with encrypt passwords = yes? In any case I've also had trouble testing this, as I can't find the right software/configuration to exersise this behaviour. But its better than the previous situation. Any assistance greatly appriciated. Andrew Bartlett
* Update for new pdb_set_plaintext_passwd() interface.Andrew Bartlett2001-09-261-6/+1
|
* Make use of the pdb_set_plaintext_passwd() update to vastly simplifyAndrew Bartlett2001-09-262-66/+21
| | | | | | | | | | | decode_pw_buffer() and the samr password changing routines. And yes, I know that we can lost some information in the Unicode->UTF->Unicode bit of this, but its worth the code cleanup. This also takes into account the possability of multibyte passwords. Andrew Bartlett
* Fix the uninitialised variable, but more importantly fix the SEGFAULT.Andrew Bartlett2001-09-261-2/+4
| | | | | | | | Merge for 2.2.2 Should TDB cope with TDB pointers itself? Andrew Bartlett
* Fix up TDB_SAM with repect to case sensitvity. (need to use unix_strlower)Andrew Bartlett2001-09-261-7/+9
| | | | | | | Also attempt to make some of the syntax clearer, its confusing enought for the compiler... (it thinks that there is use of an unitilaised variable) In fact there is, see next patch...
* Fix up pdbedit to initialise its structures with the standard functions,Andrew Bartlett2001-09-261-40/+52
| | | | | | | | | | therfore ensuring sensible defaults for some values, notably account expriries which mean 'locked out' if == 0. This NEEDS to be merged into 2.2.2 or people can get wrongly initilaised TDB records. (which will only fail on future versions of samba). Andrew Bartlett