1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

8032 Commits

Author SHA1 Message Date
Gerald Carter
419d7208e8 several changes in this checkin
* 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....
-
Andrew Bartlett
2febc7ce1a If lp_add_home() fails, don't go any further, just return -1.
Andrew Bartlett
-
Andrew Bartlett
c5b5e3d653 Make it possible to query account policy values from pdbedit (set to come soon).
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
-
Andrew Bartlett
a7b0a2334c Actually check the return value of the account_policy_get() call.
Andrew Bartlett
-
Andrew Bartlett
83360b211a We must be root to access the passdb, so ensure all calls to local_lookup_sid()
have become_root()/unbecome_root() wrappers.

(this should be the last of them, the rest were done ages ago).

Andrew Bartlett
-
Andrew Bartlett
e09c4bd69a Add another message rather than 'internal module error'
Andrew Bartlett
-
Andrew Bartlett
0229f610a8 Give an idea what service didn't have the directory. -
Andrew Tridgell
44e92b6523 implemented getgrouplist() for systems that don't have it and use it
in get_alias_user_groups(). The old method used getgrent() which is
extremely slow when the number of groups is large
-
Gerald Carter
88f0e68bc6 * fix to display correct form information in REG_BINARY information
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.
-
Gerald Carter
998eb9c731 * changed structure of REG_R_ENUM_VALUE structure since the BUFFER2
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
-
Andrew Tridgell
54c7ad47e1 reran configure -
Andrew Tridgell
496cd0876c added LDAP_SET_REBIND_PROC_ARGS in acconfig.h
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.
-
Andrew Tridgell
d25dc76137 removed the freebsd getgroups check now that we don't use it -
Tim Potter
11229aa88b Sync with APPLIANCE_HEAD branch (whitespace, const only) -
Tim Potter
825cdc49db Merge from APPLIANCE_HEAD. -
Gerald Carter
8e94f68a80 fix seg fault due to memory allocation goof. -
Jeremy Allison
48ab4ae422 Ensure we're root before opening a printer backend tdb.
Jeremy.
-
Andrew Tridgell
f4f2b613a2 fixed a segv in net time when the host is unavailable -
Tim Potter
fe229cc126 Fix up dir drive call. -
Tim Potter
290a304d2c Name get and set dir drive functions consistently. -
Andrew Bartlett
21b0e8f560 More cleanups, and add a comment/hint not to clean somthing up in future :-)
Andrew Bartlett
-
Andrew Bartlett
993ee671cc Add some const & static, remove unused functions. -
Andrew Bartlett
897cc4a610 Another smattering of static and const -
Andrew Bartlett
28373e5bc2 Tpot missed one... -
Andrew Bartlett
3118115876 Looks like I missed this earlier. We should connect as the specified workgroup
- 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
-
Tim Potter
277f6bbb9a Renamed all the new_cli_netlogon_* functions to cli_netlogon_*
as they're no longer new!
-
Andrew Bartlett
88b68f7972 More use of intermediate variables to avoid issues with pointer size and casts.
Andrew Bartlett
-
Andrew Bartlett
63b7820b65 Compilers do find bugs :-)
This was a mixup between the enum type NSS_STATUS and a BOOL (extra test for
equality).

Andrew Bartlett
-
Andrew Bartlett
2cbbf0ecd3 And a little more 'const'. -
Tim Potter
0fd155a06c Don't try and sys_dup2(dbf->fd) if dbf == NULL. -
Andrew Bartlett
5081062853 Oops, my bad. I forgot to assign this, so lookupnames wasn't doing much :-) -
Gerald Carter
e62ae94823 another intermediate checkin on the way to enumerating forms
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.
-
Andrew Bartlett
30d0998c8c More fixes towards warnings on the IRIX compiler
(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
-
Andrew Bartlett
860f5b1a0c correctly declare global_myworkgroup to be the right size.
Andrew Bartlett
-
Andrew Bartlett
8196ee908e Try to fix up warnings - particularly on the IRIX 64 bit compiler (which had a
distinction between uchar and char).

Lots of const etc.

Andrew Bartlett
-
Andrew Bartlett
2a3d821c77 Add some const to try and get less warnings.
Andrew Bartlett
-
Andrew Bartlett
6465c6727b Make it clear that the 'service' isn't to be touched. (Make it const).
Andrew Bartlett
-
Andrew Bartlett
2afa291404 Update the smbd reply code a little:
I don't like the idea of muliple netprots - becouse I see potential problems
with people being able to maniplate internal samba variables.

This applies in particular to remote names, so don't allow muliple session
requests either.

Also remove a pstrcpy() from the tcon code, we really don't need it.

Andrew Bartlett
-
Andrew Bartlett
95519d408c Fix up char/uchar casts etc. Fix up comments on some of the password hash
wrappers.

Andrew Bartlett
-
Andrew Bartlett
6129718bea If we can't connect, make sure its a level 0 so we see it, and the reason. -
Andrew Bartlett
790b7c9ab8 Move some startup time initialisation to server.c, so it is all in one place.
I'm not sure that we need that "dummy" talloc init, but anyway...

Also, add some 'const' to the table of smb reply functions.

Andrew Bartlett
-
Andrew Bartlett
4bcb327319 Add support for duplicating stderr into our logfiles.
This is for two things:  To allow panic actions etc to pump out backtraces to
stderr and to allow vangrind to put its stuff in a logfile - making it possible
to debug smbd when launched from inetd.

I've also cleaned up some of the duplicate names in procedures between smbd and
nmbd.

Andrew Bartlett
-
Andrew Bartlett
07e2b36311 Add support for a weird behaviour apparently used by Win9X pass-through
authentication - we can have an NT hash in the LM hash feild.

(I need to double-check this fix with tpot, who discovered it).

Also remove silly casts back and forth between uchar and char.

Andrew Bartlett
-
Andrew Bartlett
bce3a2b1d8 Update the usage for smbgroupedit to document -d for 'description'.
I think this one is due to metze.

Andrew Bartlett
-
Andrew Bartlett
b24b6307f6 Add a wrapper for dup2() to our system.c
Andrew Bartlett
-
Andrew Bartlett
656f1d68e8 NT_STATUS_UNSUCCESSFUL just gets clients confused - move to NO_LOGON_SERVERS
becouse thats what Win2k gives when the PDC is down.

Some of these might better go to other errors, but the Win2k text message for
'unsuccessful' is not particularly useful.  (A device attached to the system is
not functioning...)

Andrew Bartlett
-
Gerald Carter
c5768538f6 enumeration of printers keys ( no data yet ) via the registry
functions now works :-)
-
Gerald Carter
2050859f03 fixed a logic error in the sorted_tree_find_child() routine
that caused a valid search to fail.  The printing registry
view now works again.
-
Gerald Carter
432b9f8d7c fixed seg fault in registry frontend caused by trying to
use a destroyed TALLOC_CTX*
-
Tim Potter
bc0f1c1ec2 Fixed a compiler warning. -