1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

9017 Commits

Author SHA1 Message Date
Andrew Bartlett
84f2875d7b If lp_add_home() fails, don't go any further, just return -1.
Andrew Bartlett
(This used to be commit 2febc7ce1a)
2002-07-24 05:51:44 +00:00
Andrew Bartlett
24675d99e5 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
(This used to be commit c5b5e3d653)
2002-07-24 05:26:32 +00:00
Andrew Bartlett
3760e52ca8 Actually check the return value of the account_policy_get() call.
Andrew Bartlett
(This used to be commit a7b0a2334c)
2002-07-24 05:04:18 +00:00
Andrew Bartlett
3dc7717878 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
(This used to be commit 83360b211a)
2002-07-24 05:01:49 +00:00
Andrew Bartlett
fc6ae0994d Add another message rather than 'internal module error'
Andrew Bartlett
(This used to be commit e09c4bd69a)
2002-07-24 03:13:43 +00:00
Andrew Bartlett
abb45ccfa0 Give an idea what service didn't have the directory.
(This used to be commit 0229f610a8)
2002-07-24 03:00:14 +00:00
Andrew Tridgell
fef9d6187e 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
(This used to be commit 44e92b6523)
2002-07-23 09:22:29 +00:00
Gerald Carter
5b513407c2 * 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.
(This used to be commit 88f0e68bc6)
2002-07-23 05:07:40 +00:00
Gerald Carter
e8177d1104 * 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
(This used to be commit 998eb9c731)
2002-07-23 04:55:06 +00:00
Andrew Tridgell
445a52ebb0 reran configure
(This used to be commit 54c7ad47e1)
2002-07-23 03:40:40 +00:00
Andrew Tridgell
e4021785ff 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.
(This used to be commit 496cd0876c)
2002-07-23 03:39:55 +00:00
Andrew Tridgell
ca07fb330f removed the freebsd getgroups check now that we don't use it
(This used to be commit d25dc76137)
2002-07-23 03:38:35 +00:00
Tim Potter
ff667e0983 Sync with APPLIANCE_HEAD branch (whitespace, const only)
(This used to be commit 11229aa88b)
2002-07-22 21:53:36 +00:00
Tim Potter
fb5153a93b Merge from APPLIANCE_HEAD.
(This used to be commit 825cdc49db)
2002-07-22 21:40:45 +00:00
Gerald Carter
029fba81c6 fix seg fault due to memory allocation goof.
(This used to be commit 8e94f68a80)
2002-07-22 21:02:18 +00:00
Jeremy Allison
36606f727d Ensure we're root before opening a printer backend tdb.
Jeremy.
(This used to be commit 48ab4ae422)
2002-07-22 19:32:13 +00:00
Andrew Tridgell
88bef55a6e fixed a segv in net time when the host is unavailable
(This used to be commit f4f2b613a2)
2002-07-22 14:00:40 +00:00
Tim Potter
de4752d6e7 Fix up dir drive call.
(This used to be commit fe229cc126)
2002-07-21 06:32:25 +00:00
Tim Potter
c0f66c1786 Name get and set dir drive functions consistently.
(This used to be commit 290a304d2c)
2002-07-21 04:55:11 +00:00
Andrew Bartlett
ceb73e9b3e More cleanups, and add a comment/hint not to clean somthing up in future :-)
Andrew Bartlett
(This used to be commit 21b0e8f560)
2002-07-21 04:01:04 +00:00
Andrew Bartlett
6e47dc89a3 Add some const & static, remove unused functions.
(This used to be commit 993ee671cc)
2002-07-21 03:34:02 +00:00
Andrew Bartlett
afb7d1dc48 Another smattering of static and const
(This used to be commit 897cc4a610)
2002-07-21 03:26:10 +00:00
Andrew Bartlett
0cdc28ab40 Tpot missed one...
(This used to be commit 28373e5bc2)
2002-07-21 02:36:33 +00:00
Andrew Bartlett
a6a612a814 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
(This used to be commit 3118115876)
2002-07-21 01:20:28 +00:00
Tim Potter
0357388636 Renamed all the new_cli_netlogon_* functions to cli_netlogon_*
as they're no longer new!
(This used to be commit 277f6bbb9a)
2002-07-21 00:49:16 +00:00
Andrew Bartlett
2582e955e7 More use of intermediate variables to avoid issues with pointer size and casts.
Andrew Bartlett
(This used to be commit 88b68f7972)
2002-07-21 00:08:16 +00:00
Andrew Bartlett
4815976435 Compilers do find bugs :-)
This was a mixup between the enum type NSS_STATUS and a BOOL (extra test for
equality).

Andrew Bartlett
(This used to be commit 63b7820b65)
2002-07-21 00:00:22 +00:00
Andrew Bartlett
c30f930262 And a little more 'const'.
(This used to be commit 2cbbf0ecd3)
2002-07-20 23:55:17 +00:00
Tim Potter
27211c55e2 Don't try and sys_dup2(dbf->fd) if dbf == NULL.
(This used to be commit 0fd155a06c)
2002-07-20 21:56:26 +00:00
Andrew Bartlett
9d983e3f3a Oops, my bad. I forgot to assign this, so lookupnames wasn't doing much :-)
(This used to be commit 5081062853)
2002-07-20 14:01:40 +00:00
Gerald Carter
6dd9f24d05 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.
(This used to be commit e62ae94823)
2002-07-20 13:23:57 +00:00
Andrew Bartlett
29075c97d3 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
(This used to be commit 30d0998c8c)
2002-07-20 13:02:47 +00:00
Andrew Bartlett
9175bd2fe7 correctly declare global_myworkgroup to be the right size.
Andrew Bartlett
(This used to be commit 860f5b1a0c)
2002-07-20 12:03:11 +00:00
Andrew Bartlett
ea9d3057e9 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
(This used to be commit 8196ee908e)
2002-07-20 11:58:06 +00:00
Andrew Bartlett
aff20d822c Add some const to try and get less warnings.
Andrew Bartlett
(This used to be commit 2a3d821c77)
2002-07-20 11:06:37 +00:00
Andrew Bartlett
750a1f9e58 Make it clear that the 'service' isn't to be touched. (Make it const).
Andrew Bartlett
(This used to be commit 6465c6727b)
2002-07-20 10:17:02 +00:00
Andrew Bartlett
17fc19fe31 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
(This used to be commit 2afa291404)
2002-07-20 10:07:47 +00:00
Andrew Bartlett
badbae319a Fix up char/uchar casts etc. Fix up comments on some of the password hash
wrappers.

Andrew Bartlett
(This used to be commit 95519d408c)
2002-07-20 09:03:50 +00:00
Andrew Bartlett
27ca538a3c If we can't connect, make sure its a level 0 so we see it, and the reason.
(This used to be commit 6129718bea)
2002-07-20 08:59:58 +00:00
Andrew Bartlett
f65440ff52 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
(This used to be commit 790b7c9ab8)
2002-07-20 08:44:34 +00:00
Andrew Bartlett
714abda3e7 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
(This used to be commit 4bcb327319)
2002-07-20 07:02:45 +00:00
Andrew Bartlett
129b3966c0 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
(This used to be commit 07e2b36311)
2002-07-20 06:55:05 +00:00
Andrew Bartlett
6081538818 Update the usage for smbgroupedit to document -d for 'description'.
I think this one is due to metze.

Andrew Bartlett
(This used to be commit bce3a2b1d8)
2002-07-20 06:52:42 +00:00
Andrew Bartlett
b96de65b26 Add a wrapper for dup2() to our system.c
Andrew Bartlett
(This used to be commit b24b6307f6)
2002-07-20 06:50:47 +00:00
Andrew Bartlett
5e0cffda3e 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
(This used to be commit 656f1d68e8)
2002-07-20 04:55:42 +00:00
Gerald Carter
b516eb62db enumeration of printers keys ( no data yet ) via the registry
functions now works :-)
(This used to be commit c5768538f6)
2002-07-20 04:27:30 +00:00
Gerald Carter
39bbeff5b3 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.
(This used to be commit 2050859f03)
2002-07-20 02:42:04 +00:00
Gerald Carter
3c0a9c46d8 fixed seg fault in registry frontend caused by trying to
use a destroyed TALLOC_CTX*
(This used to be commit 432b9f8d7c)
2002-07-19 22:16:03 +00:00
Tim Potter
12e237da68 Fixed a compiler warning.
(This used to be commit bc0f1c1ec2)
2002-07-19 22:01:23 +00:00
Jeremy Allison
3c9e5a9416 Never ignore valgrind messages :-). Don't reference before the start
of a string....
Jeremy.
(This used to be commit 35f0fbd254)
2002-07-19 19:56:27 +00:00