samba.git
15 years agonet: Split out "net user"
Kai Blin [Tue, 13 May 2008 10:51:09 +0000 (12:51 +0200)]
net: Split out "net user"

15 years agonet: Move "net join" handling into a separate file.
Kai Blin [Tue, 13 May 2008 09:11:35 +0000 (11:11 +0200)]
net: Move "net join" handling into a separate file.

15 years agonet: Split out common help functions.
Kai Blin [Mon, 12 May 2008 12:38:21 +0000 (14:38 +0200)]
net: Split out common help functions.

15 years agonet: more whitespace cleanup
Kai Blin [Mon, 12 May 2008 09:56:18 +0000 (11:56 +0200)]
net: more whitespace cleanup

15 years agonet: Use true/false instead of True/False.
Kai Blin [Mon, 12 May 2008 09:53:23 +0000 (11:53 +0200)]
net: Use true/false instead of True/False.

15 years agoman pages: Remove man page for 'mangled map'.
Karolin Seeger [Fri, 16 May 2008 07:27:20 +0000 (09:27 +0200)]
man pages: Remove man page for 'mangled map'.

'mangled map' has been removed with dee8beba7a92b8a3f68bbcc59fd0a827f68c7736.

Karolin
(cherry picked from commit d9b4e500675a378daba50d12cd638a245aa78b72)

15 years agosesssetup.c: Add debug message.
Karolin Seeger [Tue, 20 May 2008 09:09:06 +0000 (11:09 +0200)]
sesssetup.c: Add debug message.

Log when we kill other smbd sessions like when we hit the VC == 0 case.
This one fixes BUG #5476.
Initial patch from Björn Jacke <bj@sernet.de>.

Karolin

15 years agoman pages: Add documentation for new cluster parameters.
Karolin Seeger [Tue, 20 May 2008 09:03:33 +0000 (11:03 +0200)]
man pages: Add documentation for new cluster parameters.

Karolin

15 years agoRemove conn_find_byname now it's no longer used in
Jeremy Allison [Tue, 20 May 2008 00:19:18 +0000 (17:19 -0700)]
Remove conn_find_byname now it's no longer used in
the msdfs.c code.
Jeremy

15 years agoRestructuring of code to fix #5460. Remove search
Jeremy Allison [Mon, 19 May 2008 20:11:00 +0000 (13:11 -0700)]
Restructuring of code to fix #5460. Remove search
by name code from conn, we were already doing the
same check in the dfs_redirect() function, so move
it into parse_dfs_path() instead.
Jeremy.

15 years agoConvert messages_local.c to use "struct tdb_wrap"
Volker Lendecke [Sun, 18 May 2008 12:30:33 +0000 (14:30 +0200)]
Convert messages_local.c to use "struct tdb_wrap"

This works around a problem with smbcontrol opening messaging.tdb twice. Very
likely this is not the right fix. Michael, please check.

Volker

15 years agoDon't block smbcontrol online/offline if !"winbind offline logons"
Volker Lendecke [Mon, 19 May 2008 02:24:21 +0000 (04:24 +0200)]
Don't block smbcontrol online/offline if !"winbind offline logons"

There's no point to block these, winbind will ignore them anyway.

Jerry, Jeremy, we definitely need a chance to trigger a reconnection attempt
after a DC has been rebooted. Right now winbind's reaction to a single rebooted
DC is to declare it offline. It will not try before a "winbind cache timeout"
timeout. If the admin sets this to an hour or longer for performance reasons,
we're screwed. Reboot your DC, no logon for an hour.

Volker

15 years agoIf no node number is given, default to the current node in smbcontrol
Volker Lendecke [Mon, 19 May 2008 02:20:56 +0000 (04:20 +0200)]
If no node number is given, default to the current node in smbcontrol

15 years agoFix some comments to match get_kdc_ip_string()'s behaviour
root [Mon, 19 May 2008 00:48:09 +0000 (02:48 +0200)]
Fix some comments to match get_kdc_ip_string()'s behaviour

15 years agobuild: remove the proto_exists target - it is not needed anymore.
Michael Adam [Sun, 18 May 2008 23:22:14 +0000 (01:22 +0200)]
build: remove the proto_exists target - it is not needed anymore.

Michael

15 years agobuild: remove the "delheaders" target.
Michael Adam [Sun, 18 May 2008 22:54:45 +0000 (00:54 +0200)]
build: remove the "delheaders" target.

Michael

15 years agobuild: remove "headers" and "proto" make targets.
Michael Adam [Sun, 18 May 2008 22:51:45 +0000 (00:51 +0200)]
build: remove "headers" and "proto" make targets.

Replace "proto" target by a message.

Michael

15 years agobuild: remove mkproto.sh and mkproto.awk
Michael Adam [Sun, 18 May 2008 21:39:15 +0000 (23:39 +0200)]
build: remove mkproto.sh and mkproto.awk

Michael

15 years agobuild: remove reference to mkproto.sh from Makefile
Michael Adam [Sun, 18 May 2008 21:37:10 +0000 (23:37 +0200)]
build: remove reference to mkproto.sh from Makefile

No generated prototypes anymore...

Michael

15 years agolibnet: freeze libnet_proto.h from "make proto"
Michael Adam [Sun, 18 May 2008 21:35:42 +0000 (23:35 +0200)]
libnet: freeze libnet_proto.h from "make proto"

Michael

15 years agobuild: freeze passwd_proto.h from "make proto"
Michael Adam [Sun, 18 May 2008 21:33:20 +0000 (23:33 +0200)]
build: freeze passwd_proto.h from "make proto"

Michael

15 years agonet: freeze net_proto.h from "make proto"
Michael Adam [Sun, 18 May 2008 21:31:42 +0000 (23:31 +0200)]
net: freeze net_proto.h from "make proto"

Michael

15 years agontlm_auth: freeze ntlm_auth_proto.h from "make proto"
Michael Adam [Sun, 18 May 2008 21:29:01 +0000 (23:29 +0200)]
ntlm_auth: freeze ntlm_auth_proto.h from "make proto"

Michael

15 years agosmbclient: freeze client_proto.h from "make proto"
Michael Adam [Sun, 18 May 2008 21:26:51 +0000 (23:26 +0200)]
smbclient: freeze client_proto.h from "make proto"

Michael

15 years agoswat: freeze swat_proto.h from "make proto"
Michael Adam [Sun, 18 May 2008 21:16:38 +0000 (23:16 +0200)]
swat: freeze swat_proto.h from "make proto"

Michael

15 years agowinbindd: freeze winbindd_proto.h
Michael Adam [Sun, 18 May 2008 21:09:34 +0000 (23:09 +0200)]
winbindd: freeze winbindd_proto.h

Michael

15 years agobuild: freeze proto.h
Michael Adam [Sun, 18 May 2008 20:58:07 +0000 (22:58 +0200)]
build: freeze proto.h

Michael

15 years agoconfigure: Fix comment to match the current iconv check.
Kai Blin [Sun, 18 May 2008 00:26:32 +0000 (02:26 +0200)]
configure: Fix comment to match the current iconv check.

15 years agoFactor out generation of an info3 struct from a serversupplied_info
Volker Lendecke [Sat, 17 May 2008 20:44:35 +0000 (22:44 +0200)]
Factor out generation of an info3 struct from a serversupplied_info

15 years agoconfigure: make use of LIBREPLACE_NETWORK_LIBS instead of redoing the tests
Stefan Metzmacher [Fri, 16 May 2008 10:50:16 +0000 (12:50 +0200)]
configure: make use of LIBREPLACE_NETWORK_LIBS instead of redoing the tests

metze

15 years agoconfigure: remove some header checks which are already done by AC_LIBREPLACE_NETWORK_...
Stefan Metzmacher [Fri, 16 May 2008 10:48:57 +0000 (12:48 +0200)]
configure: remove some header checks which are already done by AC_LIBREPLACE_NETWORK_CHECKS

metze

15 years agolib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS
Stefan Metzmacher [Fri, 16 May 2008 10:46:10 +0000 (12:46 +0200)]
lib/replace: move sys/sockio.h and sys/un.h checks into AC_LIBREPLACE_NETWORK_CHECKS

metze
(cherry picked from commit 7f26a5425e706a97cc07c5139b3fea4fde9e4020)

15 years agoconfigure: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET...
Stefan Metzmacher [Fri, 16 May 2008 10:33:11 +0000 (12:33 +0200)]
configure: remove unused configure checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET and rely on libreplace

metze

15 years agolib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET
Stefan Metzmacher [Fri, 16 May 2008 10:29:21 +0000 (12:29 +0200)]
lib/replace: add checks for HAVE_SOCK_SIN_LEN and HAVE_UNIXSOCKET

Moved from the samba specific locations

metze
(cherry picked from commit e674128ee2f11596f358ed46104c9d25eb2f754f)

15 years agoconfigure: remove unused configure check for HAVE_WORKING_AF_LOCAL
Stefan Metzmacher [Fri, 16 May 2008 10:16:05 +0000 (12:16 +0200)]
configure: remove unused configure check for HAVE_WORKING_AF_LOCAL

metze

15 years agoSimplify fake_file logic
Volker Lendecke [Sat, 29 Mar 2008 17:19:31 +0000 (18:19 +0100)]
Simplify fake_file logic

15 years agoFix Bug #5461 and implement a very basic _samr_GetDisplayEnumerationIndex().
Günther Deschner [Fri, 16 May 2008 11:24:15 +0000 (13:24 +0200)]
Fix Bug #5461 and implement a very basic _samr_GetDisplayEnumerationIndex().

Citrix PM cannot use a Samba DC when having more then 900 groups as citrix
insists on calling _samr_GetDisplayEnumerationIndex() after receiving the first
900 groups via _samr_QueryDisplayInfo() to get the continuation index.

Guenther

15 years agolibnetjoin: for informational reasons, report forest_name.
Günther Deschner [Fri, 16 May 2008 10:16:04 +0000 (12:16 +0200)]
libnetjoin: for informational reasons, report forest_name.

Guenther

15 years agonetdomjoin-gui: before prompting for creds (for receiving joinable ous), find a dc.
Günther Deschner [Fri, 16 May 2008 10:11:43 +0000 (12:11 +0200)]
netdomjoin-gui: before prompting for creds (for receiving joinable ous), find a dc.

Guenther

15 years agonet: use the netapi_ctx from the net_context struct.
Günther Deschner [Fri, 16 May 2008 09:52:48 +0000 (11:52 +0200)]
net: use the netapi_ctx from the net_context struct.

Guenther

15 years agodsgetdcname: store client sitename for mailslot and cldap replies.
Günther Deschner [Thu, 15 May 2008 15:47:07 +0000 (17:47 +0200)]
dsgetdcname: store client sitename for mailslot and cldap replies.

Guenther

15 years agolibreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6
Stefan Metzmacher [Thu, 8 May 2008 09:01:09 +0000 (11:01 +0200)]
libreplace: try to fix the build on HP-UX which has if_nametoindex() in -lipv6

metze
(cherry picked from commit da2179ee5d5b6094ab63a9d9d6a8d59893937087)

15 years agolibreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS...
Stefan Metzmacher [Thu, 8 May 2008 08:39:41 +0000 (10:39 +0200)]
libreplace: make sure system/network.h is only used when AC_LIBREPLACE_NETWORK_CHECKS was used

metze
(cherry picked from commit 3fddd36e119f73a5021370450f9687ef9d252bab)

15 years agolibreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS vars
Stefan Metzmacher [Thu, 8 May 2008 08:32:19 +0000 (10:32 +0200)]
libreplace: export LIBREPLACE_NETWORK_OBJS and LIBREPLACE_NETWORK_LIBS vars

metze
(cherry picked from commit aa7ef1af746319a3d771decd0ec03dabe8b8ad28)

15 years agolibreplace: include inet_ntoa.o when the system one is broken
Stefan Metzmacher [Thu, 8 May 2008 08:27:23 +0000 (10:27 +0200)]
libreplace: include inet_ntoa.o when the system one is broken

metze
(cherry picked from commit 67845d3471711d24069636d0d4032f9d53748334)

15 years agolibreplace: merge getifaddrs.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:08:42 +0000 (10:08 +0200)]
libreplace: merge getifaddrs.m4 into libreplace_network.m4

metze
(cherry picked from commit 0234d397fefee8e1d0dcd3402f748c2251021c90)

15 years agolibreplace: merge getaddrinfo.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:06:39 +0000 (10:06 +0200)]
libreplace: merge getaddrinfo.m4 into libreplace_network.m4

metze
(cherry picked from commit 64591d064dc3da6074f0f7539911a6e433d9cc43)

15 years agolibreplace: merge socketpair.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:04:51 +0000 (10:04 +0200)]
libreplace: merge socketpair.m4 into libreplace_network.m4

metze
(cherry picked from commit f9f8f93adcc7161ebb18f5a0bf28c73d951a15ad)

15 years agolibreplace: merge inet_pton.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:02:21 +0000 (10:02 +0200)]
libreplace: merge inet_pton.m4 into libreplace_network.m4

metze
(cherry picked from commit 3a70274c908e31453942b442351eab8423c1a53d)

15 years agolibreplace: merge inet_ntop.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 08:00:58 +0000 (10:00 +0200)]
libreplace: merge inet_ntop.m4 into libreplace_network.m4

metze
(cherry picked from commit 223ef6c08efb52251d0a772bb0c481b2803cf0ce)

15 years agolibreplace: merge inet_aton.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 07:59:16 +0000 (09:59 +0200)]
libreplace: merge inet_aton.m4 into libreplace_network.m4

metze
(cherry picked from commit fba00736c870f449c0eee32fe0d7b0d539dca51f)

15 years agolibreplace: merge inet_ntoa.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 07:58:07 +0000 (09:58 +0200)]
libreplace: merge inet_ntoa.m4 into libreplace_network.m4

metze
(cherry picked from commit 82e826253b6d18832931dbb5c1dda009889bf9e0)

15 years agolibreplace: merge socket.m4 into libreplace_network.m4
Stefan Metzmacher [Thu, 8 May 2008 07:56:10 +0000 (09:56 +0200)]
libreplace: merge socket.m4 into libreplace_network.m4

metze
(cherry picked from commit c70eba87dbbac6c2c1e68c343cdd410577c1686f)

15 years agoFix typo.
Jelmer Vernooij [Thu, 8 May 2008 11:43:45 +0000 (13:43 +0200)]
Fix typo.
(cherry picked from commit bd089818a3182698dfe85039c1b2e22d8c2835bb)

15 years agoAdd undefined symbol flag for AIX.
William Jojo [Thu, 8 May 2008 10:41:57 +0000 (12:41 +0200)]
Add undefined symbol flag for AIX.
(cherry picked from commit dabdf24e86f038e3afc67532fa5bf60a37992161)

15 years agolibreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build
Stefan Metzmacher [Wed, 7 May 2008 15:38:41 +0000 (17:38 +0200)]
libreplace: also use AC_LIBREPLACE_NETWORK_CHECKS for the standalone build

metze
(cherry picked from commit 04f4523ed032946b8f0e74ac6f7458010159e3bb)

15 years agolibreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
Stefan Metzmacher [Wed, 7 May 2008 15:20:38 +0000 (17:20 +0200)]
libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba

metze

15 years agolibreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba
Stefan Metzmacher [Wed, 7 May 2008 15:15:36 +0000 (17:15 +0200)]
libreplace: use AC_LIBREPLACE_NETWORK_CHECKS only for samba

metze
(cherry picked from commit 3451b54bf7f5e37a589ec261d28c2a8b6f9788ed)

15 years agolibreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macro
Stefan Metzmacher [Wed, 7 May 2008 14:50:19 +0000 (16:50 +0200)]
libreplace: split out network checks into a AC_LIBREPLACE_NETWORK_CHECKS macro

Note: moving it out of AC_LIBREPLACE_BROKEN_CHECKS will be the next step

metze
(cherry picked from commit 55a904b1d7aeca849d450e371b18afca5b0c6218)

15 years agolibreplace: always provide utime() and utimes()
Stefan Metzmacher [Wed, 7 May 2008 11:10:31 +0000 (13:10 +0200)]
libreplace: always provide utime() and utimes()

I'd like to also provide futimes(), but it seems
that some systems doesn't support a it at kernel level.

If someone knows how to write a portable replacement
for futimes() please tell me...

metze
(cherry picked from commit a9604fe4a323dccb537cf02ea7594437b4995803)

15 years agopackaging: re-introduce Release numbering ".ctdb.<number>"
Michael Adam [Thu, 15 May 2008 23:39:12 +0000 (01:39 +0200)]
packaging: re-introduce Release numbering ".ctdb.<number>"

This got accidentially (?) replaced by .ctdb.test.<date>".

Michael
(cherry picked from commit be62d594bc2b680dfefb4a5050d033b77c08154b)

15 years agopackaging: enable calling RHEL-CTDB/makerpms.sh from other directories
Michael Adam [Thu, 15 May 2008 23:26:47 +0000 (01:26 +0200)]
packaging: enable calling RHEL-CTDB/makerpms.sh from other directories

Michael
(cherry picked from commit 05168aaa8dba85ecc1b74afacdd4d5ddc5825cfa)

15 years agopackaging: fix RHEL-CTDB build by removing duplicate winbind-32bit paragraphs
Michael Adam [Thu, 15 May 2008 23:02:56 +0000 (01:02 +0200)]
packaging: fix RHEL-CTDB build by removing duplicate winbind-32bit paragraphs

Michael
(cherry picked from commit 29d5a68d95f656d5ca61edc4a10ec8b028597bb5)

15 years agopackaging: use git-archive in RHEL-CTDB/makerpms.sh
Michael Adam [Thu, 15 May 2008 22:52:46 +0000 (00:52 +0200)]
packaging: use git-archive in RHEL-CTDB/makerpms.sh

(instead of using tar and make distclean and ...)

Michael
(cherry picked from commit 3ad0f2212720eb5fb33794c033a60f5ea4428c2c)

15 years agopackaging: use docs tarball instead of docs dir in makerpms / samba.spec
Michael Adam [Thu, 15 May 2008 22:37:12 +0000 (00:37 +0200)]
packaging: use docs tarball instead of docs dir in makerpms / samba.spec

Michael
(cherry picked from commit f28a24d5eac2dcf99e1d00c2daf913dd9912eb4a)

15 years agopackaging: add a comment explaining EXTRA_OPTIONS to the makerpms script
Michael Adam [Thu, 15 May 2008 22:19:59 +0000 (00:19 +0200)]
packaging: add a comment explaining EXTRA_OPTIONS to the makerpms script

Michael
(cherry picked from commit 0defc2c60f2ca469d7538c60b7638150c67feb33)

15 years agopackaging: fix a comment typo in makerpms script.
Michael Adam [Thu, 15 May 2008 22:15:31 +0000 (00:15 +0200)]
packaging: fix a comment typo in makerpms script.

Michael
(cherry picked from commit 6044373d69ae8cb0353e7a03e923462a093da5f0)

15 years agomerge build changes from Mathias
Andrew Tridgell [Fri, 9 May 2008 11:35:08 +0000 (21:35 +1000)]
merge build changes from Mathias
(cherry picked from commit 2c08939f3db19eaaf31cb117e3d541d17a36da5e)

15 years agonet rpc registry: fix getvalueraw to really print raw...
Michael Adam [Thu, 15 May 2008 16:06:23 +0000 (18:06 +0200)]
net rpc registry: fix getvalueraw to really print raw...

Michael

15 years agonet rpc registry: add a getvalueraw subcommand.
Michael Adam [Thu, 15 May 2008 14:49:25 +0000 (16:49 +0200)]
net rpc registry: add a getvalueraw subcommand.

Michael

15 years agonet rpc registry: abstract add boolean "raw" to rpc_registry_getvalue_internal()
Michael Adam [Thu, 15 May 2008 14:07:06 +0000 (16:07 +0200)]
net rpc registry: abstract add boolean "raw" to rpc_registry_getvalue_internal()

and wrap it into new rpc_registry_getvalue_full() for the getvalue subcommand.

Michael

15 years agonet rpc registry: fix usage message of getvalue.
Michael Adam [Thu, 15 May 2008 12:38:01 +0000 (14:38 +0200)]
net rpc registry: fix usage message of getvalue.

Michael

15 years agonet registry: add a getvalueraw command to print the value in raw format.
Michael Adam [Thu, 15 May 2008 12:35:45 +0000 (14:35 +0200)]
net registry: add a getvalueraw command to print the value in raw format.

Michael

15 years agonet registry: refactor core of net_registry_getvalue() out
Michael Adam [Thu, 15 May 2008 12:34:21 +0000 (14:34 +0200)]
net registry: refactor core of net_registry_getvalue() out

into net_registry_getvalue_internal(), which takes a bool parameter "raw"
controlling the output format.

Michael

15 years agonet_registry: add raw output of value to print_registry_value().
Michael Adam [Thu, 15 May 2008 10:55:54 +0000 (12:55 +0200)]
net_registry: add raw output of value to print_registry_value().

Michael

15 years agonet: Fix net lookup dsgetdcname, no need to pull site ourselves.
Günther Deschner [Thu, 15 May 2008 15:00:31 +0000 (17:00 +0200)]
net: Fix net lookup dsgetdcname, no need to pull site ourselves.

Guenther

15 years agodsgetdcname: add site support.
Günther Deschner [Thu, 15 May 2008 14:59:46 +0000 (16:59 +0200)]
dsgetdcname: add site support.

Guenther

15 years agodsgetdcname: check for invalid sitename/flag combinations.
Günther Deschner [Thu, 15 May 2008 14:41:18 +0000 (16:41 +0200)]
dsgetdcname: check for invalid sitename/flag combinations.

Guenther

15 years agolibads/cldap: store client sitename also keyed by dns domain name.
Günther Deschner [Thu, 15 May 2008 14:38:32 +0000 (16:38 +0200)]
libads/cldap: store client sitename also keyed by dns domain name.

Guenther

15 years agoFix build warning.
Günther Deschner [Thu, 15 May 2008 07:42:37 +0000 (09:42 +0200)]
Fix build warning.

Guenther

15 years agotestparm: list registry shares with testparm.
Michael Adam [Thu, 15 May 2008 00:41:05 +0000 (02:41 +0200)]
testparm: list registry shares with testparm.

I.e., use lp_load_with_registry_shares() instead of lp_load().

Michael

15 years agoloadparm: add funcion lp_load_with_registry_shares().
Michael Adam [Thu, 15 May 2008 00:39:45 +0000 (02:39 +0200)]
loadparm: add funcion lp_load_with_registry_shares().

This is like lp_load(), except that it will load the
registry shares into the services aarray when registry
shares are activated.

Michael

15 years agoloadparm: add call to do_section() to process_registry_service().
Michael Adam [Thu, 15 May 2008 00:39:02 +0000 (02:39 +0200)]
loadparm: add call to do_section() to process_registry_service().

Michael

15 years agoloadparm: add parameter allow_registry_shares to lp_load_ex().
Michael Adam [Thu, 15 May 2008 00:25:34 +0000 (02:25 +0200)]
loadparm: add parameter allow_registry_shares to lp_load_ex().

This allows for registry shares to be activated, i.e. loaded into
the services array at lp_load() time.

Michael

15 years agoloadparm: add a function process_registry_shares()
Michael Adam [Thu, 15 May 2008 00:15:20 +0000 (02:15 +0200)]
loadparm: add a function process_registry_shares()

This loads the shares defined in registry into the services array.

Michael

15 years agoloadparm: refactor processing of service out of process_registry_globals()
Michael Adam [Thu, 15 May 2008 00:08:14 +0000 (02:08 +0200)]
loadparm: refactor processing of service out of process_registry_globals()

into new function process_registry_service().

Michael

15 years agoloadparm: refactor initalization of registry config out into lp_smbconf_ctx().
Michael Adam [Wed, 14 May 2008 23:40:11 +0000 (01:40 +0200)]
loadparm: refactor initalization of registry config out into lp_smbconf_ctx().

Michael

15 years agoFix Bug #5465 (joining with createcomputer=ou1/ou2/ou3).
Günther Deschner [Wed, 14 May 2008 21:50:25 +0000 (23:50 +0200)]
Fix Bug #5465 (joining with createcomputer=ou1/ou2/ou3).

Guenther

15 years agoFix bug #5464. Pointed out by Herb @ Connectathon. In fork_domain_child() we call :
Jeremy Allison [Wed, 14 May 2008 21:10:39 +0000 (14:10 -0700)]
Fix bug #5464. Pointed out by Herb @ Connectathon. In fork_domain_child() we call :

CatchChild();

*before* we fork the domain child. This call establishes a signal handler that
eats SIGCLD signals and doesn't call sys_select_signal() as the main daemon
SIGCLD handler should do. This causes the parent to ignore dead children and
time out, instead of calling winbind_child_died() on receipt of the signal. The
correct fix is to move the CatchChild call into the child code after the fork.

Jeremy.

15 years agoEnsure we don't keep searching for sharename if it's
Jeremy Allison [Wed, 14 May 2008 21:10:05 +0000 (14:10 -0700)]
Ensure we don't keep searching for sharename if it's
not the start of the list.
Jeremy.

15 years agoconfigure: Kill linker warnings about 32bit libs on 64bit Linux.
Kai Blin [Mon, 12 May 2008 12:39:03 +0000 (14:39 +0200)]
configure: Kill linker warnings about 32bit libs on 64bit Linux.

15 years agodsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.
Günther Deschner [Wed, 14 May 2008 07:42:23 +0000 (09:42 +0200)]
dsgetdcname: In case we didn't get a mailslot reply, don't cache the nodestatus.

Guenther

15 years agomailslot: Also pick domain name and pdc name from type 15 cldap reply.
Günther Deschner [Wed, 14 May 2008 07:41:24 +0000 (09:41 +0200)]
mailslot: Also pick domain name and pdc name from type 15 cldap reply.

Guenther

15 years agoAFS: The dummy afs_createtoken_str should return NULL, not False.
Kai Blin [Wed, 14 May 2008 07:02:22 +0000 (09:02 +0200)]
AFS: The dummy afs_createtoken_str should return NULL, not False.

15 years agoMerge branch 'v3-3-test' of git://git.samba.org/samba into 3.3-test
Jim McDonough [Tue, 13 May 2008 22:42:18 +0000 (18:42 -0400)]
Merge branch 'v3-3-test' of git://git.samba.org/samba into 3.3-test

15 years agoFix debug message.
Jeremy Allison [Tue, 13 May 2008 22:25:26 +0000 (15:25 -0700)]
Fix debug message.
Jeremy.

15 years agoSecond part of patch for bug #5460. Cope with pathnames
Jeremy Allison [Tue, 13 May 2008 22:02:11 +0000 (15:02 -0700)]
Second part of patch for bug #5460. Cope with pathnames
that don't look like \xxx\yyy, cope with arbitrary length.
Jeremy.

15 years agoFix bug #5460. The problem is RHEL5.0 shipped a CIFS client
Jeremy Allison [Tue, 13 May 2008 21:01:19 +0000 (14:01 -0700)]
Fix bug #5460. The problem is RHEL5.0 shipped a CIFS client
that sets the DFS bit on pathnames but doesn't
send DFS paths. This causes lookups to fail as
the smbd/msdfs.c code now just eats the first
two parts of the pathname and uses the rest as
the local path. The previous hostname check
used to protect us from that as we knew that
when the hostname was invalid it was a local
path (and a broken client).
I didn't want to put that check back in, but
came up with another idea - even though the
hostname can be a different one, the sharename
must be valid on this machine. So we can check
for a valid sharename instead.
Jeremy.

15 years agoEnable winbind child processes to do something with signals,
Jim McDonough [Tue, 13 May 2008 20:57:01 +0000 (16:57 -0400)]
Enable winbind child processes to do something with signals,
in particular closing and reopening logs on SIGHUP.

Conflicts:

source/winbindd/winbindd.c

15 years agolibwbclient: Abstract the DS_XXX flags for DsGetDcName().
coffeedude [Tue, 13 May 2008 17:58:52 +0000 (12:58 -0500)]
libwbclient: Abstract the DS_XXX flags for DsGetDcName().

The wbcLookupDomainController() call supports a set of flags
defined in wbclient.h.  Add a mapping function between these
flags and the original DS_XXX flags in order to prevent having
to include the generated RPC headers in wbclient.h.