Hi, I am having problems getting YAF to work on our intranet and use integrated login from a Windows Active Directory domain.
I have the system working fine using forms, happy days:) but when set to windows, everybody is recognised as guest, they can read all content but not post etc.:cry:
Configuration
Web server: IIS V6.0 on Win2003 R2 SP1
SQL: MS SQL server 8.00.760 (SP3) on Win2003 SP2
Client XP, IE 7.0
Assumptions (please correct me if I am wrong)
- SQL authentication is separate to user login authentication. I.e. I can have a SQL username & password in the db.config and still use windows authentication. If this is true I can say that my SQL server is fine and concentrate on the Web server.
- If I get integrated windows login working correctly then the following should happen
--- Domain user opens YAF home page and the an account will be setup automatically
--- The sql table yaf_User should be populated with new user record
--- Domain user should never (ever) be prompted with username / password dialog box
--- Domain user will always be able to post as they will be recognised as a members
--- Once a domain user used the forum and account created, an admin can then change the roles etc for that user
How I got here,
- Took a full copy of the working forum (ie forms authentication) home folder.
- Created new website and pointed at this folder, changed default document to default.aspx, in Directory security removed checkbox for anonymous login and instead check the box integrated windows authentication
- Changed the web.config to
<authentication mode="Windows">
</authentication>
<!--identity impersonate="true" /-->
- From client PC open the forum, forum appears without a logon dialog but I am identified as Guest.
- Proxy not enabled on IE and server FQD added to Intranet on IE security
- Check the IIS logfile & it shows the web hit and in the logfile I see my Domain\Username so authentication seems to be working.
Some questions:
- Are my assumptions correct
- Any idea why wont YAF recognise my domain username especially when IIS log file records it in IIS log
- Is there any way to view log/debug of login (not a developer, please dont advise anything that involves direct coding)
- What format will the username take in the YAF_user table is it DOMAIN\USER, USER etc
- Is there something I have missed, I cant find a step by step how to for windows authentication so I am afraid that I am missing something obvious.
Any help welcome.
(PS: great software, well done to all)