From: Victor B. <vb...@gm...> - 2006-09-23 05:33:06
|
Hi Holger, Did you check the implementation at: http://www.mantisbugtracker.com/bugs/view.php?id=3D7432 Instead of updating the users table, you can use the configuration to achieve a per user configuration option. The configuration stored in the database are easily editable in Mantis 1.1.0a1 through the Mantis web interface. Do we really need a per user configuration? One option is to have a threshold that we compare with the user default access level and if higher or equal we use AD, otherwise we use the standard infrastructure, i.e. customers will use the standard login, but developers, etc would use AD. Obiously the per user approach is more flexible as long as it doesn't over complicate to code. On 9/22/06, Holger Kaufmann <h.k...@ra...> wrote: > Sorry, > > I somehow forgot to attach the ads_api.php. > > > > Holger Kaufmann > > -------------------------------------------------------------- > RA Consulting GmbH > Zeiloch 6a > D-76646 Bruchsal > Germany > Firma: +49 (72 51) 38 62 44 > Fax: +49 (72 51) 38 62 11 > eMail: h.k...@ra... > Web: http://www.rac.de > -------------------------------------------------------------- > > > > -----Urspr=FCngliche Nachricht----- > Von: Holger Kaufmann [mailto:h.k...@ra...] > Gesendet: Freitag, 22. September 2006 16:38 > An: developer discussions > Betreff: Re: [Mantisbt-dev] MS Active Directory Authentication > > Hi, > > I spent some time on this issue and here's my patch. As I mentioned befor= e I > had do add a field in the user-table to store the login-method for each > particular user. So attached you'll also find a sql-dump of the mantis us= er > table. > > Following should be working: > First of all there's a new option to configure in the config_inc.php. It'= s > an array where you can tell the system which of the supported authenticat= ion > methods should be available. This array will be read when creating a new > user and gives an option field where the administrator configures the > login-method like LDAP, MD5 or ADS (for Active Directory). When actually > creating a user this value will be stored in the new db field. > If somebody tries to login the system first reads out his login-method an= d > then starts authentication in the configured way. > > These changes are working on my system but that doesn't mean too much. > > I did not have enough time yet to check for functions like automatic emai= l > for new users, random password creation and some other things. So if anyb= ody > by chance could have a look at it and give me some feedback I'd be glad. > > This is my first experience with MantisBT development, so please don't ge= t > mad if my code contains some terrible bugs. > > Thanks in advance for every feedback. > > Holger Kaufmann > > -------------------------------------------------------------- > RA Consulting GmbH > Zeiloch 6a > D-76646 Bruchsal > Germany > Firma: +49 (72 51) 38 62 44 > Fax: +49 (72 51) 38 62 11 > eMail: h.k...@ra... > Web: http://www.rac.de > -------------------------------------------------------------- > > > -----Urspr=FCngliche Nachricht----- > Von: Roel Vanhout [mailto:ro...@ri...] > Gesendet: Dienstag, 19. September 2006 14:59 > An: developer discussions > Betreff: Re: [Mantisbt-dev] MS Active Directory Authentication > > > I think I didn't express myself clearly: I didn't have any problems > using adldap, I just found it to be difficult / a lot of work to > integrate a new authentication system into Mantis. > > I brought up adldap exactly because I didn't have any problems getting > it to authenticate against AD and therefore wanted to recommend it - the > problems I had came from my finding it difficult and time-consuming to > make a full-fledged and robust implementation in Mantis (eg, when a user > logs in that doesn't have a mantis account yet but does have an AD > account, a mantis account should be created and the user properties > (email etc) filled as much as possible, the user management screen needs > to be changed to show that certains account authenticate through AD, or > maybe only one authentication method should be allowed at any one time, > etc...) > > cheers, > > roel > > > > David A. Desrosiers wrote: > > On Tue, 2006-09-19 at 11:39 +0200, Roel Vanhout wrote: > > > >>Any news on this? I would love to have such functionality! I never > >>quite got the existing AD-support (through ldap) to work. There's a > >>very handy class on http://adldap.sourceforge.net/ that I got to work > >>very easily, but I never finished integrating it into the Mantis code, > >>last time I tried it a couple of months ago... > > > > > > What did the relevant adldap mailing list users and developers have to > > say when you posted the problems you had implementing it? Did any of th= e > > bug reports you posted on adldap get resolved? > > > > > > > > > > -----------------------------------------------------------------------= - > > > > -----------------------------------------------------------------------= -- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > > opinions on IT & business topics through brief surveys -- and earn cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV > > > > > > -----------------------------------------------------------------------= - > > > > _______________________________________________ > > Mantisbt-dev mailing list > > Man...@li... > > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > > > -- > Roel Vanhout, RIKS BV > Abtstraat 2a, 6211 LS Maastricht > +31 (0)43 388 3708 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Mantisbt-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > _______________________________________________ > Mantisbt-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > > > > |