1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

15414 Commits

Author SHA1 Message Date
Simo Sorce
e17af6d6cf add also the schema attributes and object classes need by config_ldap
Jerry,
if you have any problems with these schema additions, let me know, so that
we can arrange the right solution
-
Simo Sorce
207968eafc Split smbldap in a core file and a utility file
Add module support for configuration loading

Add a first implementation of config_ldap module to put samba configuration
on ldap

It worked on my test machine, please try it out and send bugfixes :-)

have fun,
Simo.

INSTRUCTIONS:


Just add something like  this to your smb.conf file:
        config backend = config_ldap:ldap://localhost
        config_ldap:basedn = dc=samba,dc=org

the config tree must follow this scheme:
   ou=foo, dc=samba, dc=org <- global section
   |- sambaOptionName=log level, ou=foo, ...  <- options
   |- ...
   |- sambaShareName=testlc, ou=foo, ...  == [testlc]
      |- sambaOptionName=path, sambaShareName=testlc, ou=foo, ... <- option


here is a sample ldif:
# foo, samba, org
dn: ou=foo, dc=samba, dc=org
objectClass: organizationalUnit
objectClass: sambaConfig
ou: foo
description: Test Foo

# log level, foo, samba, org
dn: sambaOptionName=log level, ou=foo, dc=samba, dc=org
objectClass: sambaConfigOption
sambaOptionName: log level
sambaIntegerOption: 10
description: log level 10 is suitable for good debugging

# testlc, foo, samba, org
dn: sambaShareName=testlc, ou=foo, dc=samba, dc=org
objectClass: sambaShare
sambaShareName: testlc
description: share to test ldap config module actually works

# path, testlc, foo, samba, org
dn: sambaOptionName=path, sambaShareName=testlc, ou=foo, dc=samba, dc=org
objectClass: sambaConfigOption
sambaOptionName: path
sambaStringOption: /tmp
description: Path for share testlc

# read only, testlc, foo, samba, org
dn: sambaOptionName=read only, sambaShareName=testlc, ou=foo, dc=samba,
dc=org
objectClass: sambaConfigOption
sambaOptionName: read only
sambaBoolOption: TRUE
description: Share testlc is read only

# guest ok, testlc, foo, samba, org
dn: sambaOptionName=guest ok, sambaShareName=testlc, ou=foo, dc=samba,
dc=org
objectClass: sambaConfigOption
sambaOptionName: guest ok
sambaBoolOption: TRUE
description: Guest users are allowed to connect to testlc share
-
Gerald Carter
89a8c607af fix more memory leaks in the LDAP backend code; patches from metze -
Gerald Carter
d4cbd00dfe first draft of release notes for 3.0.1pre3 -
Gerald Carter
e079c8842a fix more memory leaks in the LDAP backend code; patches from metze -
Richard Sharpe
b92fd87b24 Update Makefile ... -
Richard Sharpe
d761175f13 Add this to samba-head. -
Gerald Carter
d7026f6d17 * Fix from SATOH Fumiyasu for bug 660 (failing to view print
jobs) by only enforce the 'max reported print jobs' parameter
  when it is non-zero.

* Fixed bug 338 by making sure that data values are written
  out when we are marshalling an EnumPrinterDataEx() reply.
  This probably fixes other bugs reported against point-n-print
  feature in 3.0.0
-
Gerald Carter
fd98af75d6 * Fix from SATOH Fumiyasu for bug 660 (failing to view print
jobs) by only enforce the 'max reported print jobs' parameter
  when it is non-zero.

* Fixed bug 338 by making sure that data values are written
  out when we are marshalling an EnumPrinterDataEx() reply.
  This probably fixes other bugs reported against point-n-print
  feature in 3.0.0
-
Richard Sharpe
00d5136ea0 More casty-foo ... -
Richard Sharpe
d165a49d86 Squelch some warnings with more casty-foo. -
Richard Sharpe
58d7a51c57 Fix a couple of warnings with casts. -
Richard Sharpe
664cc4f46c Keep configure.in in sync with SAMBA-3.0.0 -
Gerald Carter
3290582cb0 show locked files for -u <user>; bug 590 -
Gerald Carter
d72d77c427 show locked files for -u <user>; bug 590 -
Rafal Szczesniak
af972c7615 > Omit html documentation tree because it has been moved to the separate
> module. Install though, in case one recreates the tree as it was before.
>
>
> rafal

Same as in SAMBA_3_0 source tree.


rafal
-
Richard Sharpe
af42af75a4 Add testacl.c ... from Derrell Lipman. -
Rafal Szczesniak
d6857d191c Omit html documentation tree because it has been moved to the separate
module. Install though, in case one recreates the tree as it was before.


rafal
-
Andrew Tridgell
b3e024ce1d a small include file rearrangement that doesn't affect normal
compilation, but that allows Samba3 to take advantage of pre-compiled
headers in gcc if available.
-
Andrew Tridgell
ef01aedfb4 added support for "make pch" to build a precompiled header. Note that
this is not called by default and I don't think it should be - I think
the programmer should specifically ask for pch generation when they
want it.
-
Gerald Carter
aef7f54355 fix crash bug due to empyrt munged dial string; patch from metze -
Gerald Carter
ccd5665a65 fix crash bug due to empyrt munged dial string; patch from metze -
Jeremy Allison
e61324cc6a Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
-
Jeremy Allison
a646cb60a2 Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
-
Richard Sharpe
63d7698208 Fix a problem with configure on *BSD systems. Make sure we add -liconv etc
to LDFLAGS. One of the problems with configure/autoconf is that there seems
to be no separation of LDLFAGS etc in configure from the LDFLAGS it is
building for the Makefile.
-
Volker Lendecke
efe36a44d3 From 3_0:
Skip over the winbind separator when looking up a user.

Volker
-
Volker Lendecke
6b457d0c5c Skip over the winbind separator when looking up a user.
Volker
-
Jelmer Vernooij
58c21bc0d1 Add new fields bad_password_count and logon_count -
Andrew Bartlett
2a8dbe0369 Merge from 3.0:
source/passdb/pdb_get_set.c:
I agree with vl's #if 0 here, and am not quite sure what I was
thinking with regard to the original code.

Let's keep samba simple, and just remove it.


source/rpc_server/srv_netlog_nt.c:
Remove compleatly wrong comments.  (There were correct, 2 years ago...)


source/intl/lang_tdb.c:
Add newline to debug message


Andrew Bartlett
-
Gerald Carter
ad5588e306 last update to WHATSNEW -
Gerald Carter
20bd309239 * only install swat html files once
* revert the change that prevent the guest
  account from being added to a passdb backend
  since it broke the build farm.
* apply patch from Alex Deiter to fix the
  "smbldap_open: cannot access when not root
  error" messages when looking up group
  information (bug 281)
-
Gerald Carter
9b8bf6a950 * only install swat html files once
* revert the change that prevent the guest
  account from being added to a passdb backend
  since it broke the build farm.
* apply patch from Alex Deiter to fix the
  "smbldap_open: cannot access when not root
  error" messages when looking up group
  information (bug 281)
-
Jeremy Allison
daceed3738 Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>
with memory leak fixes by me.
Jeremy.
-
Jeremy Allison
e591854eda Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>with memory leak fixes by me.
Jeremy.
-
Gerald Carter
d45441bb4f working on release notes for 3.0.1pre2 -
Tim Potter
9d8cacc4e6 Set vendor name. -
Tim Potter
0b28bed505 Set vendor string. -
Tim Potter
e68189ba86 Add vendor name to rpm preamble. -
Gerald Carter
cac4723e20 fix for bug 680 (heads up). This gist is to map the
UNIX entity foo to DOMAIN\foo instead of SERVER\foo
on members of a Samba domain when all UNIX accounts
are shared via NIS, et. al.

  * allow winbindd to match local accounts to domain SID
    when 'winbind trusted domains only = yes'

  * remove code in idmap_ldap that searches the user
    suffix and group suffix.  It's not needed and
    provides inconsistent functionality from the tdb backend.

This has been tested.  I'm still waiting on some more feedback
but This needs to be in 3.0.1pre2 for widespread use.
-
Gerald Carter
ee272414e9 fix for bug 680 (heads up). This gist is to map the
UNIX entity foo to DOMAIN\foo instead of SERVER\foo
on members of a Samba domain when all UNIX accounts
are shared via NIS, et. al.

  * allow winbindd to match local accounts to domain SID
    when 'winbind trusted domains only = yes'

  * remove code in idmap_ldap that searches the user
    suffix and group suffix.  It's not needed and
    provides inconsistent functionality from the tdb backend.

This has been tested.  I'm still waiting on some more feedback
but This needs to be in 3.0.1pre2 for widespread use.
-
Gerald Carter
1e461f06ec don't allow setting of the guest account -
Gerald Carter
e0eea36394 don't allow setting of the guest account -
Volker Lendecke
3a5130f231 From 3_0:
Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.

Volker
-
Volker Lendecke
3a7c8c4f0e Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.

Volker
-
Volker Lendecke
99311b437b From 3_0:
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.

Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.

Volker
-
Volker Lendecke
d7162122ea Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.

Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.

Volker
-
Andrew Bartlett
156cf8bede I agree with vl's #if 0 here, and am not quite sure what I was
thinking with regard to the original code.

Let's keep samba simple, and just remove it.

Andrew Bartlett
-
Andrew Bartlett
256b85802e Remove compleatly wrong comments. (There were correct, 2 years ago...)
Andrew Bartlett
-
Andrew Bartlett
e0868b978e Add newline to debug message -
Richard Sharpe
de6d5f1d10 A fix to allow configure to find iconv on a number of systems including those
that don't have such support in glibc.
-