summaryrefslogtreecommitdiffstats
path: root/source/include/rpc_samr.h
Commit message (Collapse)AuthorAgeFilesLines
* try to put every security descriptors related definitions in the same file.Simo Sorce2002-10-061-166/+0
| | | | | | also try to uniform names to a clean scheme. first part.
* Don't define PASS_MUST_CHANGE_AT_NEXT_LOGON twice..Jelmer Vernooij2002-09-261-3/+0
|
* Patch from "Kai Krueger" <kai@kruegernetz.de> to get some more of our accessAndrew Bartlett2002-09-261-43/+43
| | | | | | control bits right on the SAMR pipe. Andrew Bartlett
* Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*Andrew Bartlett2002-09-261-3/+16
| | | | | | | | | | | | better job of working with usrmgr. Previously we were blanking out entires, and all sort of mischif. The new patch (which I've now had a chance to test/modify) also takes care not to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store \\server\user back) and to correctly notice 'not set' compared to 'null string' etc. Andrew Bartlett
* Rename unknown_0 field in create_user2 reply in the actual struct.Tim Potter2002-08-151-30/+23
| | | | Remove 9th place leading zero from some constants.
* Add SAMR 0x3e, which is samr_connect4. Seems to be the same as ourJim McDonough2002-08-061-1/+18
| | | | | existing connect (which I've been told is really connect2), with one extra dword. We've only seen 0x00000002 there...
* Remove C++ comments.Tim Potter2002-07-051-5/+10
|
* More code from "Kai Krueger" <kai@kruegernetz.de>, this time starting to makeAndrew Bartlett2002-07-041-1/+21
| | | | | | | the 'user cannot change password' button work. Needs help from a future SAM backend, but at least this parses the data, and returns an error. Andrew Bartlett
* Patch to add security descriptors to the SAMR pipe.Andrew Bartlett2002-07-041-0/+164
| | | | | | | | | | | | | This is not the final solution, I think this will probably changed with the move to the new SAM subsystem, but it allows some research and gives us somthing to start with. It should also help with getting proper NT_TOKEN passing set-up. Original patch by "Kai Krueger" <kai@kruegernetz.de>, which I have modified to pass back NTSTATUS returns in more places and to use a little more common code. Andrew Bartlett
* Merge of Jerry's fix from 2.2.Jeremy Allison2002-06-101-3/+10
| | | | Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* 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.
* 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.
* 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.
* added info level 1 to samr_query_alias()Jean-François Micouleau2001-12-191-0/+11
|
* 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 a tdb to store the account policy informations.Jean-François Micouleau2001-12-031-4/+1
| | | | | | | | | | | | | | 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.
* added samr_set_domain_info and samr_unknown_2E.Jean-François Micouleau2001-11-281-30/+27
| | | | | | | | | | | | | | 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.
* samr_querydom_info level 1: found the meaning of the unknow fields. AndJean-François Micouleau2001-11-211-4/+48
| | | | | | | | | | | 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.
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-42/+42
|
* Allow smbpasswd to join a W2K hosted AD domain.Jeremy Allison2001-08-021-0/+1
| | | | Jeremy.
* add query user info level 20 (for RAS)Jean-François Micouleau2001-07-091-0/+18
| | | | | | | | add query dominfo level 5 some cleanup, don't free talloced memory. implement delete domain and local groups. J.F.
* Fix for enumerating large numbers of users.Jeremy Allison2001-07-051-1/+1
| | | | Jeremy.
* From JF....Jeremy Allison2001-06-291-8/+8
| | | | | | | | | | | | | | | | | | | hi jeremy, can you commit the following patch against HEAD. I can't do it right now Thanks Tim for me. He changed the SAM_DISPINFO_1 array without checking if he didn't break the server code. And he did. So on my way I cleaned info_1, 2, .. 5 it may break winbind. I leave to tim the pleasure to fix it ;-) jf. I added some talloc changes and checks for alloc fails. Jeremy.
* Removed another silly static array.Tim Potter2001-06-291-2/+2
|
* Fixed W2K SP2 joining a Samba PDC hosted domain.Jeremy Allison2001-06-201-0/+53
| | | | Jermey.
* INFO_24 sometimes has a 2 byte length, sometimes doesn't. Safer to notJeremy Allison2001-06-191-1/+0
| | | | | depend on it... Jeremy.
* Add password length field to SAM_USER_INFO24 structure and fix initTim Potter2001-06-151-0/+1
| | | | and parse function.
* Converted SAMR_Q_LOOKUP_NAMES structure to tallocated memory instead ofTim Potter2001-06-061-2/+2
| | | | static arrays.
* renamed unknown field to access mask in open alias structures.Tim Potter2001-05-041-2/+2
|
* Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison2001-03-111-9/+21
| | | | | | RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy.
* New proto and some small changes to rpc_samr.hTim Potter2001-01-151-17/+4
|
* Merge of various fixes from the tng headers.Tim Potter2001-01-111-1/+1
|
* the beginnings of a new scheme I've working on to allow an easierAndrew Tridgell2000-05-091-285/+900
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | head/tng merge. It goes something like this: - headers from tng get copied over one at a time - the old headers get renamed to *_old.h - server side code that used the old headers gets a #define OLD_NTDOMAIN 1 #undef OLD_NTDOMAIN at the start and end of the code - mkproto.awk recognises these special defines and does magic stuff so that each .c file sees the right headers - we start moving the rpc client libraries from tng to head. if this goes OK then, in theory, we should be able to move the client side rpc code from tng to head without disturbing the existing head server side code. Then when that works we can consider merging the server side. it remains to be seen if this scheme will work. So far I've moved rpc_samr.h and don't seem to have broken anything. Note this this is still a very delicate operation, as at every step of the way I want to keep head fully functional. Please don't take part unless you discuss it with me first.
* SAMR_R_UNKNOWN_38 is 3 uint16 params (4-byte aligned) followed by status code.Luke Leighton2000-01-171-1/+0
|
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-790/+187
|
* added samuserset2 rpcclient command to test ACB_XXX bit-setting onLuke Leighton1999-11-181-2/+33
| | | | | samr opcode 0x25. _yet_ another failed attempt to get nt5rc2 to join a samba domain. what _is_ it with this stuff, dammit?
* added rpcclient "enumdomains" command. enumerates names of domainsLuke Leighton1999-11-151-1/+31
| | | | | | | | for which a PDC is responsible. typical answers are: <Name of Domain> plus <Builtin>. against a hierarchical, down-level-compatible NT5 PDC, there's likely to be more than these two entries!!!!!
* samuserset <username> -p password. YESSSSS :)Luke Leighton1999-11-041-0/+1
| | | | you have to use "ntlmv1" at the moment (i.e set client ntlmv2 = no).
* dynamic mem allocation in enum dom groups and enum dom aliasesLuke Leighton1999-11-021-4/+4
|
* more reshuffling of enum groups code. more higher order functions.Luke Leighton1999-10-291-1/+1
|
* one of those wonderful moments when running against a different MSRPCLuke Leighton1999-10-251-6/+6
| | | | | | implementation (NT5) when you discover that your code is trash. samr_enum_dom_users(), samr_enum_dom_aliases() and samr_enum_dom_groups() all take a HANDLE for multiple-call enumeration purposes.
* turning some of the rpcclient functions dynamic. this is likely toLuke Leighton1999-10-211-2/+2
| | | | break a few things...
* various. debug levels changed. nmbd doesn't need libsmb/clienttrust.c.Luke Leighton1999-10-211-4/+4
| | | | | | | samr_lookup_rids() moved to a dynamic memory structure not a static one limited to 32 RIDs. cli_pipe.c reading wasn't checking ERRmoredata when DOS error codes negotiated (this terminates MSRPC code with prejudice).
* testing for attempts to get more info levels into samr_query_userinfoLuke Leighton1999-09-211-0/+2
|
* matthew chapman identified 4 previously unknown samr functions.Luke Leighton1999-08-311-4/+4
|
* the times in sam_user_info_23 may not be in the right orderLuke Leighton1999-05-071-0/+1
|
* added SamrQueryDomainInfo call info level 0x3 for kix32.exe supportLuke Leighton1999-03-291-1/+8
|