1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

15415 Commits

Author SHA1 Message Date
Simo Sorce
fca92574af do not build config_ldap by default
(forget to remove the module from the default list after testing :-)
(This used to be commit aae13b2e63dd3aeafe7dcb48a484da9d51a0a589)
2003-11-16 09:11:38 +00:00
Simo Sorce
c473b3983e 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
(This used to be commit e17af6d6cf9244b1204f13b7d5be76b4595d5b95)
2003-11-15 00:52:06 +00:00
Simo Sorce
e762e32389 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
(This used to be commit 207968eafc2c2a185e50e2132702d7bab2142aba)
2003-11-15 00:47:29 +00:00
Gerald Carter
7301471a6a fix more memory leaks in the LDAP backend code; patches from metze
(This used to be commit 89a8c607af4ca67fcefe285480f7c9b832f6720c)
2003-11-14 03:36:27 +00:00
Gerald Carter
9da85503ed first draft of release notes for 3.0.1pre3
(This used to be commit d4cbd00dfe0968cb5251434a9e2989affddef853)
2003-11-14 03:32:21 +00:00
Gerald Carter
36558f8f2b fix more memory leaks in the LDAP backend code; patches from metze
(This used to be commit e079c8842a24ff4f50483bea8ca6b11db4b2dc99)
2003-11-14 03:28:03 +00:00
Richard Sharpe
716dd32809 Update Makefile ...
(This used to be commit b92fd87b2461dff0e05ad4a7b0a475539c21d4c0)
2003-11-13 21:42:07 +00:00
Richard Sharpe
d3d4c7446e Add this to samba-head.
(This used to be commit d761175f131f80ae24549adca6ffc629f84a9803)
2003-11-13 21:40:27 +00:00
Gerald Carter
ac20c8cfb0 * 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
(This used to be commit d7026f6d178f6ed531bbf7d681d4efde0828616c)
2003-11-13 20:16:28 +00:00
Gerald Carter
281e293331 * 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
(This used to be commit fd98af75d655449a677360f6991da5caabc88b4d)
2003-11-13 20:15:17 +00:00
Richard Sharpe
5fd6b5bc61 More casty-foo ...
(This used to be commit 00d5136ea0456115c25bf3c791616ef4bbbb8fc1)
2003-11-13 17:35:00 +00:00
Richard Sharpe
0b5019ffc9 Squelch some warnings with more casty-foo.
(This used to be commit d165a49d860443741e57458b8a819c6d54824fc5)
2003-11-13 17:30:25 +00:00
Richard Sharpe
e6994778ec Fix a couple of warnings with casts.
(This used to be commit 58d7a51c5762a444aae6a795a3703269134423d7)
2003-11-13 17:27:21 +00:00
Richard Sharpe
618d7dd0c7 Keep configure.in in sync with SAMBA-3.0.0
(This used to be commit 664cc4f46cf1be08c704a9d163ee33c8629ad065)
2003-11-13 17:04:59 +00:00
Gerald Carter
bd4e882b0b show locked files for -u <user>; bug 590
(This used to be commit 3290582cb0542d1e2a7e1e5213614fca8788b070)
2003-11-12 22:37:09 +00:00
Gerald Carter
c3c1e248ad show locked files for -u <user>; bug 590
(This used to be commit d72d77c42741714f2e32d0e24e706929242f1c62)
2003-11-12 22:35:50 +00:00
Rafal Szczesniak
a40625bc9d > 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
(This used to be commit af972c76158069efe3817a4e6dce4826d883edf1)
2003-11-12 21:47:25 +00:00
Richard Sharpe
19aff105aa Add testacl.c ... from Derrell Lipman.
(This used to be commit af42af75a45d6e6538009694704e11eb83c88457)
2003-11-12 21:46:39 +00:00
Rafal Szczesniak
daea4804c3 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
(This used to be commit d6857d191ca5aa24f791880e517b0e8db3d587eb)
2003-11-12 13:02:25 +00:00
Andrew Tridgell
e1c468477c 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.
(This used to be commit b3e024ce1da7c7e24fcacd8a2964dd2e4562ba39)
2003-11-12 01:51:10 +00:00
Andrew Tridgell
009c143efd 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.
(This used to be commit ef01aedfb4e97af9283b0d54dd362aad809016af)
2003-11-12 01:01:47 +00:00
Gerald Carter
0f98e8ab83 fix crash bug due to empyrt munged dial string; patch from metze
(This used to be commit aef7f54355a71e36963ed7427e9c2f05d26cc222)
2003-11-11 19:22:44 +00:00
Gerald Carter
b64c6355b0 fix crash bug due to empyrt munged dial string; patch from metze
(This used to be commit ccd5665a65de6ccfdb9a5f490be1a7b5de486e2a)
2003-11-11 19:22:00 +00:00
Jeremy Allison
33e6af5b3d Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
(This used to be commit e61324cc6a222ca714530827068104f7a74c0911)
2003-11-10 19:33:42 +00:00
Jeremy Allison
912289bd48 Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
(This used to be commit a646cb60a24498451d379967a1da272fcd40875f)
2003-11-10 19:33:40 +00:00
Richard Sharpe
970c1c73db 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.
(This used to be commit 63d7698208a0fc4dfd2e3158f5ccbb1b6d9a6baf)
2003-11-10 05:34:51 +00:00
Volker Lendecke
649f7d749d From 3_0:
Skip over the winbind separator when looking up a user.

Volker
(This used to be commit efe36a44d3d35f2bbb3381916dfdfda80560b67c)
2003-11-09 17:24:16 +00:00
Volker Lendecke
39ccc0f515 Skip over the winbind separator when looking up a user.
Volker
(This used to be commit 6b457d0c5c1a18b6e09c2c4cc489ce791aac3c6b)
2003-11-09 17:23:57 +00:00
Jelmer Vernooij
9da5e6a4da Add new fields bad_password_count and logon_count
(This used to be commit 58c21bc0d1e9a39e64ce7b9efd637dc776c06029)
2003-11-09 14:09:27 +00:00
Andrew Bartlett
30d0680106 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
(This used to be commit 2a8dbe03690b60f3d9c83de3cf6ce873aa0657bc)
2003-11-09 09:30:21 +00:00
Gerald Carter
b1f1bbaede last update to WHATSNEW
(This used to be commit ad5588e3062f9f9a10e7102062805cae1cc50385)
2003-11-07 23:14:09 +00:00
Gerald Carter
f9230c937b * 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)
(This used to be commit 20bd309239199d85accb2b7aac6d4dd73e414f85)
2003-11-07 23:04:52 +00:00
Gerald Carter
6ebde91c44 * 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)
(This used to be commit 9b8bf6a950186bd95abe952af4a7d35829b34ff8)
2003-11-07 23:04:06 +00:00
Jeremy Allison
a3aa2c9ed4 Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>
with memory leak fixes by me.
Jeremy.
(This used to be commit daceed37387c517b3f0ab9c173f419215e3d676b)
2003-11-07 18:32:29 +00:00
Jeremy Allison
5cfe36d09d Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>with memory leak fixes by me.
Jeremy.
(This used to be commit e591854eda8568ed1a4ad6b9de64e523c02b4392)
2003-11-07 18:32:23 +00:00
Gerald Carter
1f62f2d057 working on release notes for 3.0.1pre2
(This used to be commit d45441bb4f893e76c25aca1d40f23e0f0d347b51)
2003-11-07 17:33:37 +00:00
Tim Potter
6245ac10f9 Set vendor name.
(This used to be commit 9d8cacc4e6d6336455732286e5e6f90ac3f4ec49)
2003-11-07 16:55:40 +00:00
Tim Potter
2849cc69bd Set vendor string.
(This used to be commit 0b28bed5058947ff95fdb64f4beb784c90d02afc)
2003-11-07 16:54:57 +00:00
Tim Potter
d34e91dbbc Add vendor name to rpm preamble.
(This used to be commit e68189ba863596ea92dc4fa199457bd93d322888)
2003-11-07 16:53:25 +00:00
Gerald Carter
e9bd28d0a7 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.
(This used to be commit cac4723e206bd001882011c9e12327064d032268)
2003-11-07 14:41:08 +00:00
Gerald Carter
84ca7ad00c 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.
(This used to be commit ee272414e9965d7d550ba91d4e83997134dd51e6)
2003-11-07 14:39:47 +00:00
Gerald Carter
178a463524 don't allow setting of the guest account
(This used to be commit 1e461f06ec492dc3f139165932c3518a6dd416f9)
2003-11-07 14:32:55 +00:00
Gerald Carter
9db332645b don't allow setting of the guest account
(This used to be commit e0eea3639425aa6f4b621cce6b33df9e9c67ba6d)
2003-11-07 14:32:25 +00:00
Volker Lendecke
91e61843d7 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
(This used to be commit 3a5130f231a0fd6f7490d3b028361ff0458bfae1)
2003-11-07 10:12:43 +00:00
Volker Lendecke
88b0120e56 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
(This used to be commit 3a7c8c4f0e7fcfc2e20e1ad5e4b8e3c215ef1f0d)
2003-11-07 10:11:48 +00:00
Volker Lendecke
99cbab5c3b 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
(This used to be commit 99311b437be050fd9ee656cd184f299993d20bfb)
2003-11-07 09:04:57 +00:00
Volker Lendecke
d5573ccde3 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
(This used to be commit d7162122eaf5d897e5de51604e431bfbaa20e905)
2003-11-07 09:03:02 +00:00
Andrew Bartlett
c22afa7d97 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
(This used to be commit 156cf8bede52e1d33be980fd8841367253a60b9e)
2003-11-07 08:36:29 +00:00
Andrew Bartlett
ec04a97496 Remove compleatly wrong comments. (There were correct, 2 years ago...)
Andrew Bartlett
(This used to be commit 256b85802e5820847fbad4305fcb0f5da2e51975)
2003-11-07 08:34:43 +00:00
Andrew Bartlett
ab023b0b49 Add newline to debug message
(This used to be commit e0868b978ec5debf6b91aeeb85aa1f404d07a34b)
2003-11-07 08:29:29 +00:00