Age | Commit message (Collapse) | Author | Files | Lines |
|
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)
|
|
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)
|
|
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)
|
|
(This used to be commit a6cc763333943bc6e360bb7e78cf9bfb1bc936e8)
|
|
Revision 1.42.2.8:
Use the actual size of the buffer in strftime instead of a
made up value which just happens to be less than
sizeof(fstring). Closes #713.
(This used to be commit 45c28f8a2723b5e942d13d1c6e5db757921fb64f)
|
|
Revision 1.10.2.6:
Cast to fix warning on Solaris sendfile - check buildfarm
output to see if this works! Bug #706.
(This used to be commit 06c4fc35a7226e719c2748b818ecf4e18dd1a4fb)
|
|
(This used to be commit d1cf39e2ecee7e76953a5eee386f723a46bf9b14)
|
|
Jeremy.
(This used to be commit b7ce6294bbff9ef82b34d900fe836ff2e3c5abe1)
|
|
(This used to be commit 5f9fe8304f037f91fa765e64580a7119aeb201dd)
|
|
GUID has been removed. If you are dealing with a flattened version of a
[gu]uid, use UUID_FLAT. smb_pack_uuid and smb_unpack_uuid will switch
between the two.
I'm not sure exactly what the genparse stuff is doing here, so I just
switched it to a UUID_FLAT (no functional change), but I suspect this
may not be the right way to go.
(This used to be commit 001e9d0e814109a26d598001b3c23dfdb04510ff)
|
|
(This used to be commit 0e8fcfac702515f8870c979262bf881d1155efdc)
|
|
Takes care of secdescs.
Had to move the uuid marshall/unmarshalling code to parse_misc, because
it's needed outside of parse_rpc.c (for no-auth calls)
(This used to be commit 5d2bb079b65ccfec14604d8dcf0ce789d1795b46)
|
|
This eliminates RPC_UUID. It creates the following struct:
struct uuid
{
uint32 time_low;
uint16 time_mid;
uint16 time_hi_and_version;
uint8 clock_seq[2];
uint8 node[6];
};
which replaces RPC_UUID and various random struct uuid definitions
and a flat version:
#define UUID_FLAT_SIZE 16
typedef struct uuid_flat
{
uint8 info[UUID_FLAT_SIZE];
} UUID_FLAT;
which pretty much looks like GUID (which I will start eliminating).
I want us to use the FLAT one only on the wire (perhaps in files, too?), and
I want it to be obvious to the coder that it is the FLAT version.
This leaves a couple of compiler warnings, where GUID isn't completely
replaced by FLAT_UUID yet...I'll get to those soon.
(This used to be commit 1532b5d2e3c61df232b16394acedf6eac387588b)
|
|
Jeremy.
(This used to be commit 124a8ddae63adff4f601242a8e6d05abcaf4d9bf)
|
|
actual standard, and __va_copy was the proposed standard.
(This used to be commit 4ab7947e601e61cacd7ff541ee881850d9808387)
|
|
After a phonecall with jra finally commit this.
This changes our behaviour when the setresuid call is available. We now not
only change the effective uid but also the real uid when becoming
unprivileged. This is mainly for improved AFS compatibility, as AFS selects
the token to send to the server based on the real uid of the process.
I tested this with a W2k server with two non-root 'runas' sessions. They come
in via a single smbd as two different users using two session setups. Samba on
Linux can still switch between the two uids, proved by two different files
created via those sessions.
Volker
(This used to be commit 8a75e2dfb6ee9099e7f9a970c522e71ab144d919)
|
|
to tty instead of stdout.
(This used to be commit fb503bb418fcbee20d2218650904b26b512106ed)
|
|
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit 5c050a735f86927c7ef2a98b6f3a56abe39e4674)
|
|
when reverse connecting back to a client for printer notify.
Jeremy.
(This used to be commit 7fde193efeb856ec325d5d563f1e710c45dc65d7)
|
|
(This used to be commit e982dd5bc4c7c0215bd4f2daf13da506c00b7cb9)
|
|
laternative to the current passdb).
Currently it is run through a comatibility module in the passdb layer, with
a subset of the functionality it may provide.
It is still work in progress, but as someone asked me about it, and as it
should make no difference to the normal code, I tought it was a good idea to
put it into.
It adds a dependency on perl. I know it is not very nice, but I'm sure we
will work out a solution for that.
As always blame me if I break something, but try to fix yourself, as I am
busy-busy-busy :-)
Simo.
(This used to be commit 7b3c94b5cfc1a9ceb430613353a937345f2eda74)
|
|
(This used to be commit 98d60dc1c7027a50f720933eb8d6ffbfb4276fa5)
|
|
Patch by Stefan Metzmacher <metze@metzemix.de>
(This used to be commit cd3e4882fcf2437f4140557608e671284d0e92b4)
|
|
(no need to include all of smbd files to use some basic sec functions)
also minor compile fixes
(This used to be commit 66074d3b097d8cf2a231bf08c7f4db62da68189d)
|
|
Jeremy.
(This used to be commit 202d4e46527993d359df7cd04fb611c22cc920c3)
|
|
Jeremy.
(This used to be commit 8a284463458cfaaff9986bbc459dfc113f921c6c)
|
|
(This used to be commit b6433f5db77a1d62309946c6f23c18c6c299d0c5)
|
|
>iconv isn't const safe. Neither should smb_iconv be.
>Jeremy.
(This used to be commit 7bd450f8b678e835ba4f9cfdc3d096b04da6f8f7)
|
|
>Fix for #480. Change the interface for init_unistr2 to not take a length
>but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string.
>This is not the case. Count it after conversion.
>Jeremy.
(This used to be commit e2ab9e54cd0ec0002175cf18ff364f4aebaf85a0)
|
|
* set version string to "CVS 3.1.0alpha1"
(This used to be commit c6a61ffcbd0c95afd94bd33fd832b24bc8209de5)
|
|
(This used to be commit 585764305aa84a7732f71f2e01227e1a6a08664f)
|
|
me to expose a type arguement to make_sec_desc(). We weren't copying
the SE_DESC_DACL_AUTO_INHERITED flag which could cause errors on
auto inherited checks.
Jeremy.
(This used to be commit 546b2271c08735ac1049a453abac996d794aa364)
|
|
Jeremy.
(This used to be commit b3b2b3d5e7c9d4995890bf7b156fc1176b042cfc)
|
|
(This used to be commit f4eb7acc7dfc400cc6524dccdd8081acd707f937)
|
|
>Still on my mb rampage. Ensure smbldap_make_mod() correctly detects old
>values.
>Jeremy.
(This used to be commit 9df18a6c4ea30545297f9e5a0b10b440e6a0687e)
|
|
>Fix for MacOS/X which uses STUPID BROKEN UNICODE COMPOSE CHARACTERS !
>(rant off :-). Inspired by work from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>.
>Also add MacOSX/Darwin configure fixes.
>Jerry - can we put this in 3.0 release ? :-).
>Jeremy.
(This used to be commit 67acde75d3569b612f87646ff0740f8020e8fdcf)
|
|
>For some reason testparm runs at debug level 2 which causes the module probe functions to
>display verbose debugs. Increase the probe debugs to level 3.
(This used to be commit be91bbd570bd94f67001aab9cfb2baf44b390097)
|
|
(This used to be commit a5656a5756b3c1061d683d664a7f087182b39b47)
|
|
(This used to be commit c17a7dc9a190156a069da3e861c18fd3f81224ad)
|
|
(This used to be commit 3101c236b8241dc0183995ffceed551876427de4)
|
|
(This used to be commit 99feae7b5b1c229a925367b87c0c0f636d9a2d75)
|
|
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE
(This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
|
|
(This used to be commit df24c4e839b3de0dc23400463d7489a991f61f49)
|
|
(This used to be commit d41705dec6bed752acfe3210c73a949101dc23f6)
|
|
(This used to be commit 43e01fb2306f35931256dfda6803bd887f28059f)
|
|
(This used to be commit bd97a76388b3f16d287c25579f02afe072cdec25)
|
|
(This used to be commit 0a80db5bde14e19d79411d832d51430d1b1c3454)
|
|
*SMBSERV as per comments in loadparm.c
(This used to be commit a6cb33c5bf0e26d8092c06a2cc01a6678109fb68)
|
|
(This used to be commit 30a1b517fca6554c3beb5cc33fa0299d1376a542)
|
|
(This used to be commit a1326ea34831bf49942f7bcb954999091c3ea820)
|