Apache mailing lists don't accept attachments so the best way to
submit code is to create a JIRA ticket and attach it there.

Matt

On Thu, Jun 26, 2008 at 10:54 AM, A <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I though I attached a zip file with it.
> Anyway, here it is:
>
> public class BasicUserAutoProvision implements AutoProvision {    private 
> static Log log = 
> LogFactory.getFactory().getInstance(BasicUserAutoProvision.class);
>
>  public boolean execute() {    User ud = 
> CustomUserRegistry.getUserDetailsFromAuthentication();    if(ud != null) {    
>   UserManager mgr;      
> ud.setId(org.apache.roller.util.UUIDGenerator.generateUUID());      try {     
>    mgr = WebloggerFactory.getWeblogger().getUserManager();        
> mgr.addUser(ud);        WebloggerFactory.getWeblogger().flush();      } catch 
> (WebloggerException e) {        log.warn("Error while auto-provisioning user 
> from SSO.", e);      }    }
>    return true;  }
> }
>
>
>> CC: [EMAIL PROTECTED]> From: [EMAIL PROTECTED]> To: [email protected]> 
>> Subject: Re: AD and user provisioning> Date: Thu, 26 Jun 2008 12:27:49 
>> +0200> > Hi Adriano,> > Looks like you forgot to attach the source!> > 
>> Cheers,> > Alex> > On Jun 25, 2008, at 11:52 PM, A wrote:> > > Hi,> >> > I 
>> got user provisioning to work with AD in 4.0.> >> > Note that I had to 
>> change the class named> > 
>> org.apache.roller.weblogger.ui.core.security.BasicUserAutoProvision > > 
>> because the> > 
>> org.apache.roller.weblogger.ui.core.security.CustomUserRegistry > > class 
>> was setting the new user's id to null.> > The db schema doesn't allow that, 
>> so I just recompiled the > > BasicUserAutoProvision class with a small fix 
>> and placed it> > back in the jar, andit worked great.> >> > I know, talk 
>> about a hack beyond description.> >> > I attached the source and the class 
>> file as well.> >> > A> >> > Are you ready for Windows Live Messenger Beta 
>> 8.5 ? Get the latest > > for free today! <BasicUserAutoProvision.class>>
> _________________________________________________________________
> R U Ready for Windows Live Messenger Beta 8.5? Try it today!
> http://entertainment.sympatico.msn.ca/WindowsLiveMessenger



-- 
http://raibledesigns.com

Reply via email to