summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
| * fix a few definesGerald Carter2002-02-271-0/+1
| |
| * bcopy must DIE ! Stop people creeping use of bcopy back into the codeJeremy Allison2002-02-261-0/+5
| | | | | | | | | | (and yes I know who you are..... :-). Jeremy.
| * Merge of printing performance fixes from appliance.Tim Potter2002-02-251-1/+1
| |
| * Added error for invalid form size.Tim Potter2002-02-251-0/+1
| |
| * Add the pdb_plugin module from Jelmer Vernooij <jelmer@nl.linux.org>.Andrew Bartlett2002-02-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This allow the user to select 'passdb backend = plugin : /path/to/plugin.so : pluging args' And load any arbitary plugin. Apparently Jelmer has a mysql plugin in the works - hence this patch. We probably need to rework the interface a bit before 3.0 (add versioning of some kind) but this is a good start. Andrew Bartlett
| * Patch from Hasch@t-online.de (Juergen Hasch) to add UTF-8 as an explictAndrew Bartlett2002-02-191-2/+2
| | | | | | | | | | | | | | character set for conversion. To be used in Winbind and the 'net ads' commands. Andrew Bartlett
| * Added some splint annotations from andreas.Tim Potter2002-02-162-0/+14
| |
| * Removed some random crap that isn't used anymore.Tim Potter2002-02-162-48/+0
| |
| * Add ability to extend ads modification list on the fly. Added ADS_MODLIST type.Jim McDonough2002-02-111-0/+6
| |
| * Bring printing in HEAD inline with 2.2.x and app-head.Jeremy Allison2002-02-091-2/+3
| | | | | | | | Jeremy.
| * preparing for release of 3.0-alpha15Samba Release Account2002-02-091-1/+1
| |
| * Change ADS_ERROR family of macros - removed semicolon from the end, since ↵Jim McDonough2002-02-021-4/+4
| | | | | | | | they were only being used correctly in one location, and all other assumed the semicolon wasn't there. Amazing that none of them mattered syntactically, until today.
| * Add ads printer informationJim McDonough2002-02-011-0/+55
| |
| * Added some constants for the flags field in the FORM_1 structure.Tim Potter2002-01-311-1/+5
| | | | | | | | | | The level2 field in SPOOL_Q_ADDFORM is probably part of the FORM structure as a discriminated union.
| * Added constant for WERR_FILE_EXISTS.Tim Potter2002-01-311-0/+1
| |
| * preparing for release of 3.0-alpha14Samba Release Account2002-01-301-1/+1
| |
| * Added wrepld_proto.hTim Potter2002-01-301-0/+1
| |
* | making release version 2.2.4Gerald Carter2002-05-021-1/+1
| |
* | syncing up with SAMBA_2_2 treeGerald Carter2002-05-011-59/+0
| |
* | Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-3021-630/+1288
| | | | | | | | Jeremy.
* | preparing for release of 2.2.3aSamba Release Account2002-02-071-1/+1
| |
* | Fix HPUX less than 11.x build.Jeremy Allison2002-02-051-0/+3
| |
* | Last changes (fingers crossed :-).Jeremy Allison2002-02-021-1/+1
| | | | | | | | Jeremy.
* | Sync for release.Jeremy Allison2002-02-011-0/+1
| | | | | | | | Jeremy.
* | Merging for release.Jeremy Allison2002-02-011-32/+0
| | | | | | | | Jeremy.
* | Move over to RELEASE branch.Jeremy Allison2002-02-0138-2024/+3386
| | | | | | | | Jeremy.
* | This commit was manufactured by cvs2svn to create branchcvs2svn Import User2002-01-301-0/+507
|\| | | | | 'SAMBA_2_2_RELEASE'.
| * Removed version number from file header.Tim Potter2002-01-3056-104/+55
| | | | | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
| * Move the lsa code across to the changed args for lookup_name, and surround itAndrew Bartlett2002-01-261-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | in become_root()/unbecome_root(). Also only allocate the memory the client reqests - and don't allow the client to trigger an SMB_ASSERT if they ask for 'more'. Up the maximum number of sids allowed, and note that this is an arbiary guess, and can be raised without consequence. Andrew Bartlett
| * This always points at a string literal, so it probably should be 'const'.Andrew Bartlett2002-01-261-1/+1
| |
| * Fixed ADDPRINTEREX to take a devmode and a security descriptor...Jeremy Allison2002-01-261-9/+4
| | | | | | | | Jeremy.
| * rewrote nmbd's wins backend to use a tdb instead of a flat text file.Jean-François Micouleau2002-01-251-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | Changed the way the wins record are handled in memory. Now they are living much longer with the different states: active, released and tombstone. Also added a version ID, some wins flags and the wins owner ip address to the namrec->data struct, and a function to process messages sent by the wins replication daemon. the initiate_wins_processing() function is not correct, I'll fix it later. J.F.
| * new message type for nmbdJean-François Micouleau2002-01-251-0/+1
| | | | | | | | J.F.
| * Return correct RPC fault PDU on bad handle incoming.Jeremy Allison2002-01-251-0/+6
| | | | | | | | Jeremy.
| * minor fixesSimo Sorce2002-01-251-4/+3
| |
| * This is another *BIG* change...Andrew Bartlett2002-01-203-4/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Samba now features a pluggable passdb interface, along the same lines as the one in use in the auth subsystem. In this case, only one backend may be active at a time by the 'normal' interface, and only one backend per passdb_context is permitted outside that. This pluggable interface is designed to allow any number of passdb backends to be compiled in, with the selection at runtime. The 'passdb backend' paramater has been created (and documented!) to support this. As such, configure has been modfied to allow (for example) --with-ldap and the old smbpasswd to be selected at the same time. This patch also introduces two new backends: smbpasswd_nua and tdbsam_nua. These two backends accept 'non unix accounts', where the user does *not* exist in /etc/passwd. These accounts' don't have UIDs in the unix sense, but to avoid conflicts in the algroitmic mapping of RIDs, they use the values specified in the 'non unix account range' paramter - in the same way as the winbind ranges are specifed. While I was at it, I cleaned up some of the code in pdb_tdb (code copied directly from smbpasswd and not really considered properly). Most of this was to do with % macro expansion on stored data. It isn't easy to get the macros into the tdb, and the first password change will 'expand' them. tdbsam needs to use a similar system to pdb_ldap in this regard. This patch only makes minor adjustments to pdb_nisplus and pdb_ldap, becouse I don't have the test facilities for these. I plan to incoroprate at least pdb_ldap into this scheme after consultation with Jerry. Each (converted) passdb module now no longer has any 'static' variables, and only exports 1 init function outside its .c file. The non-unix-account support in this patch has been proven! It is now possible to join a win2k machine to a Samba PDC without an account in /etc/passwd! Other changes: Minor interface adjustments: pdb_delete_sam_account() now takes a SAM_ACCOUNT, not a char*. pdb_update_sam_account() no longer takes the 'override' argument that was being ignored so often (every other passdb backend). Extra checks have been added in some places. Minor code changes: smbpasswd no longer attempts to initialise the passdb at startup, this is now done on first use. pdbedit has lost some of its 'machine account' logic, as this behaviour is now controlled by the passdb subsystem directly. The samr subsystem no longer calls 'local password change', but does the pdb interactions directly. This allow the ACB_ flags specifed to be transferred direct to the backend, without interference. Doco: I've updated the doco to reflect some of the changes, and removed some paramters no longer applicable to HEAD.
| * Kill off another ugly wart from the side of the passdb subsystem.Andrew Bartlett2002-01-203-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | This time its the pdb_getsampwuid() function - which was only being used by the SAMR rpc subsystem to gain a 'user session key'. This 'user session key' is actually generated at login time, and the other changes here simply move that data around. This also means that (when I check some details) we will be able to use the user session key, even when we are not actually the DC, becouse its one of the components of the info3 struct returned on logon. Andrew Bartlett
| * This is the current patch from Luke Leighton <lckl@samba-tng.org> to add aAndrew Bartlett2002-01-201-8/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | degree of seperation betwen reading/writing the raw NamedPipe SMB packets and the matching operations inside smbd's RPC components. This patch is designed for no change in behaviour, and my tests hold that to be true. This patch does however allow for the future loadable modules interface to specify function pointers in replacement of the fixed state. The pipes_struct has been split into two peices, with smb_np_struct taking the information that should be generic to where the data ends up. Some other minor changes are made: we get another small helper function in util_sock.c and some of the original code has better failure debugs and variable use. (As per on-list comments). Andrew Bartlett
| * A nice *big* change to the fundemental way we do things.Andrew Bartlett2002-01-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Samba (ab)uses the returns from getpwnam() a lot - in particular it keeps them around for a long time - often past the next call... This adds a getpwnam_alloc and a getpwuid_alloc to the collection. These function as expected, returning a malloced structure that can be free()ed with passwd_free(&passwd). This patch also cuts down on the number of calls to getpwnam - mostly by taking advantage of the fact that the passdb interface is already case-insensiteve. With this patch most of the recursive cases have been removed (that I know of) and the problems are reduced further by not using the sys_ interface in the new code. This means that pointers to the cache won't be affected. (This is a tempoary HACK, I intend to kill the password cache entirly). The only change I'm a little worried about is the change to rpc_server/srv_samr_nt.c for private groups. In this case we are getting groups from the new group mapping DB. Do we still need to check for private groups? I've toned down the check to a case sensitve match with the new code, but we might be able to kill it entirly. I've also added a make_modifyable_passwd() function, that copies a passwd struct into the form that the old sys_getpw* code provided. As far as I can tell this is only actually used in the pass_check.c crazies, where I moved the final 'special case' for shadow passwords (out of _Get_Pwnam()). The matching case for getpwent() is dealt with already, in lib/util_getent.c Also included in here is a small change to register the [homes] share at vuid creation rather than just in one varient of the session setup. (This picks up the SPNEGO cases). The home directory is now stored on the vuid, and I am hoping this might provide a saner way to do %H substitions. TODO: Kill off remaining Get_Pwnam_Modify calls (they are not needed), change the remaining sys_getpwnam() callers to use getpwnam_alloc() and move Get_Pwnam to return an allocated struct. Andrew Bartlett
| * Added some guards.Tim Potter2002-01-171-0/+4
| |
| * Merged in %S fixes and XX_NOT_CHANGED fixes from 2.2.Jeremy Allison2002-01-161-3/+3
| | | | | | | | Jeremy.
| * Fixup error mapping so we have only one table containing errno -> dos error ↵Jeremy Allison2002-01-161-0/+7
| | | | | | | | | | | | | | -> NT STATUS maps. Fixes problem with disk full returning incorrect error. Jeremy.
| * Added CIFS UNIX extension code to client.Jeremy Allison2002-01-161-0/+6
| | | | | | | | Jeremy.
| * At leadt don't lose this - I need to re-sync trans2.c between 2.2.x andJeremy Allison2002-01-161-27/+66
| | | | | | | | | | HEAD soon. Jeremy.
| * Roll back PSTRING_SANCTIFY patch; just leave non-controversial typeMartin Pool2002-01-162-40/+4
| | | | | | | | and constness changes.
| * Split pstring definitions into their own header.Martin Pool2002-01-152-53/+72
| |
| * Integrate with PSTRING_SANCTIFY.Martin Pool2002-01-151-4/+4
| |
| * Change the passdb interface to use allocated strings.Andrew Bartlett2002-01-151-13/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These strings are allocated using talloc(), either using its own memory context stored on the SAM_ACCOUNT or one supplied by the caller. The pdb_init_sam() and pdb_free_sam() function have been modifed so that a call to pdb_free_sam() will either clean up (remove hashes from memory) and destroy the TALLOC_CTX or just clean up depending on who supplied it. The pdb_init_sam and pdb_free_sam functions now also return an NTSTATUS, and I have modified the 3 places that actually checked these returns. The only nasty thing about this patch is the small measure needed to maintin interface compatability - strings set to NULL are actually set to "". This is becouse there are too many places in Samba that do strlen() on these strings without checking if they are NULL pointers. A supp patch will follow to set all strings to "" in pdb_default_sam(). Andrew Bartlett
| * Removed MAXSTATUS which was set incorrectly - thus causing tdb traversalJeremy Allison2002-01-141-1/+2
| | | | | | | | | | | | of the connections db on smbd startup. This should fix the Solaris large load bug.... (fingers crossed). Jeremy.
| * PSTRING_SANCTIFY:Martin Pool2002-01-141-3/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you define this, pstring and fstring become distinguished types, so that it's harder to accidentally overflow them by for example passing an fstring on the lhs of pstrcpy. The types are defined as one-element union arrays so that with "fstring f" the name "f" will be a pointer and with a big hammer you can cast it to (char *). So code that tries to just use it directly will get a loud warning, but hopefully nothing worse. To pass them to non-pstring-aware functions, use PSTR and check that the function takes a const. They should almost never be modified except by special calls. In those unusual cases, use PSTR_MUTABLE. This is off by default so as not to produce too many warnings. As the code is vetted it can become the default.