Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
I am trying to integrate Couch CMS into my existing website by following the tutorial at http://www.couchcms.com/docs/tutorials/ ... -site.html. I would like to provide my database credentials in the config.php file of Couch to connect me with windows authentication. How can this be done?
Hello and welcome, Sarah :)

From what I could gather by Googling for the topic you mentioned - it is only the commercial version of MySQL (beginning from ver. 5.5.16) that supports Windows authentication.

For this functionality the 'Windows Native Authentication' plugin is used and it requires the server-admin to map Windows accounts to MySQL accounts.

So, assuming your server is running a commercial distribution of MySQL 5.5.16+ and the server-admin has mapped your Windows account to a MySQL account named 'sql_user', you can set only this name in couch/config.php while leaving the password blank (the WNA plugin will authenticate you transparently using the Windows creds you'd be logged-in) -
Code: Select all
// 5.
// Database username
define( 'K_DB_USER', 'sql_user' );

// 6.
// Database password
define( 'K_DB_PASSWORD', '' );

In closing, let me admit that I've never had an opportunity to work first-hand with WNA + MySQL and whatever I've mentioned above is what I could glean by googling for the topic - so please take it with a pinch of salt :)

Hope this helps.
2 posts Page 1 of 1
cron