ira/wip.git
16 years agoRemove unused marshalling for LSA_ADDPRIVS and LSA_REMOVEPRIVS.
Günther Deschner [Thu, 14 Feb 2008 13:01:49 +0000 (14:01 +0100)]
Remove unused marshalling for LSA_ADDPRIVS and LSA_REMOVEPRIVS.

Guenther
(This used to be commit 5b700aba1a2e1559c17fec9d82e87312e8a5b15d)

16 years agoUse pidl for _lsa_AddPrivilegesToAccount and _lsa_RemovePrivilegesFromAccount.
Günther Deschner [Thu, 14 Feb 2008 12:50:32 +0000 (13:50 +0100)]
Use pidl for _lsa_AddPrivilegesToAccount and _lsa_RemovePrivilegesFromAccount.

Guenther
(This used to be commit 0c9904864b5c3b893f99abdebb18d9624aa0f560)

16 years agoAdd lsaaddpriv and lsadelpriv commands to rpcclient.
Günther Deschner [Thu, 14 Feb 2008 12:46:39 +0000 (13:46 +0100)]
Add lsaaddpriv and lsadelpriv commands to rpcclient.

Guenther
(This used to be commit e55bb83f84d0d459f4280c2a4bfa4cc14bd3924d)

16 years agoFix IDL for lsa_AddPrivilegesToAccount.
Günther Deschner [Thu, 14 Feb 2008 11:47:04 +0000 (12:47 +0100)]
Fix IDL for lsa_AddPrivilegesToAccount.

Guenther
(This used to be commit 21f82166982784c9685a6403c8db21f421ed0bad)

16 years agoRemove unused marshalling for LSA_LOOKUP_PRIV_VALUE.
Günther Deschner [Thu, 14 Feb 2008 12:31:55 +0000 (13:31 +0100)]
Remove unused marshalling for LSA_LOOKUP_PRIV_VALUE.

Guenther
(This used to be commit 8125d8557fb4b27873f8eabc6ad1019491d18cce)

16 years agoUse rpccli_lsa_LookupPrivValue() in rpcclient.
Günther Deschner [Thu, 14 Feb 2008 12:29:18 +0000 (13:29 +0100)]
Use rpccli_lsa_LookupPrivValue() in rpcclient.

Guenther
(This used to be commit c15243dd1faaa01cd05d6e2f6ae873cc32097397)

16 years agoUse pidl for _lsa_LookupPrivValue().
Günther Deschner [Thu, 14 Feb 2008 12:25:42 +0000 (13:25 +0100)]
Use pidl for _lsa_LookupPrivValue().

Guenther
(This used to be commit 87dc2471d1c2a5be17604399d4f684193a6bba38)

16 years agoFix IDL for lsa_LookupPrivValue.
Günther Deschner [Thu, 14 Feb 2008 12:09:54 +0000 (13:09 +0100)]
Fix IDL for lsa_LookupPrivValue.

Guenther
(This used to be commit 05386f70566e272247ed917b51d712054196ebcb)

16 years agoRemove unused marshalling for LSA_ENUMPRIVSACCOUNT.
Günther Deschner [Thu, 14 Feb 2008 11:15:17 +0000 (12:15 +0100)]
Remove unused marshalling for LSA_ENUMPRIVSACCOUNT.

Guenther
(This used to be commit 004598bc1322b6e2deb62115713768682fee988e)

16 years agoUse rpccli_lsa_EnumPrivsAccount() in rpcclient.
Günther Deschner [Thu, 14 Feb 2008 11:13:13 +0000 (12:13 +0100)]
Use rpccli_lsa_EnumPrivsAccount() in rpcclient.

Guenther
(This used to be commit c28b52dcfedd575f5ae4ed7942857d3853bdd051)

16 years agoRemove white space.
Günther Deschner [Thu, 14 Feb 2008 12:12:28 +0000 (13:12 +0100)]
Remove white space.

Guenther
(This used to be commit a33ed085094b200e153939cb1b02e567f07b1e50)

16 years agoUse pidl for _lsa_EnumPrivsAccount().
Günther Deschner [Thu, 14 Feb 2008 00:53:00 +0000 (01:53 +0100)]
Use pidl for _lsa_EnumPrivsAccount().

Guenther
(This used to be commit d7655932a7cb436f1ee44e443882e2f06d598aa0)

16 years agoRe-run make idl.
Günther Deschner [Thu, 14 Feb 2008 00:55:22 +0000 (01:55 +0100)]
Re-run make idl.

Guenther
(This used to be commit e75283178dee42a64ec3963f64652c202f0dbd0b)

16 years agoFix IDL for lsa_EnumPrivsAccount.
Günther Deschner [Thu, 14 Feb 2008 00:51:15 +0000 (01:51 +0100)]
Fix IDL for lsa_EnumPrivsAccount.

Guenther
(This used to be commit 369df93875c501af460d87b67bb5e919f7741a69)

16 years agoFix typo.
Günther Deschner [Thu, 14 Feb 2008 00:53:42 +0000 (01:53 +0100)]
Fix typo.

Guenther
(This used to be commit 4e3357ac3a1b0adac1744a71f997e3442e0e4209)

16 years agoRemove accidential commit.
Günther Deschner [Thu, 14 Feb 2008 00:45:07 +0000 (01:45 +0100)]
Remove accidential commit.

Guenther
(This used to be commit 2ab1167e156e989f4b60fcb4dbc7d7eefc64bed0)

16 years agoRemove unused marshalling for LSA_ENUM_ACCOUNTS.
Günther Deschner [Thu, 14 Feb 2008 00:34:34 +0000 (01:34 +0100)]
Remove unused marshalling for LSA_ENUM_ACCOUNTS.

Guenther
(This used to be commit 8c476ad51622f76bf8f03f6255369b8e19f24a72)

16 years agoUse rpccli_lsa_EnumAccounts() in net and rpcclient.
Günther Deschner [Thu, 14 Feb 2008 00:32:56 +0000 (01:32 +0100)]
Use rpccli_lsa_EnumAccounts() in net and rpcclient.

Guenther
(This used to be commit bdbcfa4419a54b98ea577b0052894ddaa06890ce)

16 years agoUse pidl for _lsa_EnumAccounts.
Günther Deschner [Thu, 14 Feb 2008 00:16:03 +0000 (01:16 +0100)]
Use pidl for _lsa_EnumAccounts.

Guenther
(This used to be commit 07e5138ad960bce8569ea593ca9a1b4fbf2b1048)

16 years agoRe-run make idl.
Günther Deschner [Thu, 14 Feb 2008 00:07:54 +0000 (01:07 +0100)]
Re-run make idl.

Guenther
(This used to be commit debf51aa966d1f243894d458069346a60c76714b)

16 years agoFix IDL for lsa_EnumAccounts.
Günther Deschner [Thu, 14 Feb 2008 00:08:40 +0000 (01:08 +0100)]
Fix IDL for lsa_EnumAccounts.

Guenther
(This used to be commit d4744fe33fa99152f414e6e3a048eb9479f3d2b2)

16 years agoTry and fix the Darwin build with dynamic libs.
Michael Adam [Wed, 13 Feb 2008 23:09:17 +0000 (00:09 +0100)]
Try and fix the Darwin build with dynamic libs.

Golly gosh, this one took me quite some time to figure out!
Hopefully, I did not introduce any typos copying...

Michael
(This used to be commit 85ca2c9edb9ac54d3fa18d6b343a73dda1d48040)

16 years agoRemove unused marshalling for NET_LOGON_CTRL and NET_LOGON_CTRL2.
Günther Deschner [Wed, 13 Feb 2008 22:12:42 +0000 (23:12 +0100)]
Remove unused marshalling for NET_LOGON_CTRL and NET_LOGON_CTRL2.

Guenther
(This used to be commit c94538e742e469e4afc6e30d9d99951fda6dd219)

16 years agoUse pidl for _netr_LogonControl2.
Günther Deschner [Wed, 13 Feb 2008 22:06:09 +0000 (23:06 +0100)]
Use pidl for _netr_LogonControl2.

Guenther
(This used to be commit 4bd02aa6cdfdfd8f3b678fc81a0a1bd70cef9a67)

16 years agoAdd some netr_NETLOGON_INFO init functions.
Günther Deschner [Wed, 13 Feb 2008 21:55:44 +0000 (22:55 +0100)]
Add some netr_NETLOGON_INFO init functions.

Guenther
(This used to be commit f0c66688588a4e62c4a250b0d21a0fe14bbc5099)

16 years agoFix logonctrl2 command in rpcclient.
Günther Deschner [Wed, 13 Feb 2008 21:54:43 +0000 (22:54 +0100)]
Fix logonctrl2 command in rpcclient.

Guenther
(This used to be commit c58be24cd43092e5ebf7aa84f167a5cc8344edfc)

16 years agoMove some lsa init routines around.
Günther Deschner [Wed, 13 Feb 2008 16:57:57 +0000 (17:57 +0100)]
Move some lsa init routines around.

Guenther
(This used to be commit 8d3e7e8bb067b9e0aab79bc460647e8a6176102e)

16 years agoRe-run make idl.
Günther Deschner [Wed, 13 Feb 2008 22:00:36 +0000 (23:00 +0100)]
Re-run make idl.

Guenther
(This used to be commit a111167062f0bee9477b5988a3ce796af81407fc)

16 years agoFix IDL for netr_ServerPasswordSet.
Günther Deschner [Wed, 13 Feb 2008 15:46:23 +0000 (16:46 +0100)]
Fix IDL for netr_ServerPasswordSet.

Guenther
(This used to be commit da951e278c5253b0d23145790c817b2f01ac47ef)

16 years agoRemove --enable-libwbclient-shared , use --with-static-libs=libwbclient instead.
Michael Adam [Wed, 13 Feb 2008 13:53:34 +0000 (14:53 +0100)]
Remove --enable-libwbclient-shared , use --with-static-libs=libwbclient instead.

Use the more general mechanism.
The enable_developer-check is preserved, of course.

Michael
(This used to be commit 4321d5aba7ec808aee473c1123027f14bfa19f19)

16 years agoUse --with-static-libs=libtalloc instead of --with-static-libs=talloc
Michael Adam [Wed, 13 Feb 2008 14:10:53 +0000 (15:10 +0100)]
Use --with-static-libs=libtalloc instead of --with-static-libs=talloc

for consistency (and similar for all other examples).

Michael
(This used to be commit 198768a83242cca3f03d839598200d794bb11606)

16 years agoLink in libnetapi as shared or static library (same mechanism as talloc).
Michael Adam [Wed, 13 Feb 2008 13:43:56 +0000 (14:43 +0100)]
Link in libnetapi as shared or static library (same mechanism as talloc).

This, too, can be turned to static linking by providing the configure
parameter --with-static-libs=netapi.

Michael
(This used to be commit a4c773de0fbd303f633e120e817b4c88fcff2064)

16 years agoRe-run make idl.
Günther Deschner [Wed, 13 Feb 2008 13:12:29 +0000 (14:12 +0100)]
Re-run make idl.

Guenther
(This used to be commit 782ad12e3c100cf74ca0bc353379efe90da69b98)

16 years agoFix IDL for netr_LogonControl2.
Günther Deschner [Wed, 13 Feb 2008 11:29:24 +0000 (12:29 +0100)]
Fix IDL for netr_LogonControl2.

Guenther
(This used to be commit d16af5105d307ebb88190176d7f89971d0f40351)

16 years agoUse pidl for _netr_ServerReqChallenge.
Günther Deschner [Wed, 13 Feb 2008 13:08:59 +0000 (14:08 +0100)]
Use pidl for _netr_ServerReqChallenge.

Guenther
(This used to be commit ef424319410b7a29ecdfefca53b7e9704beb6139)

16 years agoPure cosmetics: remove trailing whitespace in netlogon server.
Günther Deschner [Wed, 13 Feb 2008 11:24:56 +0000 (12:24 +0100)]
Pure cosmetics: remove trailing whitespace in netlogon server.

Guenther
(This used to be commit 983ac0a6762b52945a784ccbc371f4df99a0a52b)

16 years agoRemove const on policy handle in net rpc.
Günther Deschner [Wed, 13 Feb 2008 13:10:10 +0000 (14:10 +0100)]
Remove const on policy handle in net rpc.

Volker, are you ok with that?

Guenther
(This used to be commit f1c7fa19e43d720f0d42e6d1999130462d5979da)

16 years agoOnly use the needed objects for libnetapi.a
Michael Adam [Wed, 13 Feb 2008 13:10:06 +0000 (14:10 +0100)]
Only use the needed objects for libnetapi.a

Michael
(This used to be commit 4ffc73d90883491b9d4dc6d0249e1d859939670b)

16 years agoAdd -L./bin to LDFLAGS when building shared libs.
Michael Adam [Wed, 13 Feb 2008 12:48:00 +0000 (13:48 +0100)]
Add -L./bin to LDFLAGS when building shared libs.

Formerly this was only needed for libwbclient, but now that we start
using more shared libs internally, this is needed more globally
to support linking internal libs dynamically on systemy without winbindd.

Michael
(This used to be commit ec793572187228deda7210dab02882e4e09f1972)

16 years agoauth_winbind: use wbcAuthenticateUserEx()
Stefan Metzmacher [Mon, 4 Feb 2008 17:18:36 +0000 (18:18 +0100)]
auth_winbind: use wbcAuthenticateUserEx()

smbd doesn't need $(WBCOMMON_OBJ) anymore,
it works with any libwbclient.so now
and may talk to an older winbindd.

metze
(This used to be commit e3435930a307cff3066fe2047ed8c5c48911f001)

16 years agowbinfo: use wbcAuthenticateUserEx()
Stefan Metzmacher [Tue, 29 Jan 2008 15:21:14 +0000 (16:21 +0100)]
wbinfo: use wbcAuthenticateUserEx()

metze
(This used to be commit 923cb37837d508d5355038e95ed1ac09c5869a89)

16 years agolibwbclient: add wbcAuthenticateUserEx() function
Stefan Metzmacher [Thu, 24 Jan 2008 13:05:59 +0000 (14:05 +0100)]
libwbclient: add wbcAuthenticateUserEx() function

This function will be used by auth_winbind.c.

metze
(This used to be commit 72af96a320a97ce1a730d6e33d01950123d6a97c)

16 years agowinbindd: add rids and other_sids arrays in WBFLAG_PAM_INFO3_TEXT mode
Stefan Metzmacher [Fri, 18 Jan 2008 07:43:45 +0000 (08:43 +0100)]
winbindd: add rids and other_sids arrays in WBFLAG_PAM_INFO3_TEXT mode

metze
(This used to be commit c5e6dd1ca9611e2830ff773875998c01bf779a64)

16 years agoOnly export talloc related symbols in libtalloc.so.
Michael Adam [Wed, 13 Feb 2008 11:41:00 +0000 (12:41 +0100)]
Only export talloc related symbols in libtalloc.so.

Michael
(This used to be commit 60a4c8411b71f9f17956b51fd882f71273f5b0ca)

16 years agoUse pidl for _netr_LogonControl.
Günther Deschner [Wed, 13 Feb 2008 10:56:24 +0000 (11:56 +0100)]
Use pidl for _netr_LogonControl.

Guenther
(This used to be commit ec4947525e0881bfcde661f906ccd1f66fe54f5a)

16 years agoUse rpccli_netr_LogonControl() in rpcclient.
Günther Deschner [Wed, 30 Jan 2008 22:43:57 +0000 (23:43 +0100)]
Use rpccli_netr_LogonControl() in rpcclient.

Guenther
(This used to be commit d54456f3c42f123af5516c6f75c87b279fdc775f)

16 years agoRemove redundant (and unused) set of samr opcodes.
Günther Deschner [Wed, 13 Feb 2008 10:43:45 +0000 (11:43 +0100)]
Remove redundant (and unused) set of samr opcodes.

Guenther
(This used to be commit 46d5989562bb771b3dcb2fdd197d2f90c3ff8653)

16 years agoAdd libreplace objects to libtalloc.so.
Michael Adam [Wed, 13 Feb 2008 10:54:41 +0000 (11:54 +0100)]
Add libreplace objects to libtalloc.so.

Michael
(This used to be commit a84bf0786f269b8514e0a08e32fa429cefabe1d3)

16 years agoGoodbye parse_samr.c, rest in peace - but never come back!
Günther Deschner [Wed, 13 Feb 2008 10:36:17 +0000 (11:36 +0100)]
Goodbye parse_samr.c, rest in peace - but never come back!

Guenther
(This used to be commit 8a8c5826e7a55742169e60d2145a7fe4d5786a23)

16 years agoRemove unused marshalling for SAMR_ENUM_DOM_ALIASES.
Günther Deschner [Wed, 13 Feb 2008 10:17:40 +0000 (11:17 +0100)]
Remove unused marshalling for SAMR_ENUM_DOM_ALIASES.

Guenther
(This used to be commit 7e1f33436adb0625662969f52b501c57d4a4bc87)

16 years agoConvert last caller (in winbindd) to rpccli_samr_EnumDomainAliases.
Günther Deschner [Wed, 13 Feb 2008 10:15:40 +0000 (11:15 +0100)]
Convert last caller (in winbindd) to rpccli_samr_EnumDomainAliases.

Guenther
(This used to be commit 33a97b447c1875bf1cd5a703871a84a7fb359fec)

16 years agoRemove unused marshalling for SAMR_ENUM_DOM_GROUPS.
Günther Deschner [Wed, 13 Feb 2008 10:11:34 +0000 (11:11 +0100)]
Remove unused marshalling for SAMR_ENUM_DOM_GROUPS.

Guenther
(This used to be commit 6f269ec8c0ad18bd0c04d5fc459fa80ab72dba63)

16 years agoConvert last caller (in winbindd) to rpccli_samr_EnumDomainGroups.
Günther Deschner [Wed, 13 Feb 2008 10:08:49 +0000 (11:08 +0100)]
Convert last caller (in winbindd) to rpccli_samr_EnumDomainGroups.

Guenther
(This used to be commit 8890bc481f60cd42d96b240b2ed8e34bc3d81f13)

16 years agoChange hand written configure help strings to use AS_HELP_STRING().
Michael Adam [Wed, 13 Feb 2008 10:03:18 +0000 (11:03 +0100)]
Change hand written configure help strings to use AS_HELP_STRING().

Michael
(This used to be commit d950174bcb50ecb70dfef71d4201feec4985c08b)

16 years agoUse AS_HELP_STRING instead of (deprecated) AC_HELP_STRING.
Michael Adam [Wed, 13 Feb 2008 08:34:40 +0000 (09:34 +0100)]
Use AS_HELP_STRING instead of (deprecated) AC_HELP_STRING.

Existence is guaranteed by libreplace.

Michael
(This used to be commit 90bdd0fa2ee09bab8c661c241f5d5fe8fc57016b)

16 years agoRemove unused marshalling for SAMR_LOOKUP_RIDS.
Günther Deschner [Wed, 13 Feb 2008 09:54:56 +0000 (10:54 +0100)]
Remove unused marshalling for SAMR_LOOKUP_RIDS.

Guenther
(This used to be commit c6db963dacb04a9b2ee12705d8cfb29b843c0ea2)

16 years agoConvert last caller (in winbindd) to rpccli_samr_LookupRids.
Günther Deschner [Wed, 13 Feb 2008 09:49:55 +0000 (10:49 +0100)]
Convert last caller (in winbindd) to rpccli_samr_LookupRids.

Guenther
(This used to be commit 34c2566f026dbde4da10e2fc10c6960260eb6044)

16 years agoRemove unused init_sam_entry routine.
Günther Deschner [Wed, 13 Feb 2008 09:54:16 +0000 (10:54 +0100)]
Remove unused init_sam_entry routine.

Guenther
(This used to be commit c19847a02486414117425930367dcd210e911715)

16 years agoFix build: Add missing prerequisites for libwbclient.so
Michael Adam [Wed, 13 Feb 2008 09:52:16 +0000 (10:52 +0100)]
Fix build: Add missing prerequisites for libwbclient.so

Michael
(This used to be commit fa3a78b815e0bcbb4ac08b6277f798593c0458e9)

16 years agolibwbclient: include wb_common.o in libwbclient.a
Stefan Metzmacher [Mon, 11 Feb 2008 17:36:45 +0000 (18:36 +0100)]
libwbclient: include wb_common.o in libwbclient.a

And only link in wb_common.o directly into binaries
which really need it.

Note: It's important that $(WBCOMMON_OBJ) comes before
      @LIBWBCLIENT_STATIC@ overwise we may try to
      link in wb_common.o twice.

metze
(This used to be commit 135d9dd6d830ce6ae5c7917468763aa9a148d76a)

16 years agonsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros
Stefan Metzmacher [Mon, 11 Feb 2008 17:35:58 +0000 (18:35 +0100)]
nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macros

metze
(This used to be commit 5f623f54a919cc687d0ff16c16038c05a501008d)

16 years agoFix install: Add creation of include dir to installlibtalloc target.
Michael Adam [Wed, 13 Feb 2008 09:36:43 +0000 (10:36 +0100)]
Fix install: Add creation of include dir to installlibtalloc target.

Michael
(This used to be commit 26d012dd3de8ec146eb22656f1ed8eef110e4be6)

16 years agoRemove unused marshalling for NET_TRUST_DOM_LIST.
Günther Deschner [Wed, 13 Feb 2008 09:27:15 +0000 (10:27 +0100)]
Remove unused marshalling for NET_TRUST_DOM_LIST.

Guenther
(This used to be commit 9312755955eac9897c8117773f8cd7d1652b2bca)

16 years agoUse pidl for _netr_NetrEnumerateTrustedDomains().
Günther Deschner [Wed, 13 Feb 2008 09:23:45 +0000 (10:23 +0100)]
Use pidl for _netr_NetrEnumerateTrustedDomains().

This call is completely broken. For now, just make sure that we return the exact same
data as before the conversion to pidl.

Guenther
(This used to be commit 243bdaeea7900ab6a65edfda877e8c225ec7b213)

16 years agoMerge data_blob_talloc_zero() from samba4.
Günther Deschner [Wed, 13 Feb 2008 09:19:06 +0000 (10:19 +0100)]
Merge data_blob_talloc_zero() from samba4.

Guenther
(This used to be commit 9fca3ca37eaf10c24f852e854dd28b7155c3e536)

16 years agoAdd linking -ltalloc to libwbclient.so. Noted by Metze.
Michael Adam [Wed, 13 Feb 2008 09:11:43 +0000 (10:11 +0100)]
Add linking -ltalloc to libwbclient.so. Noted by Metze.

Michael
(This used to be commit e904a3dd532d7510ac2393e598b3edcf8e1349e8)

16 years agoAdd forgotten file exports/libtalloc.syms ... Thanks Günther!
Michael Adam [Wed, 13 Feb 2008 08:48:42 +0000 (09:48 +0100)]
Add forgotten file exports/libtalloc.syms ...  Thanks Günther!

Michael
(This used to be commit b1deb11a19f09325449fd30fb364173f9ba9d681)

16 years agoSome minor, cosmetic cleanup in srv_samr_util.c.
Günther Deschner [Tue, 12 Feb 2008 22:30:44 +0000 (23:30 +0100)]
Some minor, cosmetic cleanup in srv_samr_util.c.

Guenther
(This used to be commit cd5bf3449adee7537ae6ca4e3b398e99d34555fd)

16 years agoFix some comment typos.
Michael Adam [Tue, 12 Feb 2008 14:28:51 +0000 (15:28 +0100)]
Fix some comment typos.

Michael
(This used to be commit bc4482cde1571bb1cb2d55106fc8ee22d26efa23)

16 years agoRemove some unneded variables: we always build and install some talloc libs.
Michael Adam [Tue, 12 Feb 2008 14:26:00 +0000 (15:26 +0100)]
Remove some unneded variables: we always build and install some talloc libs.

LIBTALLOC, INSTALL_LIBTALLOC, UNINSTALL_LIBTALLOC

Michael
(This used to be commit 97a60565ad6657af8e4a3b8b38b69b48597e3eec)

16 years agoPut talloc lib targets into variables and uses these.
Michael Adam [Tue, 12 Feb 2008 14:18:56 +0000 (15:18 +0100)]
Put talloc lib targets into variables and uses these.

LIBTALLOC_STATIC_TARGET and LIBTALLOC_SHARED_TARGET.

Michael
(This used to be commit d1bec3882908086747e1176a275617700cada097)

16 years agoSimplify code by moving duplicate assignment to common place.
Michael Adam [Tue, 12 Feb 2008 13:43:20 +0000 (14:43 +0100)]
Simplify code by moving duplicate assignment to common place.

Michael
(This used to be commit dddfdee90ee30d225e08d7f1685409f62fabf7c1)

16 years agoAdd support for linking talloc library statically or dynamically into samba.
Michael Adam [Fri, 8 Feb 2008 13:41:30 +0000 (14:41 +0100)]
Add support for linking talloc library statically or dynamically into samba.

This also establishes a general configure mechanism to control static vs
dynamic linking of internal subsystems built as libraries:
This first simple approach is as follows.

* It applies only to "subsystems" that we build as libraries and for
  that linking samba against the libraries (as opposed to linking in
  the plain object files) has been configured in Makefile.in.

* If we do build the shared library, then we link dynamically by default.

* We only link statically if we don't build shared or if the library
  appears in the new --with-static-libs configure option
  (comma-separated list).

Example (currently only one):
  --with-static-libs=talloc makes use of libtalloc.a instead
  of linking the dynamic variant with -ltalloc.

A possilble way to setup linking against libraries in Makefile.in is this:
For a subsystem, "mylib" say, we build bin/libmylib.a and bin/libmylib.so.
The subsystem usually has a MYLIB_OBJ definition in Makefile.in.  Define
LIBMYLIB_STATIC=bin/libmylib.a and and LIBMYLIB_LIBS=-lmylib in configure.in
as controlled by presence of "mylib" in the list given to --with-static-libs
and change uses of $(MYLIB_OBJ) to @LIBMYLIB_STATIC@ in Makefile.in and
add @LIBMYLIB_LIBS@ to the link targets as needed.

In the example of talloc, which is needed everywhere, I have simply
added @LIBTALLOC_LIBS@ to the definition of "LIBS" in Makefile.in.
For other subsystems, one will have to be more careful.

Michael
(This used to be commit 71b990d9d687b517dec3d4eff67b6a3fe417a12a)

16 years agoUse data from lib/talloc/libtalloc.m4 instead of hard coded data.
Michael Adam [Fri, 8 Feb 2008 16:16:51 +0000 (17:16 +0100)]
Use data from lib/talloc/libtalloc.m4 instead of hard coded data.

Michael
(This used to be commit 880238c65c13c8b280e2f34431aa331a16af4a7b)

16 years agoMove the AC_LIBREPLACE_CC_CHECKS up before building SAMBA_CPPFLAGS.
Michael Adam [Mon, 11 Feb 2008 15:09:19 +0000 (16:09 +0100)]
Move the AC_LIBREPLACE_CC_CHECKS up before building SAMBA_CPPFLAGS.

Michael
(This used to be commit ed2337e3a24e800e0a445a9ffc7d735d49abc6d7)

16 years agoAdd support for building libtalloc.a and libtalloc.so.
Michael Adam [Fri, 8 Feb 2008 00:00:03 +0000 (01:00 +0100)]
Add support for building libtalloc.a and libtalloc.so.

Michael
(This used to be commit cb7f42bcbc6cbe84823402cd3c7bb9327669ed9b)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Wed, 13 Feb 2008 01:56:02 +0000 (17:56 -0800)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 5116c9d9f4bd1a523ac7a2a31b3b1552388f040f)

16 years agoPrevent "parameters" being used without initialization.
Jeremy Allison [Wed, 13 Feb 2008 01:21:17 +0000 (17:21 -0800)]
Prevent "parameters" being used without initialization.
Jeremy.
(This used to be commit f0195e937d5d42a8d92e9d861199538fd44a3c9b)

16 years agoFix copy & paste typo in function prototype.
Michael Adam [Wed, 13 Feb 2008 00:39:49 +0000 (01:39 +0100)]
Fix copy & paste typo in function prototype.

Michael
(This used to be commit 4c2f0e027d2d0c5c5845550b72e6568c503f6cf9)

16 years agoRaise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.
Michael Adam [Tue, 12 Feb 2008 21:52:58 +0000 (22:52 +0100)]
Raise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.

Michael
(cherry picked from commit 38855a9f145b54d05f4a508562fc1a6595e0d895)
(This used to be commit 303a3eb128b410be0f4ebb936cd3b983e639c07f)

16 years agoMake sure talloc.so is build before installing.
Jelmer Vernooij [Tue, 12 Feb 2008 11:46:33 +0000 (12:46 +0100)]
Make sure talloc.so is build before installing.
(cherry picked from commit 51769f5cfc0f3a9f85ea533598a1f769e108d075)
(This used to be commit da98f4d223997709b42b4f05ab94d564261f5aee)

16 years agoFix out of tree builds.
Jelmer Vernooij [Mon, 11 Feb 2008 22:51:59 +0000 (23:51 +0100)]
Fix out of tree builds.

(cherry picked from parts of commit 35c8ebdca2612b52cd3eb2aafd35041d17173722)

Michael
(This used to be commit a780c0594aeea3705d601a327aa04d9182060cbd)

16 years agoSplit actual content out of talloc Makefile into talloc.mk.
Jelmer Vernooij [Mon, 11 Feb 2008 21:52:42 +0000 (22:52 +0100)]
Split actual content out of talloc Makefile into talloc.mk.
(cherry picked from commit 2b8939975267fc4774bccd2a35ea9a35129d0a2b)
(This used to be commit 7710d3dea350a85348d46747e4f4cde2b20741de)

16 years agoSplit rules.mk out of Makefile.
Jelmer Vernooij [Mon, 11 Feb 2008 21:05:52 +0000 (22:05 +0100)]
Split rules.mk out of Makefile.
(cherry picked from commit 75ffc2c50d70e6f4108c3e6843c8d2bb212f6d9e)
(This used to be commit 6f8165e4b064f37335e2b0b185ae6433c06a061a)

16 years agoMake versions in lib/talloc/config.mk and lib/talloc/configure.ac the same.
Michael Adam [Mon, 11 Feb 2008 11:50:03 +0000 (12:50 +0100)]
Make versions in lib/talloc/config.mk and lib/talloc/configure.ac the same.

Not sure if we can produce one from the other, so I manually made
them equal for now.

Michael
(cherry picked from commit 1c14c457bea75fb3055712547cca501e8ef3fc20)
(This used to be commit 0d9ae82f51302c9755b6e50f1df88eb2a079f12a)

16 years agobuild: Remove support for DESCRIPTION setting that is now unused.
Jelmer Vernooij [Tue, 22 Jan 2008 17:49:51 +0000 (18:49 +0100)]
build: Remove support for DESCRIPTION setting that is now unused.

(cherry picked from parts of commit 91d7ba5202e6c375456a42c2c6861f63c7fcfc20)

Michael
(This used to be commit 4b03f88c1ed8c1a2c1e5e7d461ca2d64a8d6a054)

16 years agotalloc/tdb: Use manually written pc file.
Jelmer Vernooij [Tue, 22 Jan 2008 17:24:00 +0000 (18:24 +0100)]
talloc/tdb: Use manually written pc file.

(cherry picked from parts of c8947fda23eb874a7694bdee1b4de605744c2769)

Michael
(This used to be commit 77664bc482071798571096a299e7d8b190f53797)

16 years agor26570: - Trim size of the swig-generated Python bindings by removing a bunch of...
Jelmer Vernooij [Mon, 24 Dec 2007 01:19:41 +0000 (19:19 -0600)]
r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.

- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.

(cherry picked from talloc part of commit c550c03372cb260b78f6a6c132e70571bc4cb852)

Michael
(This used to be commit a146145c28cc355fed47b8a1f322311ffc1a51ab)

16 years agor26454: Add simple SWIG macro for wrapping talloced types.
Jelmer Vernooij [Fri, 14 Dec 2007 13:28:07 +0000 (14:28 +0100)]
r26454: Add simple SWIG macro for wrapping talloced types.

(cherry picked from talloc parts of commit 760fcc8bfa2a7cd7641465cb3bae889e9e0fbc75)

Michael
(This used to be commit f4c59316b9251477556dd22cdd246607f4dfa845)

16 years agor26292: Make sure swig directory exists.
Jelmer Vernooij [Tue, 4 Dec 2007 17:24:16 +0000 (18:24 +0100)]
r26292: Make sure swig directory exists.
(cherry picked from commit 7962d221fcb877c9fd3bbc890827338de54ca94a)
(This used to be commit d6198f2bd7d13b5f30bcc46e12026a00f52d9adc)

16 years agor26280: Fix installation if swig is not available.
Jelmer Vernooij [Tue, 4 Dec 2007 01:04:25 +0000 (02:04 +0100)]
r26280: Fix installation if swig is not available.
(cherry picked from commit 3320bd401f7b669bd62f83bf16a1c16ad0543a5c)
(This used to be commit f1267f74a91374692c3564d783c527f94035b323)

16 years agor26276: Install SWIG files if swig is present.
Jelmer Vernooij [Tue, 4 Dec 2007 00:37:28 +0000 (01:37 +0100)]
r26276: Install SWIG files if swig is present.

(cherry picked from talloc parts of commit dfd5b456f932268e2b1a82e2775037d356b9483e)

Michael
(This used to be commit 8276ec7596b41980aea3f93949edd224fe842fa5)

16 years agor26197: Add bindings for libsecurity.
Jelmer Vernooij [Thu, 29 Nov 2007 13:49:47 +0000 (14:49 +0100)]
r26197: Add bindings for libsecurity.

(cherry picked from parts of commit 8625cd403ba3a7d2b1b1fccfeb5efd7e21de0135)

Michael
(This used to be commit 22d48224d3235403b916c98c92915165fe7ef330)

16 years agor26187: Fix module name, indentation.
Jelmer Vernooij [Wed, 28 Nov 2007 21:41:34 +0000 (22:41 +0100)]
r26187: Fix module name, indentation.

(cherry picked from parts of commit ef790ebf3a712dbbb85d6af65c804199c2c084fc)

Michael
(This used to be commit 8e35bbeac286c3b8d64d69ebe9bb4a8f5405a9c0)

16 years agor26072: Import trivial SWIG wrapper for talloc.
Jelmer Vernooij [Wed, 21 Nov 2007 11:31:23 +0000 (12:31 +0100)]
r26072: Import trivial SWIG wrapper for talloc.
(cherry picked from commit 02d259c2c45c03dbfcd16173df93d7ba96ed1419)
(This used to be commit 5938a732381abed9f5da1db505626b354fe7293e)

16 years agor25987: libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS
Stefan Metzmacher [Fri, 16 Nov 2007 09:10:58 +0000 (10:10 +0100)]
r25987: libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS

metze

(cherry picked from parts of commit c179807165b84dd832ab64f794034960668e5957.
The changes to lib/replaces have already been merged.)

Michael
(This used to be commit 6c092918725019274cd26218168c5b551ab3c7d2)

16 years agor25973: talloc: fix usage of SONAMEFLAG
Stefan Metzmacher [Thu, 15 Nov 2007 14:41:03 +0000 (15:41 +0100)]
r25973: talloc: fix usage of SONAMEFLAG

metze
(cherry picked from commit 7fecb8f3cd9f5f69dce7b9e566011e5de1e01a4a)
(This used to be commit ce3625a3866376d78edc23b137f41be72f07e5eb)

16 years agor25953: AIX make doesn't support $^.
Jelmer Vernooij [Wed, 14 Nov 2007 09:51:32 +0000 (10:51 +0100)]
r25953: AIX make doesn't support $^.

(cherry picked from parts of commit 91133d27110ee6447dbc64f1c8d52cb90ca1a86c)

Michael
(This used to be commit f231d03e53dcf291e0cb8870e531989ab855eae0)

16 years agor25944: Fix handling of sonameflag on AIX, which doesn't have anything like that.
Jelmer Vernooij [Wed, 14 Nov 2007 00:01:31 +0000 (01:01 +0100)]
r25944: Fix handling of sonameflag on AIX, which doesn't have anything like that.

(cherry picked from parts of commit 228dd6830eb9c91287bb3e0233d8b3a404ff3676)

Michael
(This used to be commit 7a7dcd9b1265b8f031c9a5e9c4cfa89216827a28)

16 years agor25884: Specify shldflags first, as required by some compilers.
Jelmer Vernooij [Tue, 6 Nov 2007 18:53:33 +0000 (19:53 +0100)]
r25884: Specify shldflags first, as required by some compilers.
(cherry picked from commit 40a8cd0d2fd4d10110243ee75ff92bef73bb06b9)
(This used to be commit 42b56f77ff88f8a9dccd7a8ac7df789d0223c945)