1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-05 21:57:51 +03:00

18006 Commits

Author SHA1 Message Date
Günther Deschner
ba0ca4c0c6 r8143: Fix generate_parm_table.py:
* Correctly substitute "\" as default winbind separator.
* Use default testparm-location.

Guenther
2007-10-10 10:58:11 -05:00
Gerald Carter
4a8068ce63 r8141: Update volker's valgrind fix in r8097. Same effect, just helps me
to remember what is going on here better.
2007-10-10 10:58:11 -05:00
Gerald Carter
79d03b1919 r8140: adding missing module 2007-10-10 10:58:11 -05:00
Günther Deschner
892ef0bbc1 r8133: Got approval from Luke Howard (PADL) to change the company copyright to
to a personal one.

Thanks Luke!

Guenther
2007-10-10 10:58:11 -05:00
Volker Lendecke
25cbcfba30 r8093: Next round. Now it compiles with --enable-socket-wrapper.
Volker
2007-10-10 10:58:11 -05:00
Volker Lendecke
53c22c0365 r8092: Attempt to fix the socket wrapper stuff for Samba 3.
Volker
2007-10-10 10:58:10 -05:00
Gerald Carter
d3427960b0 r8089: successfully delete printer subkeys via the registry....now for values 2007-10-10 10:58:10 -05:00
John Terpstra
f20213227f r8085: Updating info. 2007-10-10 10:58:10 -05:00
Gerald Carter
00bce2b3bb r8066: * had to modify the printer data storage slightly in ntprinters.tdb
when packing values.  It is a compatible change though and will
  not require a tdb version upgrade
* Can successfully create new printer subkeys via winreg that
  are immediately available via spoolss calls.  Still cannot delete
  keys yet though.  That comes next.
2007-10-10 10:58:10 -05:00
Gerald Carter
89f17b41ce r8064: * add the REG_XXX error codes to the pretty error messages
* more work on the store_values() functions for the Printers key
* add Control\Print\Monitors key to list for reg_db
2007-10-10 10:58:10 -05:00
Volker Lendecke
fa6cc0bdef r8062: Remove some unused code 2007-10-10 10:58:10 -05:00
Gerald Carter
6f654c5741 r8061: * mostly cleanup and refactoring for better readability
* move to registry.tdb for port listing (at least via the winreg ops)
  If no one opposes on the samba list, we'll move to a registry
  lookup for enumerating ports rather than the 'enumports command'.
  This means that there is a bit of a disconnect between EnumPorts() and
  RegEnumKey('hklm\software\microsoft\windows nt\currentversion\ports').
2007-10-10 10:58:10 -05:00
Günther Deschner
7285edc4fe r8048: Replace "done" with "failed".
Guenther
2007-10-10 10:58:09 -05:00
Volker Lendecke
3846c0afa1 r8047: "oid" is defined in a heimdal header. With my gcc this generates a ton of
shadowed variable warnings. Fix that.

Volker
2007-10-10 10:58:09 -05:00
John Terpstra
aaca9ea8a3 r8031: Adding contributed mklogon scripts. 2007-10-10 10:58:09 -05:00
Volker Lendecke
2588dd7a27 r8029: Fix bug 2841. Thanks to Brett Trotter.
Volker
2007-10-10 10:58:09 -05:00
Gerald Carter
f0a1c6b9ce r8027: driver information is now back via winreg 2007-10-10 10:58:09 -05:00
Gerald Carter
04431372a6 r8026: * more fixes to the printing registry interface
(still not completely back to the read functionality
  we previously had but the cleanup is progressing)
2007-10-10 10:58:09 -05:00
Gerald Carter
4aec5dce5c r8025: *how* can this code have been around so long and
nver normalized the string used for printer and
sec_desc key lookups ?????

normalized sharename to lower case before storing/fetching
from tdb.

Need to look at drivers and forms tdb as well (perhaps).
2007-10-10 10:58:09 -05:00
Gerald Carter
7466351dd0 r8022: * implement default actions rather than having to define functions
for every fetch/store callback (some keys should never have a value)
2007-10-10 10:58:08 -05:00
Günther Deschner
1f17b4f45e r8019: Better give a hint that we are failing share-manipulation due to missing
scripts.

Guenther
2007-10-10 10:58:08 -05:00
Gerald Carter
7a2ecb1aec r8008: * start adding logic for restricting subkey paths
e.g. 'hklm\software\microsoft\windows nt\currentversion\ports'
  should have no subkeys.  Return an error if a client tries
  to open a path below here
2007-10-10 10:58:08 -05:00
Gerald Carter
28c7293ee9 r8007: * cleanup unused structure from reg_objects.h
* make regdb_store_XXX() and regdb_fetch_XXX() functions non-static
* use case sensitive string lookups in reg_dynamic.c since the
  keys have already been normalized
* move to new design for making printing related data available
  via the winreg pipe (with the intent of allowing writes)
2007-10-10 10:58:08 -05:00
Volker Lendecke
1e9a8854b1 r7998: Fix usage message 2007-10-10 10:58:08 -05:00
Gerald Carter
5289955107 r7997: Pointers don't kill people, people with pointers kill people...
"Honest office!  It was a mistake!  I thought the safety lock was on!"

* Fix problem setting registry values in in-memory objects

I now have printmig.exe successfully creating all of the printer
registry keys (in the tdb backend) which means that the top level
semantics are correct.
2007-10-10 10:58:08 -05:00
Gerald Carter
0d6352da48 r7995: * privileges are local except when they're *not*
printmig.exe assumes that the LUID of the SeBackupPrivlege
  on the target server matches the LUID of the privilege
  on the local client.  Even though an LUID is never guaranteed
  to be the same across reboots.  How *awful*!  My cat could
  write better code! (more on my cat later....)

* Set the privelege LUID in the global PRIVS[] array

* Rename RegCreateKey() to RegCreateKeyEx() to better match MSDN

* Rename the unknown field in RegCreateKeyEx() to disposition
  (guess according to MSDN)

* Add the capability to define REG_TDB_ONLY for using the reg_db.c
  functions and stress the RegXXX() rpc functions.
2007-10-10 10:58:07 -05:00
Günther Deschner
28b5969942 r7994: This adds support in Winbindd's "security = ads"-mode to retrieve the POSIX
homedirectory and the loginshell from Active Directory's "Services for Unix".

Enable it with:

        winbind sfu support = yes

User-Accounts without SFU-Unix-Attributes will be assigned template-based
Shells and Homedirs as before.

Note that it doesn't matter which version of Services for Unix you use (2.0,
2.2, 3.0 or 3.5). Samba should detect the correct attributes (msSFULoginShell,
msSFU30LoginShell, etc.) automatically.

If you also want to share the same uid/gid-space as SFU then also use PADL's
ad-idmap-Plugin:

        idmap backend = ad

When using the idmap-plugin only those accounts will appear in Name Service
Switch that have those UNIX-attributes which avoids potential uid/gid-space
clashes between SFU-ids and automatically assigned idmap-ids.

Guenther
2007-10-10 10:58:07 -05:00
Günther Deschner
1d59841c99 r7992: Adding PADL's idmap_ad plugin (taken from the latest
xad_oss_plugins-tarball).

Guenther
2007-10-10 10:58:07 -05:00
Gerald Carter
7764e8a677 r7987: map generic bits to specific bits in open requests 2007-10-10 10:58:06 -05:00
Jeremy Allison
c870579f4c r7985: Add "acl map full control", true by default, to allow people to change
mapping of rwx to full control or not. Requested feature at SambaXP.
Jeremy.
2007-10-10 10:58:06 -05:00
Gerald Carter
5f4a3f61a3 r7983: clean up some use of un-initialized variables found by valgrind 2007-10-10 10:58:06 -05:00
Jeremy Allison
12ff297829 r7981: MS-DFS tidyup patches from James Peach <jpeach@sgi.com>.
Looking forward to the day he can commit these himself :-).
Jeremy.
2007-10-10 10:58:06 -05:00
John Terpstra
97ee7c970c r7976: Adding debugging info. 2007-10-10 10:58:05 -05:00
Jeremy Allison
960a5d37d1 r7975: One more tidyup to ensure we're using "struct posix_lock".
Jeremy.
2007-10-10 10:58:05 -05:00
Jeremy Allison
f2bcfdddc7 r7972: Tidy up the posix locking in memory db code whilst I'm waiting for jht
to get back to me with a backtrace.
Jeremy.
2007-10-10 10:58:05 -05:00
Jeremy Allison
1de27da470 r7963: Add aio support to 3.0.
Jeremy.
2007-10-10 10:58:05 -05:00
Simo Sorce
da227d5f43 r7961: randomize reloading so that smbds do not pverload cupsd
by reloading printers all at the same time.
						sss
2007-10-10 10:58:05 -05:00
Lars Müller
8cfa6873c2 r7960: Replace unknown SMB_XSTRDUP by known SMB_STRDUP macro.
I still don't know why the compile doesn't fail.
2007-10-10 10:58:04 -05:00
Jeremy Allison
095c5dbc18 r7959: Added aio structure and types.
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
5b5052c042 r7957: Added aio configure support. Jerry told me to :-).
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
f318c37107 r7956: Spelling mistake.
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
0da60e9954 r7954: Fix from tridge from Samba4 (same code exists here) :
fixed handling of ASN.1 objects bigger than 64k
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
f3c4d5a957 r7952: Fix for bug #2826 pointed out by Jiri Klouda <jk@zg.cz>.
Wrong return val for symlink and readlink.
Jeremy.
2007-10-10 10:58:04 -05:00
Jeremy Allison
4d50029310 r7949: Work around for broken Solaris header files.
Jeremy
2007-10-10 10:58:04 -05:00
Jeremy Allison
7ef6850056 r7948: Ensure we call the vfs connection hook before doing a vfs stat.
Allows database vfs backends to initialise with a working connection.
Bugid #2827
Jeremy.
2007-10-10 10:58:03 -05:00
Jeremy Allison
7eb7f83257 r7946: Minor C++ compatibility fix.
Jeremy.
2007-10-10 10:58:03 -05:00
Gerald Carter
1ce5cc2a5f r7944: BUG 2808: don't try to install manpages if they are not present 2007-10-10 10:58:03 -05:00
Gerald Carter
63b81ad3cb r7938: * move the hardcoded registry value names from _reg_query_value()
to a thin layer in fetch_reg_values().  Not entirely efficient
  seeing as the the dynamic value paths are stored in an unsorted
  array but it is one strequal() per path.  If this was really big
  it should be worked into the reghook_cache().
2007-10-10 10:58:03 -05:00
Gerald Carter
3d837e58db r7908: * change REGISTRY_HOOK api to use const (fix compiler warning
in init_registry_data()
* Add means of storing registry values in registry.tdb
* add builtin_registry_values[] array for REG_DWORD and REG_SZ
  values needed during startup
* Finish up RegDeleteValue() and RegSetValue()
* Finish up regdb_store_reg_values() and regdb_fetch_reg_values()

I can now create and retrieve values using regedit.exe on Win2k.

bin/net -S rain -U% rpc registry enumerate 'hklm\software\samba'
Valuename  = Version
Type       = REG_SZ
Data       = 3.0.20

Next is to do the virtual writes in reg_printing.c and I'll be
done with Print Migrator (yeah!  finally)
2007-10-10 10:58:03 -05:00
Volker Lendecke
8fad08db74 r7904: Fix a memleak in vfs_afsacl 2007-10-10 10:58:03 -05:00