summaryrefslogtreecommitdiff
path: root/source4/libnet
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r17954: Avoid including \n in error strings (left over from DEBUG() conversion).Andrew Bartlett1-12/+18
Make it easier to debug CrackNames failures. Andrew Bartlett (This used to be commit 5dd07074db0b25ea2e929bbdcf89f26e3665bd1c)
2007-10-10r17938: More comments.Rafal Szczesniak1-12/+101
rafal (This used to be commit 4a127aacfa142838b474b2d8186026575bca14a4)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij2-2/+1
* Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r17856: The two new functions - libnet_LookupName and libnet_UserInfo.Rafal Szczesniak5-0/+416
These two perform name resolving in SAM database and fetching user account information, respectively. The code is quite rough yet, but it builds and basic tests work. Now, I'm working on cleaning it up... rafal (This used to be commit 4a932255a01d9f1ac91feb9e371494933f1ae74e)
2007-10-10r17670: 1) Refactor libnet context structure a bit, to have rpc connectionRafal Szczesniak6-65/+495
properties more consistently reflected. 2) Add domain open routine for lsa pipe - this is needed for ongoing name resolve function. Tests (still neglected) and comments to follow. rafal (This used to be commit fe5652c2b8121bbe3b9932c43164035355478611)
2007-10-10r17516: Change helper function names to make more clear what they are meant ↵Simo Sorce1-1/+1
to do (This used to be commit ad75cf869550af66119d0293503024d41d834e02)
2007-10-10r17472: Remove unused variable.Rafal Szczesniak1-1/+0
rafal (This used to be commit 04c94e4a52b9253c6d2ae6e8376338f0b20dd070)
2007-10-10r17450: A bit more protection against memory allocation errors.Rafal Szczesniak1-1/+2
rafal (This used to be commit a3ef0d051ac6e4a389a294ca6001338e3da23938)
2007-10-10r17448: Define macros to set fields in api function modifying user account.Rafal Szczesniak2-28/+50
rafal (This used to be commit 8d9330c490470127f192949efa9201225136edb1)
2007-10-10r17447: Add more fields to user modify routines.Rafal Szczesniak1-0/+17
rafal (This used to be commit 8fa1cd62ec6ce3b37700cf5ffa5c47b8c8cff977)
2007-10-10r17079: Remove an attempt to connect on ncacn_ip_tcp transport after failureRafal Szczesniak1-38/+0
on ncacn_np, as abartlet suggested. Also, named pipe remains the default transport for all kinds of servers to be contacted. rafal (This used to be commit 76888c74a66317a9888ea4c0965f0d33124c222f)
2007-10-10r17028: Remove extra newline.Rafal Szczesniak1-1/+0
rafal (This used to be commit 7da9ebffbd2c8c558086656ab9c0e74aff2a7ce6)
2007-10-10r17027: My copyright notice.Rafal Szczesniak1-1/+2
rafal (This used to be commit a2229f8c80898f5f0bae6641b356a476d3265c5a)
2007-10-10r17026: Make rpc connect routine a bit smarter. Try to connect againRafal Szczesniak1-7/+86
using different transport and possibly address type, when the first attempt fails (only if it makes any sense, of course). This may be especially useful when connecting DCs and PDCs in mixed environments. Also, add monitor messages issuing. rafal (This used to be commit d69b31230dd01efadd9c0cc6ef31c794c6165881)
2007-10-10r17001: Prepare a new monitor messages.Rafal Szczesniak2-0/+24
rafal (This used to be commit aaa2a5a27adf9bc9bb6853f8b14538a5923b130a)
2007-10-10r16895: Add continue function and prevent from segfaulting (or unpredictableRafal Szczesniak1-16/+41
behaviour) if composite context returned from _send function was NULL. rafal (This used to be commit d9fce228d006b702d76faebe4eb436327a7212d0)
2007-10-10r16830: Fix IBM checker and GCC warnings.Andrew Bartlett1-3/+3
Andrew Bartlett (This used to be commit 5ef924bc739a51a8f83d7b4566f9ba85296c585a)
2007-10-10r16694: Store lsa rpc pipe pointer in a right place.Rafal Szczesniak1-7/+12
rafal (This used to be commit fa6b52dbf7321d1a7f0fdea32ab2605951c2b35a)
2007-10-10r16693: Name type should be passed further down the lookup engine insteadRafal Szczesniak1-7/+5
of assuming only PDC name type. Also, fix the comment. rafal (This used to be commit 436c8a721114815af8eb8c96ebdfe32c1875faaa)
2007-10-10r16692: More comments and further code in set_user_changes routine.Rafal Szczesniak1-17/+77
rafal (This used to be commit c58fa8676c93b49bcce2e86b957690fc6558280c)
2007-10-10r16573: Fixes in comments.Rafal Szczesniak1-4/+4
rafal (This used to be commit 1258e6cad890ade8a65d8d43d55a95d61e6a6968)
2007-10-10r16572: More comments and simple refactoring of one condition.Rafal Szczesniak1-6/+52
rafal (This used to be commit 24006a36014eaa7457cf3db4cf0b084e1f9aa4d8)
2007-10-10r16532: Tell username from account name (source from target, whenRafal Szczesniak1-0/+1
changing). rafal (This used to be commit e5a50ca14a1ebc2fc6e18852264b5caac69fea1d)
2007-10-10r16531: Add a function preparing argument for modify user routine.Rafal Szczesniak1-2/+41
rafal (This used to be commit d91cbec2644030a6e7978dd2e2c854e9d7a3d313)
2007-10-10r16530: Send monitor messages only after successful receiving result of a stage.Rafal Szczesniak1-25/+33
rafal (This used to be commit e5dc6311633146e44063ba5eb20488468af75914)
2007-10-10r16476: Error in composite functions implemented the 'old way' (single event ↵Rafal Szczesniak1-2/+4
handler, no continue functions) need to report an error by means of state only. composite_error calls event handler function which frees the context and state structure. This fixes a segfault in some cases (caught it on modifyuser test). rafal (This used to be commit 9e800fd0cfda9e731905fc0f19781def5cdba89f)
2007-10-10r16226: Fixes for various segfault bugs found against a buggy Samba4. WithAndrew Bartlett2-2/+15
the current API we need to check both that the RPC didn't fault, and that the query succeeded. Also print the right things in debug messages. Andrew Bartlett (This used to be commit d18e515391f8f5038e9aaaba596099052011b53a)
2007-10-10r16211: Refactor domain_opened function a bit and add a few comments.Rafal Szczesniak1-28/+60
rafal (This used to be commit d8113fa5e19570fcf67a7d3cd8a0d8ab12ef147e)
2007-10-10r15996: Implement a missing monitor message.Rafal Szczesniak1-1/+10
rafal (This used to be commit 37ec35672e23c8a3e3f1f44d2fce69a0729519fb)
2007-10-10r15940: Add new field to pass username to libnet_rpc_userinfo function.Rafal Szczesniak1-0/+1
rafal (This used to be commit 16b4b4dbb7aa1a239e680457d3cb4e3db3d38dc7)
2007-10-10r15938: Extend userinfo call with one optional stage - lookup forRafal Szczesniak1-19/+84
username to resolve it to a rid, when a sid argument is not explicitly provided. rafal (This used to be commit 9bc4ef267c3d6720422e2a2f7f2c1572ba694d2d)
2007-10-10r15937: Currently, we don't use nor support distinguished call levels, so removeRafal Szczesniak1-15/+0
them until we do such thing. There's no need to complicate things more at the moment. rafal (This used to be commit 94fb191e6b862a6b05bc962c56a0a3d34a67f6b7)
2007-10-10r15920: Move userman.c and userinfo.c definition into respectiveRafal Szczesniak5-74/+102
header files instead of composite.h rafal (This used to be commit 8cafbe7afedc90346cbd0cbedc2571143ae3dbc6)
2007-10-10r15919: - Create function checking prerequisites like valid domainRafal Szczesniak1-63/+175
opened and rpc pipe connected. Each user management routine calls the function before doing their job - Initial work on user modify functionality (does nothing yet) rafal (This used to be commit 51501cdeef0f253d52112a368a07815ef1fbccca)
2007-10-10r15858: - initialize s->r.outStefan Metzmacher1-13/+23
- don't check for mem_ctx, ctx and r, we should crash when they're wrong as it's a programmer error! - pass the error string to the caller metze (This used to be commit 5f65447f5dfafa6771a532c86fe2f87287c5467d)
2007-10-10r15857: don't clear the error string after setting itStefan Metzmacher1-4/+6
metze (This used to be commit d273d8ae52255170932405f488876510e02f5813)
2007-10-10r15850: another spot where r->out.error_string can be uninitialiedAndrew Tridgell1-0/+1
(This used to be commit 4898b29c32737b2cf425d5822da2f395f70ca6e2)
2007-10-10r15849: ensure we don't try to talloc_steal() an invalid error_string inAndrew Tridgell1-0/+1
r->out on error (This used to be commit 1d1d2aaeae643e01bfd51d69cba741557543e5bb)
2007-10-10r15726: Comments and a couple of minor formattings in the code.Rafal Szczesniak1-57/+121
rafal (This used to be commit 2ab8343e99a21bddd61492722bd1d249ab04a306)
2007-10-10r15667: Make sure the rpc pipe pointers are zeroed duringRafal Szczesniak1-0/+8
initialisation of libnet_context. This fixes a valgrind warning. rafal (This used to be commit b751eb1102f3169b8eb66bae465cf79a44597bbe)
2007-10-10r15666: Fix a silly typo.Rafal Szczesniak1-1/+1
rafal (This used to be commit dc93aef09a59b101ca6180fbc431500a6fd7da02)
2007-10-10r15663: Turn libnet_DeleteUser into async function and fix subtle bug probablyRafal Szczesniak2-82/+130
causing ejsnet test to segfault. Also, cleanup a bit and add monitor fn pointer to internal user delete libnet function. Time for some comments now. rafal (This used to be commit 89e9a887197380f13e0668e845d00e1050259331)
2007-10-10r15625: Partial commit of my current work. It makes libnet api functionsRafal Szczesniak8-61/+403
a bit more smart and more aware of what libnet_context can offer. The context is a help when some of the arguments are not passed (programmer counts on using sensible defaults) and stores some of results so that similar subsequent calls don't need to reopen some of policy handles, pipes, etc. again. It also helps to hide some of details the library user don't really want to know much about. Also, change domain open function to be part of public api, as it is going to be used in ejsnet interface. Note, this is work in progress. Comments are welcome. rafal (This used to be commit 1ed80c594c2f466e364a11194d6fdc30ac4a8f27)
2007-10-10r15504: Revert -r 15500 and -r 15503 until I'm awake, and can get my headAndrew Bartlett1-1/+1
around the mess that is composite functions... Async might be all the rage, but it's bloody painful to debug. Andrew Bartlett (This used to be commit 756e1dad7ce54b83f8170db3434bfcfc4afe7e65)
2007-10-10r15500: Add support for interactive prompting on bad passwords to the RPC ↵Andrew Bartlett1-1/+1
libraries. This support requires that the bind_ack and alter_ack recv functions also be send the DCE/RPC fault. This would be best done by having the ack run as a normal RPC reply callback, but this isn't easily possible for now. Andrew Bartlett (This used to be commit be6dde22fe728d64d47875699d3421c6d8d872a4)
2007-10-10r15489: Typo fixes.Rafal Szczesniak1-2/+2
rafal (This used to be commit 221907fc0d0141c6c73f10f2dc829879205b9bcb)
2007-10-10r15488: This structure is not needed any longer.Rafal Szczesniak1-25/+2
rafal (This used to be commit 45cd7bc4ec152c8623c134c6f33bcd3edbb1ff5e)
2007-10-10r15487: More comments and a few minor changes (not even fixes).Rafal Szczesniak1-13/+31
rafal (This used to be commit 12d0faf9bc4c97b61879e8f7bb0419f4553bb340)
2007-10-10r15459: Add forgotten guid retrieval among other data and thus preventRafal Szczesniak1-1/+4
from returning uninitialised structure member. Thank heavens for build farm and valgrind :) rafal (This used to be commit daca283990c7a8b6efc952c9308c43b68dd49f06)
2007-10-10r15439: Reorder the code a bit to be like in other calls. More commentsRafal Szczesniak1-142/+170
and comment-fixes. rafal (This used to be commit d35f1e07bed594dfae5421209c4318fe5e66a5aa)