1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

9162 Commits

Author SHA1 Message Date
Tim Potter
b3e51bfe6c Started to get samsync to insert account information in the passdb. It's
pretty half-arsed at the moment and doesn't work very well but Mr Bartlett
was interested in it.

Also started playing around with the more interesting bits of popt.  The
auto-generated usage information is pretty neat.
-
Tim Potter
4c664a0de8 Added extern for popt_common_debug. -
Tim Potter
a29a86f5b5 Add lib/popt_common.o -
Tim Potter
8c17904848 Use common popt definition for -d option. -
Tim Potter
b5b64a4e90 A place to store common popt routines. -
Simo Sorce
61294d74b2 people should be happier now.
changed strtof with sscanf to make things working on all platforms.
changed auto-made bubble sort for more efficient and clean qsort()
-
Tim Potter
36cc488c4d Skeleton for a libsmb python wrapper. -
Tim Potter
9ffca4824c Merge from APPLIANCE_HEAD:
>When creating an automatically generated prototype make sure the
>destination directory exists.
-
Tim Potter
b7bd0bf953 Updated patch. -
Simo Sorce
69765e4faa found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be null before close
this one fixes swat not working with browsers that set more then one language.

along the way implemented language priority in web/neg_lang.c with bubble sort

also changet str_list_make to be able to use a different separator string

Simo.
-
Andrew Bartlett
03892bcfbb This patch does two things:
The first is to add sensible quotes to various default paramaters, and the
second is to ensure that we don't remove to many " characters from paramaters.

(Both from the debian patches to Samba).

Andrew Bartlett
-
Andrew Tridgell
ea0a12fb60 minor portability fix
samba-patches 820
-
Andrew Tridgell
e2558baa32 fix for smbtar filename matching
samba-patches 852
-
Andrew Tridgell
434e5124db this is an interim fix for nmbd not registering DOMAIN#1b with WINS
when a PDC. The fix does not iterate over all WINS tags, which it
should do, but after having looked at doing that it gets *very* messy
to do with our current code base.
-
Andrew Bartlett
2bf6edf78b Add the ability to set account policies too.
Andrew Bartlett
-
Andrew Tridgell
a954f72fe3 make sure async dns nmbd child dies
samba-patches 898
-
Andrew Tridgell
ef04261e25 fix minor nits in nmbd from adtam@cup.hp.com
samba-patches 959
-
Andrew Tridgell
1466acba7e good security patch from Timothy.Sell@unisys.com
we could generate short passwords!
samba-patches 880
-
Andrew Tridgell
a302e31519 partial apply of samba-patches 960 -
Andrew Tridgell
935996e1c7 fixed man install
samba-patches 961
-
Andrew Tridgell
06d8549196 fixed logfile location to honor configure
samba-patches 966
-
Andrew Tridgell
f3a0842e30 fixed typo
samba-patches 970
-
Andrew Bartlett
e69b476626 Fix a missing 'no memory' return in last night's svrsvc code, and use
sys_dup2() in a couple more places.

Andrew Bartlett
-
Andrew Bartlett
70929a970e Warn about n^2 algorithm with utmp=yes.
Andrew Bartlett
-
Andrew Bartlett
50507e131d Another item off my long-term todo list:
Remove the n^2 search for valid 'tty' names from the sesion code when we
don't actually need it.  Its main value is in getting 'well behaved'
numbers for use with utmp, so when we are not doing utmp we don't need
this to get in the way.

Andrew Bartlett
-
Andrew Bartlett
d78cce806d It seems I didn't need to write a dup2() wrapper - as we already use it a
lot.  But as thats done, we might as well use it anyway.

Andrew Bartlett
-
Andrew Bartlett
71452365c8 Clean this code up a little. If it's alrady asprintf()ed, I see no
need for a manual strdup() too...
-
Andrew Bartlett
f9bac7c5c2 A very long time ago (actually 6 months ago) I promised to commit this code
to the Samba tree.

Originally written by Nigel Williams" <nigel@veritas.com>, I've been
trying to keep it in some form of shape for the last 6 months.  In particular
I think some of the code got committed a few months ago, and others have made
changes to the CVS version over time.

anyway, its finally in - and doesn't appear to have broken anything.

Now to try the client-side patches :-)

Andrew Bartlett
-
Andrew Bartlett
064f269508 Update the rebind code in pdb_ldap.
I've still not tested this, but I didn't test the last lot and I'm pretty
sure I stuffed it up - but at least this rebind procedure matches the
function prototype.

It should also be fine on OpenLDAP 2.1 if I'm lucky.

Andrew Bartlett
-
Andrew Bartlett
5d2c7816a3 This should fix a nastly little bug where if a user had already done one
session setup, it would not correctly pick up the [homes] share on a subsequent
session setup.

The new rules are:  If you want to connect to [homes], then it must have been
available at session setup time, or you must be in security=share.  At each
session setup, the user's copy of [homes] is updated to ensure it has the right
path etc.

Andrew Bartlett
-
Simo Sorce
e6b38a881b nice day today
add also hide unwriteable as per user request
-
Simo Sorce
e0988e9186 as per user request added windbind start/stop/restart in swat
almost working, seem it does not yet properly detect if windbind is running or not in all situations testing is welcome.
-
Andrew Bartlett
f089002682 Rafal 'Mimir' Szczesniak <mimir@diament.ists.pwr.wroc.pl> has been busy
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.
-
Gerald Carter
5640e6cdb2 3 things:
* 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).
-
Gerald Carter
a6725d4ce9 fix parameters for ldap_set_rebind_proc() from OpenLDAP 2.1 -
Andrew Bartlett
2b6a318d68 (another patch from mimir)
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
-
Andrew Bartlett
888d595fab Mimir has been busy with patches again, and sent in the following
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 :)
-
Andrew Bartlett
bea31062a2 I think this makes the debug statement clearer.
(but assumes that 'myip' is indeed our local IP...)

Andrew Bartlett
-
Andrew Bartlett
d2b4e669ae Clarify this comment. -
Tim Potter
2adcd0eb43 Print out a friendly message on error instead of a python exception when
calling tdb.open()

Override Python's SIGINT handler so we can quit from the command line
by hitting Ctrl-C.
-
Andrew Tridgell
e3c2ef0a04 I had forgotten to commit this after running configure -
Gerald Carter
915ee5c0ec * fix return code so we don't let a client just open any key it wants
(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)
-
Gerald Carter
2a30c243ec done! printer_info_2, devicemode, sec_desc, & printer data all enumerate
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.
-
Andrew Tridgell
d76e0838cf reran configure -
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
-