Hi,
IMAP auth works well for users with an account on the IMAP server, but, it works also for people without account as the "Public registrations:" needs to be set to "Visitors can create accounts and no administrator approval is required."

How can I limit the creation of drupal account to the users existing only in my Imap server and reject all other ?

Thank for your help
/philippe

Comments

yecarrillo’s picture

Assigned: Unassigned » yecarrillo
Status: Active » Fixed

To prevent authentication from "ALL" servers, please change the asterisk ("*") on "IMAP/POP3/NNTP Services:" setting with your own server_alias,string_mailbox. Ie, if your company server is "imap.mycompany.com", please update this textarea with:

mycompany.com,{imap.mycompany:143}INBOX

This will works with most IMAP server brands. More options for string_mailbox part can be found here:

http://www.php.net/manual/en/function.imap-open.php

Anonymous’s picture

Status: Fixed » Closed (fixed)
stompro’s picture

Status: Closed (fixed) » Active

This wasn't answered. Philippe asked how to keep people from signing up for new accounts that are not created through imap validation when using this module. Because the user registration setting of "Visitors can create accounts and no administrator approval is required" needs to be set, anyone can create a new account regardless of it they are authenticated through an imap server or not.

I have the same question. I only have one imap service setup, and I only want users created that authenticate through that service. I don't want anyone to be able to click on the "Create new account" link and be able to setup an account.

Thanks

stompro’s picture

Status: Active » Closed (fixed)

I just saw that this was answered in another help ticket.

http://drupal.org/node/64993

Closing ticket.
Thanks