mat/samba.git
13 years agopidl:Samba4/NDR/Client: convert code to $self->pidl()
Stefan Metzmacher [Thu, 5 Aug 2010 11:29:56 +0000 (13:29 +0200)]
pidl:Samba4/NDR/Client: convert code to $self->pidl()

metze
(cherry picked from commit 62297dff8f64de8ffa3fe4d2a7cd99d45173561d)

13 years agopidl:Samba4/NDR/Client: s/interface/if/
Stefan Metzmacher [Thu, 5 Aug 2010 10:59:46 +0000 (12:59 +0200)]
pidl:Samba4/NDR/Client: s/interface/if/

metze
(cherry picked from commit 570eefc57a051166d99445a830b8d7e5ffbd86f7)

13 years agopidl:Samba4/NDR/Client: make use of the new dcerpc_binding_handle_call() infrastructure
Stefan Metzmacher [Thu, 5 Aug 2010 16:22:02 +0000 (18:22 +0200)]
pidl:Samba4/NDR/Client: make use of the new dcerpc_binding_handle_call() infrastructure

metze
(cherry picked from commit 76691e9eaf9520429c7ea0ef6b2955c143b068e5)

13 years agopidl:Samba4/NDR/Client: remove old dcerpc_pipe based sync stubs
Stefan Metzmacher [Wed, 10 Mar 2010 16:56:10 +0000 (17:56 +0100)]
pidl:Samba4/NDR/Client: remove old dcerpc_pipe based sync stubs

They're unused in Samba and only used by OpenChange.
I'll add a compat functions for OpenChange later.

metze
(cherry picked from commit db89fdac7329d02bf08f705443b62369bb23081e)

13 years agos4:librpc/rpc: add dcerpc_binding_handle dcerpc_pipe backend
Stefan Metzmacher [Thu, 5 Aug 2010 16:18:30 +0000 (18:18 +0200)]
s4:librpc/rpc: add dcerpc_binding_handle dcerpc_pipe backend

metze
(cherry picked from commit 7eef08cc63ed231b54dd2a5936579ffc60a0c087)

13 years agolibrpc/rpc: add dcerpc_binding_handle abstration
Stefan Metzmacher [Thu, 5 Aug 2010 16:14:04 +0000 (18:14 +0200)]
librpc/rpc: add dcerpc_binding_handle abstration

metze
(cherry picked from commit 4030bc9b2df3f2a1c18b373a94c53e48ba80cfc1)

13 years agos4:librpc/rpc: fix dcerpc_log_packet() prototype
Stefan Metzmacher [Tue, 10 Aug 2010 13:11:02 +0000 (15:11 +0200)]
s4:librpc/rpc: fix dcerpc_log_packet() prototype

metze
(cherry picked from commit 282831874379445a071dfe157ae4cfba6aeb10aa)

13 years agos4:librpc/rpc: autodetect the need of async call logic
Stefan Metzmacher [Thu, 12 Aug 2010 08:50:47 +0000 (10:50 +0200)]
s4:librpc/rpc: autodetect the need of async call logic

metze
(cherry picked from commit af89b460f72acb843b57a80a8f61a26056dc0dd2)

13 years agos4:RPC-SPOOLSS-NOTIFY: skip test_RFFPCNEx() for now, as the test is broken
Stefan Metzmacher [Sun, 8 Aug 2010 08:15:12 +0000 (10:15 +0200)]
s4:RPC-SPOOLSS-NOTIFY: skip test_RFFPCNEx() for now, as the test is broken

See https://bugzilla.samba.org/show_bug.cgi?id=7486.

metze
(cherry picked from commit 8ca8250443319e0f19f05aab2014118fd03eaa8a)

13 years agos4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()
Stefan Metzmacher [Mon, 2 Aug 2010 08:21:36 +0000 (10:21 +0200)]
s4:librpc/rpc: avoid using DCERPC_NDR_REF_ALLOC for epm_Map()

metze
(cherry picked from commit 31782e52955f4f9301611a1e94b52b880f2ae302)

13 years agos4:torture/libnet: avoid dereferencing dcerpc_binding_handle internals
Stefan Metzmacher [Mon, 2 Aug 2010 07:53:27 +0000 (09:53 +0200)]
s4:torture/libnet: avoid dereferencing dcerpc_binding_handle internals

metze
(cherry picked from commit b1a584f9dc67bee1ecde408620dd815be3533091)

13 years agos4:blackbox/newuser: use test specific user names
Stefan Metzmacher [Sat, 31 Jul 2010 09:35:31 +0000 (11:35 +0200)]
s4:blackbox/newuser: use test specific user names

As this test doesn't delete the user accounts at the end,
we should use test specific user names. That lowers the
chance of conflicts with other tests.

metze
(cherry picked from commit 76e5d41d6a887e598bef8ec57ddc405c368acc00)

13 years agos4:selftest: skip samba4.blackbox.ktpass for now as it's not portable
Stefan Metzmacher [Sat, 31 Jul 2010 09:31:43 +0000 (11:31 +0200)]
s4:selftest: skip samba4.blackbox.ktpass for now as it's not portable

ktutil might not be installed or from MIT.
We should build a samba4ktutil and use that instead,
until then we need to skip this test.

metze
(cherry picked from commit 0b4247ef7a60e7fe419681919daa3b31cae7bc48)

13 years agos4:blackblock/ktpass: use test specific user name
Stefan Metzmacher [Sat, 31 Jul 2010 09:12:10 +0000 (11:12 +0200)]
s4:blackblock/ktpass: use test specific user name

metze
(cherry picked from commit 34692556bed72130acd2985cc734d74c8a57203e)

13 years agos4:librpc/rpc: use the correct ndr flags in dcerpc_ndr_validate_in()
Stefan Metzmacher [Sat, 31 Jul 2010 07:00:44 +0000 (09:00 +0200)]
s4:librpc/rpc: use the correct ndr flags in dcerpc_ndr_validate_in()

metze
(cherry picked from commit 16756196566770b07ebe066ff7329773c1ae07dc)

13 years agos3: Print the IP of the server that stopped responding
Volker Lendecke [Wed, 1 Sep 2010 10:55:18 +0000 (12:55 +0200)]
s3: Print the IP of the server that stopped responding

13 years agos3: messaging_ctdbd_connection() was only called with procid_self()
Volker Lendecke [Tue, 31 Aug 2010 14:52:56 +0000 (16:52 +0200)]
s3: messaging_ctdbd_connection() was only called with procid_self()

Eventually we'll get this right...

13 years agos3: messaging_ctdbd_init potentially modifies my_vnn
Volker Lendecke [Tue, 31 Aug 2010 14:51:28 +0000 (16:51 +0200)]
s3: messaging_ctdbd_init potentially modifies my_vnn

If we call messaging_ctdbd_connection() we end up with the wrong vnn in our
messaging context.

This is a bit of a hack, get_my_vnn() needs to go eventually along with
procid_self()

13 years agos3: Make ctdbd_init_connection static
Volker Lendecke [Tue, 31 Aug 2010 14:11:10 +0000 (16:11 +0200)]
s3: Make ctdbd_init_connection static

13 years agopackaging: build fixes
Volker Lendecke [Tue, 31 Aug 2010 09:29:55 +0000 (03:29 -0600)]
packaging: build fixes

13 years agopackaging: cifsutils are no longer part of Samba
Volker Lendecke [Mon, 30 Aug 2010 15:55:44 +0000 (09:55 -0600)]
packaging: cifsutils are no longer part of Samba

13 years agovfs_smb_traffic_analyzer: fix off by a second bug
Björn Jacke [Mon, 30 Aug 2010 17:49:35 +0000 (19:49 +0200)]
vfs_smb_traffic_analyzer: fix off by a second bug

convert_timespec_to_time_t is rounding but here we keep track of milliseconds
here - so we should use plain the tv_sec.
(cherry picked from commit a8d8cf00eae08466ef6a232ccbb5ede9ee4d9626)

13 years agos3: Fix a segfault in the printer code using create_conn_struct
Volker Lendecke [Mon, 30 Aug 2010 13:22:29 +0000 (15:22 +0200)]
s3: Fix a segfault in the printer code using create_conn_struct
(cherry picked from commit 6beb5563f3464cf32109c9069b39a5cf71134321)

13 years agopackaging: Build with -O3
Volker Lendecke [Mon, 30 Aug 2010 15:27:24 +0000 (09:27 -0600)]
packaging: Build with -O3

13 years agopackaging: Attempt to fix the RPM build
Volker Lendecke [Mon, 30 Aug 2010 15:26:49 +0000 (09:26 -0600)]
packaging: Attempt to fix the RPM build

13 years agos3: Fix some uninitialized variable warnings
Volker Lendecke [Mon, 30 Aug 2010 13:56:16 +0000 (15:56 +0200)]
s3: Fix some uninitialized variable warnings

13 years agos3: Fix the build of the nfs4_acl module
Volker Lendecke [Mon, 30 Aug 2010 14:36:51 +0000 (08:36 -0600)]
s3: Fix the build of the nfs4_acl module

13 years agos3:smbd: s/sa_len/sa_socklen , because sa_len is a macro on IRIX
Jeremy Allison [Sun, 29 Aug 2010 22:39:15 +0000 (15:39 -0700)]
s3:smbd: s/sa_len/sa_socklen , because sa_len is a macro on IRIX

(Originally from Metze's db6d1c6276e1435e92e190ee9a80de55ca28561d
commit in master). Modified for 3.6.x.

Jeremy.

13 years agoFix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a...
Jeremy Allison [Fri, 27 Aug 2010 22:25:04 +0000 (15:25 -0700)]
Fix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a share.

Fix "security = share" with SMB2 by mapping internally
to "security = user" and "map to guest = Bad User".

Jeremy.
(cherry picked from commit 04f021e69227a9c8094a5d617f53f3a1887e2da3)

13 years agos3: Cache results of finding printer names
Volker Lendecke [Fri, 27 Aug 2010 12:44:16 +0000 (14:44 +0200)]
s3: Cache results of finding printer names

With hundreds of printers or on a slow machine, this can become expensive.

Problem reported and patch sponsored by DESY, Hamburg (www.desy.de)

13 years agos3: source/ is long gone :-)
Volker Lendecke [Fri, 27 Aug 2010 08:29:26 +0000 (10:29 +0200)]
s3: source/ is long gone :-)

13 years agoFix bug #7651 - mknod and mkfifo fails with "No such file or directory"
Jeremy Allison [Thu, 26 Aug 2010 23:46:45 +0000 (16:46 -0700)]
Fix bug #7651 - mknod and mkfifo fails with "No such file or directory"

Ensure we check the correct stat struct once we've created the
special fix. Thanks to izh1979@gmail.com for pointing out the
bug.

Jeremy.
(cherry picked from commit 5115f789c007a155e34505852d847b99b7f4c886)

13 years agowinbindd: Add the client status in the clients list output
Pierre Carrier [Sun, 22 Aug 2010 23:53:40 +0000 (00:53 +0100)]
winbindd: Add the client status in the clients list output

Hello list,

Considered relevant by a customer.
As I suppose one doesn't send SIGUSR2 very often, I didn't bother adding another DEBUGLEVEL.

--
Pierre

13 years agowinbindd: useless function
Pierre Carrier [Sun, 22 Aug 2010 23:53:39 +0000 (00:53 +0100)]
winbindd: useless function

Hello list,

Seems simple enough for my first patch :)

--
Pierre

13 years agos3:smbd: add nfs quota support to the linux-non-sysquota code
Michael Adam [Fri, 6 Aug 2010 09:58:46 +0000 (11:58 +0200)]
s3:smbd: add nfs quota support to the linux-non-sysquota code

This is based on the implementation for solaris and FreeBSD.
It makes rpc calls out to the nfs server to retrieve quota
information.
(cherry picked from commit be598569bbb9dec5cb8035441ef7411ebed29991)

13 years agos3:smbd: add a nfs backend for sysquotas.
Michael Adam [Fri, 6 Aug 2010 08:21:09 +0000 (10:21 +0200)]
s3:smbd: add a nfs backend for sysquotas.

This module is based on the Solaris/FreeBSD implementation
of NFS quotas in the quotas.c module.

It implements the SMB_USER_QUOTA_TYPE query of the
get_quotas call. The other types and the set_quota call
are not implemented.
(cherry picked from commit 3add3aa17de7954b01e2c9273295195438ac30e5)

13 years agos3-selftest: fix make oldtest (testparm_s3 tests use $LOCAL_PATH).
Günther Deschner [Mon, 16 Aug 2010 14:40:12 +0000 (16:40 +0200)]
s3-selftest: fix make oldtest (testparm_s3 tests use $LOCAL_PATH).

Guenther
(cherry picked from commit c80d4cb6fe6b02307599e0b9ad20031a3130f2f5)

13 years agos3-smbtorture: fix printf statement in ioctl test.
Günther Deschner [Mon, 16 Aug 2010 11:30:00 +0000 (13:30 +0200)]
s3-smbtorture: fix printf statement in ioctl test.

Guenther
(cherry picked from commit 731604d8aeccc4b49db1a7f88a5334788a8ed4ef)

13 years agos3-build: always check for python.
Günther Deschner [Mon, 16 Aug 2010 10:08:33 +0000 (12:08 +0200)]
s3-build: always check for python.

This should fix make test. Metze, please check.

Guenther
(cherry picked from commit f24c99fba05ee24232f8047a11f09a093da7b266)

13 years agos3-selftest: fix testparm tests as non-root.
Günther Deschner [Fri, 13 Aug 2010 16:28:48 +0000 (18:28 +0200)]
s3-selftest: fix testparm tests as non-root.

Thanks to Andreas for pointing this out.

Guenther
(cherry picked from commit 472d2a356fe2fad8b54920d99e2829344fd646cd)

13 years agos3-selftest: add testparm tests to selftest.
Günther Deschner [Thu, 12 Aug 2010 13:43:03 +0000 (15:43 +0200)]
s3-selftest: add testparm tests to selftest.

Guenther
(cherry picked from commit b0343b2c0b4851c7bfd3e2fdec171790f09536be)

13 years agos3-build: pointless to link in libads and dcutils into smbcacls.
Günther Deschner [Fri, 13 Aug 2010 11:33:40 +0000 (13:33 +0200)]
s3-build: pointless to link in libads and dcutils into smbcacls.

Guenther
(cherry picked from commit 37177f1c05398e1d4a59bebcdb3cd16dd6e8382b)

13 years agos3-waf: fix the waf build with more recent MIT krb5 libs.
Günther Deschner [Wed, 11 Aug 2010 10:45:51 +0000 (12:45 +0200)]
s3-waf: fix the waf build with more recent MIT krb5 libs.

(such as MIT krb5 1.7.1 on fedora 13).

This whole area needs more work and love later, for now it builds at least.

Kai, please check.

Guenther
(cherry picked from commit c43e832c5160fbffb31ddd64b43dbbc8124b1ca0)

13 years agos3: Make char_flags and base_reverse const arrays
Volker Lendecke [Tue, 24 Aug 2010 19:40:25 +0000 (21:40 +0200)]
s3: Make char_flags and base_reverse const arrays

This moves those arrays from dynamic to static, shared memory, removing them
from globals.c.

I did it by dumping the result of init_tables() with dump_data(). Some massage
by an editor macro made it the initializer.
(cherry picked from commit d3a0ff311e07b1080f33319d521217aa48b483e3)

13 years agopam: fix unused variable warning
Björn Jacke [Tue, 24 Aug 2010 09:07:38 +0000 (11:07 +0200)]
pam: fix unused variable warning
(cherry picked from commit aa830cde6a44187149c207085acdb75fe4e8e343)

13 years agos3-dcerpc: avoid talloc_move on schannel creds in cli_rpc_pipe_open_schannel_with_key().
Günther Deschner [Mon, 23 Aug 2010 14:02:23 +0000 (16:02 +0200)]
s3-dcerpc: avoid talloc_move on schannel creds in cli_rpc_pipe_open_schannel_with_key().

Initially, the schannel creds were talloc memduped, then, during the netlogon
creds client merge (baf7274fed2f1ae7a9e3a57160bf5471566e636c) they were first
talloc_referenced and then later (53765c81f726a8c056cc4e57004592dd489975c9)
talloc_moved.

The issue with using talloc_move here is that users of that function in winbind
will only be able to have two schanneled connections, as the cached schannel
credentials pointer from the netlogon pipe will be set to NULL. Do a deep copy
of the struct instead.

Guenther
(cherry picked from commit 898c6123355a3a11ec17f0396c4cb3018c75c184)

13 years agoFinal part of fix for bug #7636 - winbind internal error, backtrace.
Jeremy Allison [Mon, 23 Aug 2010 20:05:56 +0000 (13:05 -0700)]
Final part of fix for bug #7636 - winbind internal error, backtrace.

Ensure cm_get_schannel_creds() returns NTSTATUS.

Jeremy.

13 years agos3: PAM_RHOST and PAM_TTY are enums on FreeBSD
Volker Lendecke [Mon, 23 Aug 2010 19:00:27 +0000 (21:00 +0200)]
s3: PAM_RHOST and PAM_TTY are enums on FreeBSD
(cherry picked from commit a16a56f60156b3284f9acef9a675122b36ebf7dc)

13 years agoDo not leak pkt data on the long term cli memory context
Simo Sorce [Mon, 23 Aug 2010 22:21:17 +0000 (18:21 -0400)]
Do not leak pkt data on the long term cli memory context

13 years agos3: Fix netgrent configure checks for compilers not supporting -Werror-implicit-funct...
Kai Blin [Sat, 14 Aug 2010 05:40:51 +0000 (07:40 +0200)]
s3: Fix netgrent configure checks for compilers not supporting -Werror-implicit-function-declaration

This should fix bug 7620.
(cherry picked from commit 45ac8ffdb4181c31605ccda5035664a8019ffc49)

Signed-off-by: Kai Blin <kai@samba.org>
13 years agos3: Fix bug 7635
Volker Lendecke [Sat, 21 Aug 2010 09:32:58 +0000 (11:32 +0200)]
s3: Fix bug 7635

13 years agoFix bug 7627 - smbclient ignores "-I" when used with "-L", fails name resolution.
Jeremy Allison [Fri, 20 Aug 2010 22:57:08 +0000 (15:57 -0700)]
Fix bug 7627 - smbclient ignores "-I" when used with "-L", fails name resolution.

Still needs some more work to fix missing netbios name issues, but fixes
underlying issue of IP address being ignored.

Jeremy.
(cherry picked from commit af081ec4a101aa5d0babfd913e40f5f8ed1b0fe9)

13 years agos3:winbindd: fix error handling in wb_next_grent_fetch_done()
Stefan Metzmacher [Tue, 17 Aug 2010 06:05:14 +0000 (08:05 +0200)]
s3:winbindd: fix error handling in wb_next_grent_fetch_done()

We should not use 'result' uninitialized.

metze
(cherry picked from commit c9621a8c005cfc547a26dd92b8183b43665eec5c)

13 years agos3-libsmbclient Convert dos error codes to NTstatus in async libsmbclient.
Jim McDonough [Thu, 19 Aug 2010 12:46:59 +0000 (08:46 -0400)]
s3-libsmbclient Convert dos error codes to NTstatus in async libsmbclient.

DOS error codes were being lost with the conversion to async
libsmbclient.  If we're passing around NTSTATUS internally,
let's just convert it when we get it.

DOS ACCESS_DENIED on nautilus was not prompting for other credentials,
because it was not being mapped.

13 years agos3-ldapsam: add samba.ldif LDAP schema.
Günther Deschner [Thu, 19 Aug 2010 12:22:01 +0000 (14:22 +0200)]
s3-ldapsam: add samba.ldif LDAP schema.

This one is suiteable for cn=config setups and should be added via ldapadd.

Thanks to Sumit Bose <sbose@redhat.com> for providing it.

Guenther
(cherry picked from commit 6864a3e98660396b3cd1e6adae039012929bf59b)

13 years agos3-idmap: fix uninitialized variable in idmap_tdb_sids_to_unixids_action().
Günther Deschner [Thu, 19 Aug 2010 12:01:47 +0000 (14:01 +0200)]
s3-idmap: fix uninitialized variable in idmap_tdb_sids_to_unixids_action().

Michael, please check.

Guenther
(cherry picked from commit 28ba023b4c2bcae3baed5aefe782d7705271af26)

13 years ago-ENOTSUP translates to NT_STATUS_NOT_SUPPORTED
Surbhi Palande [Thu, 19 Aug 2010 08:56:30 +0000 (11:56 +0300)]
-ENOTSUP translates to NT_STATUS_NOT_SUPPORTED

https://launchpad.net/bugs/276472

This patch adds the translation of Unix Error code -ENOTSUP to NT Error Code
NT_STATUS_NOT_SUPPORTED. The absense of this translation wrongly sends back to
the client a STATUS_DENIED message in samba3.

Signed-off-by: Surbhi Palande <surbhi.palande@canonical.com>
(cherry picked from commit 9b8f7a2a01845a37176ce7b4b4024503d6e9ca62)

13 years agoFix bug 7626 - Typo in configure samba_cv__CC_NEGATIVE_ENUM_VALUES two underscores.
Jeremy Allison [Wed, 18 Aug 2010 23:25:15 +0000 (16:25 -0700)]
Fix bug 7626 - Typo in configure samba_cv__CC_NEGATIVE_ENUM_VALUES two underscores.

Noticed by bj@sernet.de.
(cherry picked from commit da2554117e2d9dc4bde7d47d6e81d5d572ca1d02)

13 years agoFix bug 7563 - Creation of symlink using smbclient is buggy.
Jeremy Allison [Mon, 16 Aug 2010 23:31:33 +0000 (16:31 -0700)]
Fix bug 7563 - Creation of symlink using smbclient is buggy.

Fix semantics of symlink. "oldpath" should be an untouched blob,
"newpath" should fit the share path semantics.

Jeremy.

13 years agoFrom master: b9353c65c0662895c8e87f3d1c66574444ccfa12.
Jeremy Allison [Wed, 18 Aug 2010 18:07:49 +0000 (11:07 -0700)]
From master: b9353c65c0662895c8e87f3d1c66574444ccfa12.

Volker Lendecke <vl@samba.org> s3: Fix serverid_register_msg_flags.

13 years agos3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()
Stefan Metzmacher [Tue, 17 Aug 2010 06:02:46 +0000 (08:02 +0200)]
s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()

Ignoring it could cause a segfault in winbindd_getdcname_recv()

metze
(cherry picked from commit aca7b22e96482bdd90e59973e25dc41690969bab)

13 years agos3: Fix some error messages
Volker Lendecke [Fri, 13 Aug 2010 20:51:29 +0000 (22:51 +0200)]
s3: Fix some error messages
(cherry picked from commit ad871b73a26f3b48a522c8374c00aa5ff7d2eb4c)

13 years agos3-printing: fix BUG 7280 - auto printers not loading with registry
Jim McDonough [Mon, 16 Aug 2010 18:07:44 +0000 (14:07 -0400)]
s3-printing: fix BUG 7280 - auto printers not loading with registry
config

13 years agos3:idmap: fix sid_to_unixid for builtin and own domain.
Michael Adam [Fri, 13 Aug 2010 15:26:36 +0000 (17:26 +0200)]
s3:idmap: fix sid_to_unixid for builtin and own domain.

The old idmap code created a new mapping if asking the backends failed.
Now with the new layering, if passdb (which is used for our own domain
and builtin), then we need to continue and ask the backends, giving
tdb or whatever the default backend is a chance to create a mapping.

13 years agos3:idmap: fix spacing/indentation
Michael Adam [Fri, 13 Aug 2010 14:15:38 +0000 (16:15 +0200)]
s3:idmap: fix spacing/indentation

13 years agos3:idmap_ldap: use idmap_rw_new_mapping in idmap_ldap_new_mapping
Michael Adam [Wed, 23 Jun 2010 10:02:31 +0000 (12:02 +0200)]
s3:idmap_ldap: use idmap_rw_new_mapping in idmap_ldap_new_mapping

13 years agos3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()
Michael Adam [Wed, 23 Jun 2010 10:18:35 +0000 (12:18 +0200)]
s3:idmap_ldap: add idmap_rw_ops to idmap_ldap_context and init in db_init()

13 years agos3:idmap_tdb: use idmap_rw_new_mapping in idmap_tdb_new_mapping
Michael Adam [Wed, 23 Jun 2010 10:02:31 +0000 (12:02 +0200)]
s3:idmap_tdb: use idmap_rw_new_mapping in idmap_tdb_new_mapping

13 years agos3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in init_db
Michael Adam [Wed, 23 Jun 2010 10:12:37 +0000 (12:12 +0200)]
s3:idmap_tdb: add idmap_rw_ops to idmap_tdb_context and initialize them in init_db

13 years agos3:idmap_tdb2: use idmap_rw_new_mapping in idmap_tdb2_new_mapping
Michael Adam [Wed, 23 Jun 2010 10:02:31 +0000 (12:02 +0200)]
s3:idmap_tdb2: use idmap_rw_new_mapping in idmap_tdb2_new_mapping

13 years agos3:idmap_tdb2: add rw_ops to idmap_tdb2_context and initialize in idmap_tdb2_db_init
Michael Adam [Wed, 23 Jun 2010 10:01:47 +0000 (12:01 +0200)]
s3:idmap_tdb2: add rw_ops to idmap_tdb2_context and initialize in idmap_tdb2_db_init

13 years agos3:idmap: add abstract idmap_rw new_mapping mechanism without registering backends
Michael Adam [Mon, 31 May 2010 15:12:32 +0000 (17:12 +0200)]
s3:idmap: add abstract idmap_rw new_mapping mechanism without registering backends

13 years agos3:idmap_ad: untangle two assignments from checks
Michael Adam [Tue, 22 Jun 2010 12:13:55 +0000 (14:13 +0200)]
s3:idmap_ad: untangle two assignments from checks

13 years agos3:idmap_ad: remove unused filter_low_id and filter_high_id from idmap_ad_context
Michael Adam [Tue, 22 Jun 2010 12:12:14 +0000 (14:12 +0200)]
s3:idmap_ad: remove unused filter_low_id and filter_high_id from idmap_ad_context

The filter range from the idmap_domain is used now.

13 years agos3:idmap_ad: use range from idmap_domain in idmap_ad_sids_to_unixids()
Michael Adam [Tue, 22 Jun 2010 12:09:57 +0000 (14:09 +0200)]
s3:idmap_ad: use range from idmap_domain in idmap_ad_sids_to_unixids()

13 years agos3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids()
Michael Adam [Tue, 22 Jun 2010 11:13:57 +0000 (13:13 +0200)]
s3:idmap_ad: use range from idmap_domain in idmap_ad_unixids_to_sids()

13 years agos3:idmap_rid: remove a comment that does not apply in that place.
Michael Adam [Tue, 22 Jun 2010 10:47:41 +0000 (12:47 +0200)]
s3:idmap_rid: remove a comment that does not apply in that place.

Probably got copied from a different location.

13 years agos3:idmap_rid: remove unused domain_name from the idmap_rid_context.
Michael Adam [Tue, 22 Jun 2010 10:44:22 +0000 (12:44 +0200)]
s3:idmap_rid: remove unused domain_name from the idmap_rid_context.

13 years agos3:idmap_rid: remove range from idmap_rid_context()
Michael Adam [Tue, 22 Jun 2010 10:42:52 +0000 (12:42 +0200)]
s3:idmap_rid: remove range from idmap_rid_context()

Now, the idmap_domain range that is centrally parsed is used.

13 years agos3:idmap_rid: use range from idmap_domain in idmap_rid_sid_to_id()
Michael Adam [Tue, 22 Jun 2010 10:42:06 +0000 (12:42 +0200)]
s3:idmap_rid: use range from idmap_domain in idmap_rid_sid_to_id()

13 years agos3:idmap_rid: use ranges from idmap_domain struct in idmap_rid_id_to_sid()
Michael Adam [Tue, 22 Jun 2010 10:38:19 +0000 (12:38 +0200)]
s3:idmap_rid: use ranges from idmap_domain struct in idmap_rid_id_to_sid()

13 years agos3:idmap_rid: remove unused talloc context var from idmap_rid_sids_to_unixids()
Michael Adam [Tue, 22 Jun 2010 10:32:35 +0000 (12:32 +0200)]
s3:idmap_rid: remove unused talloc context var from idmap_rid_sids_to_unixids()

13 years agos3:idmap_rid: remove unused talloc context arg from idmap_rid_sid_to_id()
Michael Adam [Tue, 22 Jun 2010 10:31:41 +0000 (12:31 +0200)]
s3:idmap_rid: remove unused talloc context arg from idmap_rid_sid_to_id()

13 years agos3:idmap_rid: remove unused talloc context var from idmap_rid_unixids_to_sids()
Michael Adam [Tue, 22 Jun 2010 10:30:58 +0000 (12:30 +0200)]
s3:idmap_rid: remove unused talloc context var from idmap_rid_unixids_to_sids()

13 years agos3:idmap_rid: remove unused talloc ctx argument from idmap_rid_id_to_sid()
Michael Adam [Tue, 22 Jun 2010 10:29:57 +0000 (12:29 +0200)]
s3:idmap_rid: remove unused talloc ctx argument from idmap_rid_id_to_sid()

13 years agos3:idmap_rid: untangle assignment from check in idmap_rid_initialize()
Michael Adam [Mon, 21 Jun 2010 15:28:37 +0000 (17:28 +0200)]
s3:idmap_rid: untangle assignment from check in idmap_rid_initialize()

13 years agos3:idmap_ldap: add my (C)
Michael Adam [Wed, 23 Jun 2010 10:39:59 +0000 (12:39 +0200)]
s3:idmap_ldap: add my (C)

13 years agos3:idmap_ldap: create mappings for unmapped sids in idmap_ldap_sids_to_unixids()
Michael Adam [Thu, 17 Jun 2010 19:55:02 +0000 (21:55 +0200)]
s3:idmap_ldap: create mappings for unmapped sids in idmap_ldap_sids_to_unixids()

13 years agos3:idmap_ldap: add a idmap_ldap_new_mapping().
Michael Adam [Thu, 17 Jun 2010 18:19:46 +0000 (20:19 +0200)]
s3:idmap_ldap: add a idmap_ldap_new_mapping().

High level function to create a new mapping for an unmapped sid.
This builds logic that used to reside in the top level idmap code
in the backend.

13 years agos3:idmap_ldap: add idmap_ldap_get_new_id() to allocate a new id given a domain
Michael Adam [Thu, 17 Jun 2010 18:18:27 +0000 (20:18 +0200)]
s3:idmap_ldap: add idmap_ldap_get_new_id() to allocate a new id given a domain

Currently this only works with the default domain, calling out
to idmap_ldap_allocate_id(). In the future this will be extended
to also work for non-default domains.

13 years agos3:idmap_ldap: move idmap_ldap_set_mapping() further up.
Michael Adam [Thu, 17 Jun 2010 18:15:25 +0000 (20:15 +0200)]
s3:idmap_ldap: move idmap_ldap_set_mapping() further up.

13 years agos3:idmap_ldap: make idmap_ldap_alloc_context a member of idmap_ldap_context
Michael Adam [Thu, 17 Jun 2010 17:45:39 +0000 (19:45 +0200)]
s3:idmap_ldap: make idmap_ldap_alloc_context a member of idmap_ldap_context

this hides this beneath the idmap structure and removes a global variable

13 years agos3:idmap_ldap: call idmap_ldap_alloc_init from idmap_ldap_init.
Michael Adam [Thu, 17 Jun 2010 17:17:48 +0000 (19:17 +0200)]
s3:idmap_ldap: call idmap_ldap_alloc_init from idmap_ldap_init.

The alloc subsystem is now subordinate to the idmap system.

13 years agos3:idmap_ldap: remove the (now unused) range from idmap_ldap_alloc_context
Michael Adam [Thu, 17 Jun 2010 17:03:46 +0000 (19:03 +0200)]
s3:idmap_ldap: remove the (now unused) range from idmap_ldap_alloc_context

13 years agos3:idmap_ldap: use ranges from idmap domain in idmap_ldap_allocate_id()
Michael Adam [Thu, 17 Jun 2010 17:03:12 +0000 (19:03 +0200)]
s3:idmap_ldap: use ranges from idmap domain in idmap_ldap_allocate_id()

Second step in removing the idmap range from the idmap_ldap_alloc_context.

13 years agos3:idmap_ldap: add idmap_domain arg to idmap_ldap_alloc_init and verify_idpool
Michael Adam [Thu, 17 Jun 2010 16:59:28 +0000 (18:59 +0200)]
s3:idmap_ldap: add idmap_domain arg to idmap_ldap_alloc_init and verify_idpool

First step in removing idmap ranges from the idmap_ldap_alloc_context.
The range from the domain is to be used now.

13 years agos3:idmap_ldap: remove unused filter range from struct idmap_ldap_context
Michael Adam [Thu, 17 Jun 2010 08:16:54 +0000 (10:16 +0200)]
s3:idmap_ldap: remove unused filter range from struct idmap_ldap_context

13 years agos3:idmap_ldap: don't load ranges - they have been loaded into struct idmap_domain
Michael Adam [Thu, 17 Jun 2010 08:16:20 +0000 (10:16 +0200)]
s3:idmap_ldap: don't load ranges - they have been loaded into struct idmap_domain

13 years agos3:idmap_ldap: use filter range from idmap domain, not idmap_ldap_context
Michael Adam [Thu, 17 Jun 2010 08:00:49 +0000 (10:00 +0200)]
s3:idmap_ldap: use filter range from idmap domain, not idmap_ldap_context

13 years agos3:idmap_ldap: re-implement allocate_id in idmap methods.
Michael Adam [Tue, 22 Jun 2010 12:49:00 +0000 (14:49 +0200)]
s3:idmap_ldap: re-implement allocate_id in idmap methods.