List Info

Thread: Re: Exception encountered on trying to Edit/Delete Blogs/Entries etc..




Re: Exception encountered on trying to Edit/Delete Blogs/Entries etc..
user name
2007-02-28 07:50:57
Hi,

Adding a user to the dbuser table using

mysql>; insert into dbuser values (3,'shalini_israni',';whatever','shalini','shaliniemail','2007-02-19 11:19:23','new',1);

does get rid of the exception. But now, whenever i try and change anything (add/del blogs, entries ,categories etc) ...it says that i don not have the permissions for that particular exception

I am not adding anything else to any other tables.

This it allows me for the default blog (id=1 in the query above). On trying to add to the blog i added to the system before LDAP came into play, the same exception occurs...


What does this mean?

And if this resovles the error, what part must i edit so that these accounts are automatically created when the user succesfully logs in for the first time? Also, how do i then authenticate him(update the blojsom database) if his LDAP password changes?


Many thanks ....

Shalini



On 2/28/07, shalini israni < shaliny.igmail.com">shaliny.igmail.com> wrote:
Hi David,

To do that, do i need to add an a user with the corresponding account in the dbuser table?

If this resovles the error, what part must i edit so that these accounts are automatically created when the user succesfully logs in for the first time? Also, how do i then authenticate him(update the blojsom database) if his LDAP password changes?

thanks,
Shalini



On 2/28/07, David Czarnecki < davidblojsom.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> davidblojsom.com> wrote:
I think the issue is that there needs to be a corresponding user in blojsom as well as LDAP with the same username. Try that and see if you still get an error logging into blojsom after authenticating with LDAP.

On 2/28/07 3:26 AM, "shalini israni&quot; < shaliny.igmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">shaliny.igmail.com> wrote:

Could you tell me what must be done to un-mess the situation and get rid of the exception?


Thanks

Shalini

On 2/28/07, shalini israni < shaliny.igmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">shaliny.igmail.com> wrote:
Hi,

No there is no such corresponding account in the blojsom database.
After installing Blojsom3.1 (using the quickstart .war file)
  • i logged in to the admin console using the default-default login and created another blog with id 2 (just ...letting you know..)

  • i Made the authentication LDAP by following the instructions (Changes to the web.xml and blojsom.xml)



But no changes to the database in terms of blog users.



Looks like i have missed out something somewhere


Thanks,
Shalini



From: David Czarnecki <davidbl...> - 2007-02-27 08:11 Does the user account you�re authenticating with LDAP have an account in the
 ;blojsom database?

 

On 2/27/07, shalini israni < shaliny.igmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">shaliny.igmail.com   shaliny.igmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> &lt;mailto:shaliny.igmail.com&gt; > wrote:
Hi,


I have changed the authorization provider to LDAP by making the necessary change in blojsom.xml. The entry for authorization provider now looks like this:



<!-- Authorization provider -->

 &nbsp; <;bean id="authorizationProvider&quot; class=&quot;org.blojsom.authorization.ldap.LDAPAuthorizationProvider"

 &nbsp; &nbsp; &nbsp; &nbsp; init-method="init">

 &nbsp; &nbsp; &nbsp; &lt;property name=";sessionFactory"&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ;<ref bean=";hibernateSessionFactory"/&gt;

 &nbsp; &nbsp; &nbsp; &lt;/property>

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <property name=";servletConfig"&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;<ref bean=";servletConfigFactoryBean"/&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; </property&gt;

 &nbsp; <;/bean>



This authenticates the users fine.









But on being authenticated, and trying to add / delete any blog or entry, the following exception occurs:

(It infact occurs when i click on anything in the admin console after being successfully logged in via LDAP)












java.lang.NullPointerException
&nbsp; &nbsp;   ; &nbsp;org.blojsom.authorization.database.DatabaseAuthorizationProvider.checkPermission



(DatabaseAuthorizationProvider.java:169)
  ; &nbsp; &nbsp; &nbsp;org.blojsom.plugin.admin.BaseAdminPlugin.checkPermission



(BaseAdminPlugin.java:253)
&nbsp; &nbsp; &nbsp;   ;org.blojsom.plugin.admin.EditBlogsPlugin.process



(EditBlogsPlugin.java:214)
&nbsp; &nbsp; &nbsp;   ;org.blojsom.servlet.BlojsomServlet.service



(BlojsomServlet.java:253)
 &nbsp; &nbsp; &nbsp; &nbsp;javax.servlet.http.HttpServlet.service


(HttpServlet.java
:802)
&nbsp; &nbsp;   ; &nbsp;org.blojsom.filter.PermalinkFilter.doFilter


(PermalinkFilter.java
:207)
 &nbsp;   ; &nbsp; org.blojsom.filter.SkipEntriesFilter.doFilter


(SkipEntriesFilter.java
:103)
 &nbsp; &nbsp;   ; org.blojsom.filter.PageFilter.doFilter


(PageFilter.java:167)
&nbsp; &nbsp; &nbsp;   ;org.blojsom.filter.FeedFilter.doFilter(FeedFilter.java:198)








I am using Blojsom 3.1 with Tomcat 5.5 and MySql 5.0
Why does the above exception occur?



&nbsp;Many thanks in advance




Regards,  
Shalini







--
David Czarnecki

http://www.blojsom.com/blog/ | http://blojsom.sf.net

-------------------------------------------------------------------------
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=join.php&;p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-users




--

Shalini



--

Shalini
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )