summaryrefslogtreecommitdiff
path: root/source3/libsmb/cli_samr.c
AgeCommit message (Collapse)AuthorFilesLines
2002-06-21Don't use uint. It doesn't exist on some platforms and we don't define it.Jeremy Allison1-1/+1
Replaced with "unsigned int". Jeremy. (This used to be commit 5841ca54b6a8c36f3d76c12570ff8f2211ed2363)
2002-06-03Added cli_samr_get_dom_pwinfo() function.Tim Potter1-46/+74
Some reformatting. (This used to be commit d6dd7c7b14a4e3be4d7d435b6ac6bb8189070ff7)
2002-05-23Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett1-8/+0
this: More code cleanup - this lot a bit more dodgy than the last: The aim is to trim pwd_cache down to size. Its overly complex, and a pain to deal with. With a header comment like this: 'obfusticaion is planned' I think it deserved to die (at least partly). This was being done to allow 'cli_establish_connection' to die - its functionality has been replaced by cli_full_connection(), which does not duplicate code everywhere for creating names etc. This also removes the little 'init' fucntions for the various pipes, becouse they were only used in one place, and even then it was dodgy. (I've reworked smbcacls not to use anonymous connections any more, as this will (should) fail with a 'restrict anonymous' PDC). This allowed me to remove cli_pipe_util.c, which was calling cli_establish_connection. tpot: I'm not sure what direction you were going with the client stuff, and you may well have been wanting the init functions. If thats the case, give me a yell and I'll reimplement them against cli_full_connection. Andrew Bartlett (This used to be commit fa67e4626bed623333c571e76e06ccd52cba5cc5)
2002-04-14Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett1-1/+1
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
2002-04-04If compiling with Insure, mallocate a byte of memory and attach it to theTim Potter1-0/+18
POLICY_HND structure when passing new handles back from the appropriate cli_* functions. When closing the policy handle free the memory. Insure (and indeed other memory checkers) should detect handles that have not been closed properly as memory leaks. Unfortunately this can only be done when the program terminates (set insure++.summarize leaks in your .psrc file) rather than when the policy handle falls out of scope. Looks like Jeremy has squished all the policy handle leaks at the moment but more are bound to crop up later. (This used to be commit 6dc80d625752f0a3ce6fd7b2278095529c6ec29f)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-12-10added enum alias groups to rpcclientJean-François Micouleau1-0/+78
(This used to be commit d4bc8f02f7dc856ffb29e95a81ffcc3a9d4b1695)
2001-12-05Ditto on the const religion.Andrew Bartlett1-2/+2
(This used to be commit e1b940c91b748230664544fd9191123247dd1f24)
2001-12-02added queryuseraliases to rpcclientJean-François Micouleau1-0/+49
and some comments to the samr server code, to explain what we should return here. J.F. (This used to be commit 06cb20a46d9d9f8abf0d92ba4cfa4d23187ad715)
2001-12-01added samr_query_sec_obj for rpcclientJean-François Micouleau1-0/+46
J.F. (This used to be commit d8809c58614cd97ef78d398645788e41022a8c39)
2001-09-04the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell1-23/+27
the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-08-27Convert to NTSTATUS.Tim Potter1-84/+84
(This used to be commit 9e69f59d6c4ec4e0474c594ada3a05ecc2bc806b)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell1-17/+17
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-08Factored out common rpc pipe initialisation and shutdown code.Tim Potter1-50/+1
(This used to be commit 04d978258ba2fea702232c815e140ab12364e8e7)
2001-07-23cli_samr_query_dispinfo() can return STATUS_MORE_ENTRIES which isn't anTim Potter1-1/+4
entry. (This used to be commit 12e44e40298b5469f6f1fea3495cfa023305411d)
2001-07-23Added a warning debug if cli_samr_lookup_rids is called with more than 1000Tim Potter1-1/+7
rids as this seems to crash LSASS.EXE more often than not. (This used to be commit 375636b7630d117da5a57b51e11929c3a38646df)
2001-06-20Added cli_samr_delete_dom_user() function.Tim Potter1-0/+44
(This used to be commit 2162454d9ea5a07892d0b5d7fc5abe7251b4fa98)
2001-06-06Fixed bug in cli_samr_create_dom_user()Tim Potter1-4/+68
Added cli_samr_lookup_names() Removed redundant argument to cli_samr_connect() (This used to be commit 79710a3ab394dc024b3ccfccfb45fb6a906c3499)
2001-06-04Added add domain user to rpcclient.Tim Potter1-0/+150
Added cli_ functions for set userinfo and userinfo2. (This used to be commit 6c9796286c489a79c96d28b081ecf151803dbf7c)
2001-05-14Compile fixes for dynamic samr_query_userinfo() stuff.Tim Potter1-3/+2
(This used to be commit a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7)
2001-05-11Use talloc_strdup() instead of strdup().Tim Potter1-1/+1
(This used to be commit 3b4b5b3c61bb1fe1db15306219f24036bf342e2d)
2001-05-08Fix for query_dispinfo()Tim Potter1-0/+70
Added lookup_rids() function. (This used to be commit 9ff3c82a54a18d0d9f187c119656e58316c7eb0e)
2001-05-07Some reformatting (sorry Gerald).Tim Potter1-93/+137
Cleanup of exit paths. Added query domain info and query display info. (This used to be commit ff9e222e2ff3f50f4966d3c5859738a831c7adc9)
2001-05-04Added cli_samr_query_aliasmem() and cli_samr_open_alias() functions.Tim Potter1-0/+107
(This used to be commit 0b3bc4375b8984fc16c8972d2b62762c1657f675)
2001-05-04Added cli_samr_enum_dom_groups() function.Tim Potter1-0/+77
(This used to be commit 5a3b7d8b1302fd11321c4a65161de169b41f5d9e)
2001-04-28rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter1-38/+83
(This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
2001-03-11Ok - everything now compiles in HEAD (at least the default stuff). WeJeremy Allison1-1/+1
should now be ready for the trivial winbindd port..... (Tim ? :-). Jeremy. (This used to be commit 85021b16388e8efc15ac57bf1a7c01bba552bf41)
2001-03-11Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison1-3/+0
RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-03-09Missed some prs_inits.Jeremy Allison1-18/+18
Jeremy. (This used to be commit 7a8a7a24d4c328d26d34c3b3ac28af39e6acd32c)
2001-01-15Added remaining samr functions needed by winbindd.Tim Potter1-0/+198
Added #define/#undef NEW_NTDOMAIN symbols. (This used to be commit 13e4fd1d84ab1150446530b11c47c4d6617014cb)
2001-01-10Added init functions, cli_samr_connect(), cli_samr_close(),Tim Potter1-0/+325
cli_samr_open_{domain,user}() and cli_samr_query_userinfo() (This used to be commit 385860107346de26b4bcbd33d5f131a0670f6f93)