summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse
Commit message (Collapse)AuthorAgeFilesLines
* Removed version number from file header.Tim Potter2002-01-3012-24/+12
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Back out some of the less well thought out ideas from last weeks work onAndrew Bartlett2002-01-261-11/+3
| | | | | | | | | | winbind default domains, particulary now I understand whats going on a lot better. This ensures that the RPC client code does as little 'magic' as possible - this is up to the application/user. (Where - for to name->sid code - it was all along). This leaves the change that allows the sid->name code to return domains and usernames in seperate paramaters. Andrew Bartlett
* We may as well not use these temporary variables - they are only used once andAndrew Bartlett2002-01-261-3/+1
| | | | just make it harder to debug (gcc stips optomises them away).
* Try to move towards slightly sane linking for Samba by removing some pdb_...()Andrew Bartlett2002-01-261-17/+32
| | | | | | | | | | calls from rpc_parse/parse_net.c - instead these values are passed as a paramater. Unfortunetly some there is still some samr work to be done before this is actually useful. Andrew Bartlett
* Fixed ADDPRINTEREX to take a devmode and a security descriptor...Jeremy Allison2002-01-261-21/+29
| | | | Jeremy.
* This patch makes the 'winbind use default domain' code interact better withAndrew Bartlett2002-01-201-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | smbd, and also makes it much cleaner inside winbindd. It is mostly my code, with a few changes and testing performed by Alexander Bokovoy <a.bokovoy@sam-solutions.net>. ab has tested it in security=domain and security=ads, but more testing is always appricatiated. The idea is that we no longer cart around a 'domain\user' string, we keep them seperate until the last moment - when we push that string into a pwent on onto the socket. This removes the need to be constantly parsing that string - the domain prefix is almost always already provided, (only a couple of functions actually changed arguments in all this). Some consequential changes to the RPC client code, to stop it concatonating the two strings (it now passes them both back as params). I havn't changed the cache code, however the usernames will no longer have a double domain prefix in the key string. The actual structures are unchanged - but the meaning of 'username' in the 'rid' will have changed. (The cache is invalidated at startup, so on-disk formats are not an issue here). Andrew Bartlett
* Added prs_mem_clear(). Clear memory on buffer reallocation. That wayJeremy Allison2002-01-182-11/+19
| | | | | we're not returning what the client gave us. Jeremy.
* Always clear malloced memory for parse structs.Jeremy Allison2002-01-181-0/+1
| | | | Jeremy.
* Added PRINTER_INFO_4/PRINTER_INFO_5, we're seeing level 5 requested on the ↵Jeremy Allison2002-01-121-0/+91
| | | | | | wire... so. Jeremy.
* Sed error. The status value in the PRINTER_INFO_2 structure isn't a WERRORTim Potter2002-01-071-1/+1
| | | | but a plain old uint32.
* Add prs_dump_before to dump everything from the start of the prsMartin Pool2002-01-021-4/+23
| | | | | buffer up to the current position, and use this to dump pipe buffers just before parsing.
* more irix -64 portability fixesAndrew Tridgell2001-12-311-1/+1
|
* Give the main loop talloc context a name (using mbp's new talloc namingAndrew Bartlett2001-12-311-1/+1
| | | | | | system). Andrew Bartlett
* 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-4/+4
| | | | | | | | | | | | | | | | | | | | 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-125/+76
| | | | | | | | | | | | | 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.
* merge from 2.2Gerald Carter2001-12-201-6/+6
|
* added info level 1 to samr_query_alias()Jean-François Micouleau2001-12-191-0/+61
|
* fixing bug I introduced.Jean-François Micouleau2001-12-181-1/+1
| | | | J.F.
* there is no unknown field in LSA_SEC_QOSJean-François Micouleau2001-12-171-19/+15
| | | | | | | | | | | | | 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.
* Replaced some hardcoded hex numbers with constants.Tim Potter2001-12-171-4/+8
| | | | | | Made a note about NOTIFY_OPTION_TYPE and NOTIFY_OPTION_TYPE_DATA - they are actually one structure. The latter is just the deferred referrant of the former.
* update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-5/+8
| | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F.
* merge from 2.2Gerald Carter2001-12-131-0/+3
|
* decoded SAM_DELTA 0x0e and 0x12.Jean-François Micouleau2001-12-121-0/+144
| | | | | | | | | 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-39/+203
| | | | | | | | | 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-6/+44
| | | | | | | | | | | | | 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/+139
| | | | | | 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.
* again an intrusive patch:Jean-François Micouleau2001-12-061-26/+20
| | | | | | | | | | | | | | | - removed the ugly as hell sam_logon_in_ssb variable, I changed a bit the definition of standard_sub_basic() to cope with that. - removed the smb.conf: 'domain admin group' and 'domain guest group' parameters ! We're not playing anymore with the user's group RIDs ! - in get_domain_user_groups(), if the user's gid is a group, put it first in the group RID list. I just have to write an HOWTO now ;-) J.F.
* OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-051-2/+7
| | | | | | | | | | | | | | | | | | | This moves the rest of the functionality into the 'net rpc join' code. Futhermore, this moves that entire area over to the libsmb codebase, rather than the crufty old rpc_client stuff. I have also fixed up the smbpasswd -a -m bug in the process. We also have a new 'net rpc changetrustpw' that can be called from a cron-job to regularly change the trust account password, for sites that run winbind but not smbd. With a little more work, we can kill rpc_client from smbd entirly! (It is mostly the domain auth stuff - which I can rework - and the spoolss stuff that sombody else will need to look over). Andrew Bartlett
* Const religion for some of the RPC code.Andrew Bartlett2001-12-052-3/+3
|
* added a tdb to store the account policy informations.Jean-François Micouleau2001-12-031-22/+28
| | | | | | | | | | | | | | You can change them with either usermanager->policies->account or from a command prompt on NT/W2K: net accounts /domain we can add a rpc accounts to the net command. As the net_rpc.c is still empty, I did not start. How should I add command to it ? Should I take the rpcclient/cmd_xxx functions and call them from there ? alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more for jeremy ;-) J.F.
* const religionAndrew Tridgell2001-12-031-2/+2
|
* Renamed sid field in SEC_ACE to trustee to be more in line with MS'sTim Potter2001-11-301-4/+4
| | | | definitions.
* Changed again how the privilege list is handled in the group mapping code.Jean-François Micouleau2001-11-291-0/+152
| | | | | | | | | | | | | | | | This time it's a PRIVILEGE_SET struct instead of a simple uint32 array. It makes much more sense. Also added a uint32 systemaccount to the GROUP_MAP struct as some privilege showing in USRMGR.EXE are not real privs but a bitmask flag. I guess it's an heritage from NT 3.0 ! I could setup an NT 3.1 box to verify, but I'm too lazy (yes I still have my CDs). Added 3 more LSA calls: SetSystemAccount, AddPrivileges and RemovePrivileges, we can manage all this privilege from UserManager. Time to change the NT_USER_TOKEN struct and add checks in all the rpc functions. Fun, fun, fun. J.F.
* merge from APPLIANCE_HEADGerald Carter2001-11-281-7/+1
|
* add .po32 files to ignore listHerb Lewis2001-11-281-1/+2
|
* added samr_set_domain_info and samr_unknown_2E.Jean-François Micouleau2001-11-281-12/+259
| | | | | | | | | | | | | | We now get the full account policy window in usermanager, and the framework to store all those values. I plan to add a TDB file to store them. oh, and found that the last value in a sam_unknown_info_12_inf struct is an uint16 and not a uint32. andrewb: you hardcoded the MAX_PASSWORD_AGE to 21 days. We can now turn it to a value setable in usermanager. J.F.
* Fix ./configure --enable-developer warnings (shadow of global)Andrew Bartlett2001-11-251-2/+2
|
* added lsaenumprivsaccount and lsalookupprivvalue to rpcclientJean-François Micouleau2001-11-241-1/+76
| | | | | | and more to come ... J.F.
* Changed how the privileges are stored in the group mapping code. It's nowJean-François Micouleau2001-11-231-0/+9
| | | | | | | | | | | | | | | | | | | | an array of uint32. That's not perfect but that's better. Added more privileges too. Changed the local_lookup_rid/name functions in passdb.c to check if the group is mapped. Makes the LSA rpc calls return correct groups Corrected the return code in the LSA server code enum_sids. Only enumerate well known aliases if they are mapped to real unix groups. Won't confuse user seeing groups not available. Added a short/long view to smbgroupedit. now decoding rpc calls to add/remove privileges to sid. J.F.
* added lsa_enum_sids to rpcclientJean-François Micouleau2001-11-221-0/+8
| | | | | | | fixed lsa_enum_rpivs server code. This time it works as W2K. fixed smbgroupedit to compile and work. J.F.
* add another command to rpcclient: getdispname. Show the full descriptionJean-François Micouleau2001-11-221-0/+15
| | | | | | of a privilege. J.F.
* add a command to rpcclient: enumprivsJean-François Micouleau2001-11-221-0/+21
| | | | J.F.
* remove unused variablesGerald Carter2001-11-221-1/+0
|
* merge from 2.2Gerald Carter2001-11-221-11/+208
|
* samr_querydom_info level 1: found the meaning of the unknow fields. AndJean-François Micouleau2001-11-214-24/+37
| | | | | | | | | | | discovered that our reply is short by 4 bytes since day 1 of this code. Added a decode function to rpcclient too. splitted the STRING2 fields filling while trying to understand the win9x userlist bug. (didn't fix the bug, but the reply looks closer to NT). J.F.
* Tidyups when I was doing the big merge...Jeremy Allison2001-11-171-3/+6
| | | | Jeremy.
* Tidyups and things I discovered during the merge...Jeremy Allison2001-11-151-4/+4
| | | | Jeremy.
* No longer used.Jeremy Allison2001-11-151-622/+0
| | | | Jeremy.
* Doxygen demo for Tim.Martin Pool2001-11-151-3/+8
|