summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* as per user request added windbind start/stop/restart in swatSimo Sorce2002-07-276-694/+774
| | | | almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
* Rafal 'Mimir' Szczesniak <mimir@diament.ists.pwr.wroc.pl> has been busyAndrew Bartlett2002-07-274-58/+422
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | again, and has added 'net rpc trustdom list' support. This lists the trusted and trusting domains of a remote PDC. I've applied these almost directly, just fixing some special case code for when there are *no* trusting domains. We still have some parse errors in this case however. Andrew Bartlett. From mimir's e-mail: Here are another patches adding trust relationship features. More details: Better error reporting in cli_lsa_enum_trust_dom(). Implementation of cli_samr_enum_dom_users() which cli_samr.c lacked. More "consts" -- one of arguments in net_find_dc(). Modified implementation of run_rpc_command() -- now it allows to reuse already opened connection (if it is passed) to remote server's IPC$ (e.g. as part of longer exchange of rpc calls). I'm sure Andrew will argue ;-) More neat version of rpc_trustdom_list() function.
* 3 things:Gerald Carter2002-07-263-7/+22
| | | | | | | | | | * normalize all registry key strings before storing or looking up paths in the registry tdb * return the current buffer size for REG_INFO even when not returning actual data * fix a segfault report by metze on #samba-technical so that the user/group object picker works again (was the "ProductType" key lookup that was failing).
* fix parameters for ldap_set_rebind_proc() from OpenLDAP 2.1Gerald Carter2002-07-261-2/+7
|
* (another patch from mimir)Andrew Bartlett2002-07-261-2/+17
| | | | | | | | Add some debugging info to the secrets code. We might review what debug level that should be at, but it's fine for now. Andrew Bartlett
* Mimir has been busy with patches again, and sent in the followingAndrew Bartlett2002-07-265-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | patches: Andrew Bartlett From his e-mail: Below I attach the following patches as a result of my work on trusted domains support: 1) srv_samr_nt.c.diff This fixes a bug which caused to return null string as the first entry of enumerated accounts list (no matter what entry, it was always null string and rid) and possibly spoiled further names, depeding on their length. I found that while testing my 'net rpc trustdom list' against nt servers and samba server. 2) libsmb.diff Now, fallback to anonymous connection works correctly. 3) smbpasswd.c.diff Just a little fix which actually allows one to create a trusting domain account using smbpasswd 4) typos.diff As the name suggests, it's just a few typos fix :)
* I think this makes the debug statement clearer.Andrew Bartlett2002-07-261-1/+1
| | | | | | (but assumes that 'myip' is indeed our local IP...) Andrew Bartlett
* Clarify this comment.Andrew Bartlett2002-07-261-0/+3
|
* Print out a friendly message on error instead of a python exception whenTim Potter2002-07-261-1/+11
| | | | | | | calling tdb.open() Override Python's SIGINT handler so we can quit from the command line by hitting Ctrl-C.
* I had forgotten to commit this after running configureAndrew Tridgell2002-07-251-0/+3
|
* * fix return code so we don't let a client just open any key it wantsGerald Carter2002-07-242-3/+3
| | | | | | (even nonexistent ones). This gets rid of the Scheduling Agent icon. * fix NT_STATUS return code for bad registry path (NT_STATUS_NO_SUCH_FILE)
* done! printer_info_2, devicemode, sec_desc, & printer data all enumerateGerald Carter2002-07-245-38/+195
| | | | | | | | | and display correctly in regedit.exe. Not sure about REG_SZ values in PrinterDriverData. If we store these in UNICODE, I'll have to fix up a few things. REG_BINARY & REG_DWORD are fine.
* reran configureAndrew Tridgell2002-07-241-1/+1
|
* several changes in this checkinGerald Carter2002-07-247-148/+627
| | | | | | | | | | | | | | | | | | | * added REG_OPEN_HKCR for supporting regedit.exe * All data n a REGISTRY_VALUE is stored to a pointer now * fixed REG_INFO to correctly display data when double clicking on and entry in the registry editor * Will now enumerate installed driver_info_3 data * fixed numerous bugs related to pointer offsets, memory issues, etc.. in the registry routines * added a simple caching mechanism to fetch_reg_[keys|values]_specific() All that is left now is to enumerate PrinterData and I will have finished what I started out to do....
* If lp_add_home() fails, don't go any further, just return -1.Andrew Bartlett2002-07-241-1/+3
| | | | Andrew Bartlett
* Make it possible to query account policy values from pdbedit (set to come soon).Andrew Bartlett2002-07-242-37/+91
| | | | | | | | | | | Update account_pol.c to use just uint32, rather then uint32 for paramaters, int32 for storage. (The int32 functions didn't have seperate return/status values, uint32 functions use a pointer-paramater). Move the #define -> string from a swtich to a table, so we can look it up both ways. Andrew Bartlett
* Actually check the return value of the account_policy_get() call.Andrew Bartlett2002-07-241-5/+4
| | | | Andrew Bartlett
* We must be root to access the passdb, so ensure all calls to local_lookup_sid()Andrew Bartlett2002-07-241-1/+5
| | | | | | | | have become_root()/unbecome_root() wrappers. (this should be the last of them, the rest were done ages ago). Andrew Bartlett
* Add another message rather than 'internal module error'Andrew Bartlett2002-07-241-0/+4
| | | | Andrew Bartlett
* Give an idea what service didn't have the directory.Andrew Bartlett2002-07-241-1/+1
|
* implemented getgrouplist() for systems that don't have it and use itAndrew Tridgell2002-07-234-55/+131
| | | | | in get_alias_user_groups(). The old method used getgrent() which is extremely slow when the number of groups is large
* * fix to display correct form information in REG_BINARY informationGerald Carter2002-07-231-17/+19
| | | | | | This should be 8 x uint32 (not 7. I'm guessing the 2nd to the last uint32 is the index number for the form? Not that big a deal I don't think.
* * changed structure of REG_R_ENUM_VALUE structure since the BUFFER2Gerald Carter2002-07-236-154/+375
| | | | | | | | is not and [in/out] buffer * registry value enumeration is working now for the Print\Forms key. The format of the binary data is not quite right yet but all installed forms are listed
* reran configureAndrew Tridgell2002-07-232-752/+699
|
* added LDAP_SET_REBIND_PROC_ARGS in acconfig.hAndrew Tridgell2002-07-231-0/+3
| | | | | | | | andrew, you seem to have added this test but don't use it. Do you intend to use it later? If not then perhaps it can be removed. also, when a test goes in configure.in you must also add it to acconfig.h, or you end up breaking configure.
* removed the freebsd getgroups check now that we don't use itAndrew Tridgell2002-07-231-24/+0
|
* Sync with APPLIANCE_HEAD branch (whitespace, const only)Tim Potter2002-07-221-2/+0
|
* Merge from APPLIANCE_HEAD.Tim Potter2002-07-222-10/+10
|
* fix seg fault due to memory allocation goof.Gerald Carter2002-07-221-0/+8
|
* Ensure we're root before opening a printer backend tdb.Jeremy Allison2002-07-221-0/+4
| | | | Jeremy.
* fixed a segv in net time when the host is unavailableAndrew Tridgell2002-07-221-1/+1
|
* Fix up dir drive call.Tim Potter2002-07-211-1/+1
|
* Name get and set dir drive functions consistently.Tim Potter2002-07-216-12/+13
|
* More cleanups, and add a comment/hint not to clean somthing up in future :-)Andrew Bartlett2002-07-213-71/+10
| | | | Andrew Bartlett
* Add some const & static, remove unused functions.Andrew Bartlett2002-07-212-24/+1
|
* Another smattering of static and constAndrew Bartlett2002-07-217-13/+13
|
* Tpot missed one...Andrew Bartlett2002-07-211-1/+1
|
* Looks like I missed this earlier. We should connect as the specified workgroupAndrew Bartlett2002-07-211-1/+1
| | | | | | | | | - sombody using smbspool won't always have a full smb.conf, and this is how it was written in the first place anyway. Again, found by the IRIX compiler. Andrew Bartlett
* Renamed all the new_cli_netlogon_* functions to cli_netlogon_*Tim Potter2002-07-216-23/+23
| | | | as they're no longer new!
* More use of intermediate variables to avoid issues with pointer size and casts.Andrew Bartlett2002-07-211-9/+27
| | | | Andrew Bartlett
* Compilers do find bugs :-)Andrew Bartlett2002-07-211-2/+1
| | | | | | | This was a mixup between the enum type NSS_STATUS and a BOOL (extra test for equality). Andrew Bartlett
* And a little more 'const'.Andrew Bartlett2002-07-202-3/+3
|
* Don't try and sys_dup2(dbf->fd) if dbf == NULL.Tim Potter2002-07-201-1/+1
|
* Oops, my bad. I forgot to assign this, so lookupnames wasn't doing much :-)Andrew Bartlett2002-07-201-0/+1
|
* another intermediate checkin on the way to enumerating formsGerald Carter2002-07-205-38/+136
| | | | | | via the registry. There is a seg fault here which shouldn't bother anyone until I can get it fixed. I just need a check point in case I need to roll back to this version later on.
* More fixes towards warnings on the IRIX compilerAndrew Bartlett2002-07-208-35/+46
| | | | | | | | | | | | (and yes, some of these are real bugs) In particular, the samr code was doing an &foo of various types, to a function that assumed uint32. If time_t isn't 32 bits long, that broke. They are assignment compatible however, so use that and an intermediate variable. Andrew Bartlett
* correctly declare global_myworkgroup to be the right size.Andrew Bartlett2002-07-201-1/+1
| | | | Andrew Bartlett
* Try to fix up warnings - particularly on the IRIX 64 bit compiler (which had aAndrew Bartlett2002-07-2012-26/+40
| | | | | | | | distinction between uchar and char). Lots of const etc. Andrew Bartlett
* Add some const to try and get less warnings.Andrew Bartlett2002-07-201-2/+3
| | | | Andrew Bartlett
* Make it clear that the 'service' isn't to be touched. (Make it const).Andrew Bartlett2002-07-201-1/+1
| | | | Andrew Bartlett