Thx Chris, this maybe a method, I'll do a test On Wed, Jun 24, 2009 at 2:56 PM, Chris Anderson <[email protected]> wrote:
> On Tue, Jun 23, 2009 at 11:50 PM, hhsuper<[email protected]> wrote: > > I can access remote couchdb in browser which need input the ldap user/pwd > > but when replicate there is no chance to input that(futon not support) > > > > when i use local couchdb's futon replicate the remote db to my local, i > > input the remote db address http://remote.domain/sourcedb > > and then select the local couchdb, when click the replicate button, the > > error pop out: > > > > Replication failed: {error, > > {{bad_return_value, > > {invalid_json, > > <<"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML > > 2.0//EN\">\n<html><head>\n<title>401 Authorization > > Required</title>\n</head><body>\n<h1>Authorization Required</h1>\n<p>This > > server could not verify that you\nare authorized to access the > > document\nrequested. Either you supplied the wrong\ncredentials (e.g., > bad > > password), or your\nbrowser doesn't understand how to supply\nthe > > credentials required.</p>\n<hr>\n<address>Apache/2.2.11 (Ubuntu) DAV/2 > > SVN/1.5.4 PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch mod_ssl/2.2.11 > > OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.0 Server at > > couchdb.babelcentral.com Port 80</address>\n</body></html>\n">>}}, > > {child,undefined,"7c2ce9689bfdbceab88aeea97d4c8bc0", > > {gen_server,start_link, > > [couch_rep, > > ["7c2ce9689bfdbceab88aeea97d4c8bc0", > > {remote, > > <<"http://couchdb.babelcentral.com/prod_recresult/ > > ">>,[]}, > > > {local,<<"prod_recresult">>,{user_ctx,null,[<<"_admin">>]}}], > > []]}, > > transient,1,worker, > > [couch_rep]}}} > > > > obvoiusly the remote couchdb need ldap authentication, any suggestion? > > > > not sure about ldap (it looks like you are using http basic auth) so > try putting a URL of the form: > > http://user:[email protected]/prod_recresult/ > > into the replicator. > > > > On Wed, Jun 24, 2009 at 2:39 PM, Chris Anderson <[email protected]> > wrote: > > > >> On Tue, Jun 23, 2009 at 6:10 PM, hhsuper<[email protected]> wrote: > >> > I have the same question, my remote server have ladp authentication, i > >> can > >> > operate it with browser(use ldap user/pwd to login) , > >> > so the replicate doesn't work, is there any other ways to restore the > >> remote > >> > couchdb database to my local > >> > > >> > >> If you can access CouchDB with a browser you can replicate from it > >> using a CouchDB on your local machine. > >> > >> However, if you meant you *can't* access it with a browser, then there > >> are other options. The simplest is probably to copy the database file > >> (.couch) to your local machine using rsync or some other remote copy > >> utility. This requires that you be running the same CouchDB version on > >> both machines. > >> > >> > Thx > >> > > >> > On Tue, Jun 23, 2009 at 8:01 PM, Ajay Pawaskar < > >> [email protected]>wrote: > >> > > >> >> Hi, > >> >> > >> >> i want to restore the CouchDB Documents & Views from One server to > >> >> another (on clients server) > >> >> there is option for replication (remote server)..but i don't have > access > >> >> to that server...(so i can't Replicate DB on that server using > >> >> Replicator) > >> >> ..but i need to deploy the Db on that server > >> >> .. also in future maybe i will be needing the documents from client > >> >> server for debugging purpose > >> >> how i can do this? > >> >> > >> >> > >> >> > >> >> Thx & Regards > >> >> > >> >> Ajay J. Pawaskar > >> >> > >> >> > >> > > >> > > >> > -- > >> > Yours sincerely > >> > > >> > Jack Su > >> > > >> > >> > >> > >> -- > >> Chris Anderson > >> http://jchrisa.net > >> http://couch.io > >> > > > > > > > > -- > > Yours sincerely > > > > Jack Su > > > > > > -- > Chris Anderson > http://jchrisa.net > http://couch.io > -- Yours sincerely Jack Su
