summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Add talloc_asprintf_append, which grows an existing string buffer toMartin Pool2002-01-031-0/+6
| | | | | contain new print-formatted information. (Also talloc_vasprintf_append.) Idea borrowed from glib.
* Welcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE toTim Potter2002-01-031-0/+3
| | | | | | | stop smb_macros.h and tdb.h from fighting with each other. I tried to rearrange the #include file order but that breaks other stuff. Aargh!
* Removed unused #defineTim Potter2002-01-031-1/+0
|
* removed stuff I wasn't usingGerald Carter2002-01-021-49/+0
|
* ooops./ forgot oneGerald Carter2002-01-021-1/+1
|
* Actually enforce the passdb API.Andrew Bartlett2002-01-021-48/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | Thou shalt not reference SAM_ACCOUNT members directly - always use pdb_get/pdb_set. This is achived by making the whole of SAM_ACCOUNT have a .private member, where the real members live. This caught a pile of examples, and these have beeen fixed. The pdb_get..() functions are 'const' (have been for some time) and this required a few small changes to constify other functions. I've also added some debugs to the pdb get and set, they can be removed if requested. I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb interface, but I need the flags info to do it properly. The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result. Finally, any and all testing is always appriciated - but the basics seem to work. Andrew Bartlett
* Make user enumeration work for w2k and win9x.Jeremy Allison2002-01-021-1/+4
| | | | | This means different return sizes depending on client bugs. This sucks :-(. Jeremy.
* Doc.Martin Pool2002-01-021-2/+1
|
* struct cli_state remembers the pipe name that it's talking to, if any,Martin Pool2002-01-021-0/+3
| | | | so that we can print it in later debug messages.
* renamed ans1.h to asn_1.h to prevent conflict caused by krb5 headersAndrew Tridgell2002-01-012-1/+1
| | | | on some platforms using "" instead of <> in include statements
* A farily large commit:Andrew Bartlett2002-01-011-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move rpc_client/cli_trust.c to smbd/change_trust_pw.c - It hasn't been used by anything else since smbpasswd lost its -j - Add a TALLOC_CTX to the auth subsytem. These are only valid for the length of the calls to the individual modules, if you want a longer context hide it in your private data. Similarly, all returns (like the server_info) should still be malloced. - Move the 'ntdomain' module (security=domain in oldspeak) over to use the new libsmb domain logon code. Also rework much of the code to use some better helper functions for the connection - getting us much better error returns (the new code is NTSTATUS). The only remaining thing to do is to figure out if tpot's 0xdead 0xbeef for the LUID feilds is sufficient, or if we should do random LUIDs as per the old code. Similarly, I'll move winbind over to this when I get a chance. This leaves the SPOOLSS code and some cli_pipe code as the only stuff still in rpc_client, at least as far as smbd is concerned. While I've given this a basic rundown, any testing is as always appriciated. Andrew Bartlett
* Fixed enumeration of a large (<1500) users from a Samba PDC to a W2kJeremy Allison2001-12-311-1/+1
| | | | | | | | | member server. Firstly, use the same max enumeration size (0x400) as W2K uses, otherwise W2K won't ask for any more. Secondly, if a enumeration request with a non-zero offset comes in on a handle that hasn't started an enumeration, don't bitch about it (return NT_STATUS_UNSUCCESSFUL), just load the db on that handle and return at that offset. Jeremy.
* cope with systems that don't have full gssapi libsAndrew Tridgell2001-12-312-2/+3
|
* Add 'net rpc shutdown' and 'net rpc abortshutdown'.Andrew Bartlett2001-12-311-0/+4
| | | | | | | | These two little features are very useful, but the passing of options about needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out until the main popt loop can be convinced not to chew on the options :-( Andrew Bartlett
* some merges from 2.2. Still need to merge in changes from pdb_tdb.cGerald Carter2001-12-311-0/+1
| | | | | but it will take more time as I don't want to loose any fixes that are only in HEAD.
* Make Samba compile on RH 6.2 again.Andrew Bartlett2001-12-302-0/+7
| | | | | | | | | | | We now include the libber.h file if required, but currently we just don't use ldap. (I'll chase this up). In the meantime, I've moved the ads_status code about, its now in its own file, and has a couple of #ifdefs to allow smbd to link - becouse the lack of LDAP caused HAVE_ADS to be undefined. (I hope its not too ugly). Andrew Bartlett
* When running interactive we want to set our own process group forJeremy Allison2001-12-301-1/+4
| | | | | signal management. Jeremy.
* moving SAM_ACCOUNT to include a bit field for initializedGerald Carter2001-12-271-2/+21
| | | | | | | | | | | | | | | | | | | | members (such as uid and gid). This way we will be able to keep ourselves from writing out default smb.conf settings when the admin doesn't want to, That part is not done yet. Tested compiles with ldap/tdb/smbpasswd. Tested connection with smbpasswd backend. oh...and smbpasswd doesn'y automatically expire accounts after 21 days from the last password change either now. Just ifdef'd out that code in build_sam_account(). Will merge updates into 2.2 as they are necessary. jerry
* added a copyright notice.Jean-François Micouleau2001-12-211-0/+1
| | | | J.F.
* doesn't keep track of the struct's size we enumerate. W2K doesn'tJean-François Micouleau2001-12-211-2/+0
| | | | | | | | | | | | | | | | | | | | calculate them and always reply a size of 32 bytes whereas NT4 did the maths. Anyway, it looks like the clients don't complain. in query_dom_info() at level 2, return the real number of users and groups. That's the fix to the W95/98 userlist bug ! as W95/98 does a query_dom_info(2) followed by a query_disp_info(4) on the SAME context handle (err we call it an lsa policy handle ! plain wrong name), I was tempted to keep the snapshoot in memory, to prevent 2 full user db enumerations in a row and just have one shared. But if some client does the 2 calls on two different handles, we would have 2 copies in memory not free'ed before the samr_close(). We still have too many fixed constant and too many magic values in that code. And btw, I really hates how the sequence number is generated ! J.F.
* re-done all of samr_query_disp_info()Jean-François Micouleau2001-12-211-2/+10
| | | | | | | | | | | | | instead of enumerating the whole user db or group db every time, we store a in memory copy linked to the handle. that's much faster for large enumeration where the db can't fit in a single rpc packet. And as it's a copy, it's constant between enumeration. still some stuff to clean. But now I can fix the W95 userlist bug, as I've finally found it. J.F.
* Add MSG_REQ_POOL_USAGE to get memory usage info.Martin Pool2001-12-211-0/+2
|
* preparing for release of 3.0-alpha12Samba Release Account2001-12-201-1/+1
|
* preparing for release of 3.0-alpha11Samba Release Account2001-12-201-1/+1
|
* much better auto-init of valid_table[]. This should just about removeAndrew Tridgell2001-12-201-0/+1
| | | | the need for valid.dat
* Added some comments showing hex values of some constants.Tim Potter2001-12-201-11/+11
|
* Add --enable-dmalloc to link against the dmalloc malloc debugger.Martin Pool2001-12-202-1/+11
| | | | | It's not as strong as Insure, but it's free, reasonably efficient and works on every platform.
* Added AC_CHECK_FUNCS(syslog vsyslog).Jeremy Allison2001-12-191-0/+6
| | | | | | nsswitch code uses vsyslog without checking for it. Provide replacement for vsyslog in lib/snprintf if not found by configure. Jeremy.
* preparing for release of 3.0-alpha10Samba Release Account2001-12-191-1/+1
|
* much better ADS error handling systemAndrew Tridgell2001-12-191-6/+16
|
* - added initial support for trusted domains in winbindd_adsAndrew Tridgell2001-12-191-0/+11
| | | | | | - gss error code patch from a.bokovoy@sam-solutions.net - better sid dumping in ads_dump - fixed help in wbinfo
* Make TALLOC_CTX and talloc_chunk private to talloc.c.Martin Pool2001-12-191-16/+1
| | | | | | | | | | Add a global singly-linked list of all active talloc pools, so that we can eventually show how much memory is used for different purposes. This also gives a check that pools are not being doubly freed. talloc_init_named now handle a NULL name properly (ie does nothing) Add accessor talloc_pool_name().
* DocMartin Pool2001-12-191-1/+9
|
* Put PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,Martin Pool2001-12-191-0/+8
| | | | talloc_vasprintf.
* Doc.Martin Pool2001-12-191-1/+3
|
* Start adding some debugging features to talloc based on Samba'sMartin Pool2001-12-191-0/+10
| | | | | | | | | | ancient mem_man.c: Each TALLOC_CTX now has a field to store its purpose, to aid in tracking down memory bloat. A new call talloc_init_named() should be used instead of talloc_init() so that this is set. Added talloc_vasprintf to be called by varargs functions.
* added info level 1 to samr_query_alias()Jean-François Micouleau2001-12-191-0/+11
|
* there is no unknown field in LSA_SEC_QOSJean-François Micouleau2001-12-171-1/+0
| | | | | | | | | | | | | some cleanup of the lsa_open_policy and lsa_open_policy2 parser. the length fields are not correct but that's what NT send. We don't anymore underflow or overflow the decoding. added the domain admins group to the default SD. we are now checking the desired access flag in the lsa_open_policy_X() calls and in most functions also. J.F.
* Added some constants for registry data types.Tim Potter2001-12-171-4/+14
|
* Added HPUX ACL code.Jeremy Allison2001-12-152-0/+42
| | | | Jeremy.
* Added the group enum code from 2.2Jeremy Allison2001-12-141-6/+18
| | | | Jeremy.
* add lsa_query_secobj server code. level 4 is the ACL, level 1 is theJean-François Micouleau2001-12-141-16/+47
| | | | | | | | | owner. that's basic stuff. got the POLICY_ define from TNG but they are also in an include file in the NT SDK. J.F.
* Updated Solaris link options from DaveCB.Jeremy Allison2001-12-141-1/+1
| | | | Jeremy.
* Rafal (mimir) patch for trusts r.Jean-François Micouleau2001-12-141-0/+1
|
* update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-0/+7
| | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F.
* allow IRIX to build nsswitch/libnss_wins.soHerb Lewis2001-12-121-0/+3
|
* decoded SAM_DELTA 0x0e and 0x12.Jean-François Micouleau2001-12-121-0/+59
| | | | | | | | | One is an entry for the trusted domains The other is an entry for the trusting domains They are pretty basic, I'll improve them. J.F.
* a ugly decoder for SAM_DELTA_DOM_INFO (0x0d)Jean-François Micouleau2001-12-121-3/+88
| | | | | | | | | a correct decoder for SAM_PRIVS_INFO (0x10) this code is totally useless right now, it's just fun to decode those and will save tpot some time. J.F.
* added info level 3 to samrgetgroupinfo. I don't know what the value is.Jean-François Micouleau2001-12-101-3/+8
| | | | | | | | | | | | | It's just to keep usermanager happy ;-) clean up a bit samr_query_aliasinfo to return the group description added: samr_del_aliasmem, samr_del_groupmem and samr_del_domuser with the correct scripts, you can now entirely manage the users from usermanager ! Closer to full PDC every day ;-) J.F.
* Added client and server code for the GetPrintProcessorDirectory SPOOLSSTim Potter2001-12-101-2/+25
| | | | | | rpc. This was supposed to fix a printer driver download bug but it didn't but it seemed a shame to trash all this code so I'm commiting it #ifdef'ed out in case someone needs it one day.