Sso, LDAP and "reinventing" the wheel

I have attempted to search all the relevant docs and forums with no results.  Has anyone implemented any sort of single sign on with Erpnext?  What about importing/syncing users with LDAP?  Either way, would anybody be willing to point me in the right direction?  I’m not as concerned with LDAP as keeping up with our twenty or so users won’t be that much of a task but sso would definitely be a viable feature.  Thank you for your time. 



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/E3nXHRcdXwkJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Hi,

Python has a LDAP client already. What needs to be done is sycning this with the "tabProfile" table of ERPNext (Profile DocType).

This should be easy via a python script. this script can be called on some change trigger in LDAP or from a scheduler (that will keep polling the LDAP server every few minutes or so).

If you have access, adding data is easy in ERPNext: essentially involves (overview):

import webnotes

webnotes.connect() # connect using parameters from conf.py

..

# new user
webnotes.bean({
"name": user.name,
"password": user.password
..
..
}).insert()

..
..

# update user
erpnext_user = webnotes.bean("Profile", user.name)
erpnext_user.set_password(user.password)
erpnext_user.doc.full_name = user.full_name
erpnext_user.save()


best,
Rushabh



On Tue, May 7, 2013 at 9:59 PM, jemcotech <jl...@rpjinc.com> wrote:
I have attempted to search all the relevant docs and forums with no results. Has anyone implemented any sort of single sign on with Erpnext? What about importing/syncing users with LDAP? Either way, would anybody be willing to point me in the right direction? I'm not as concerned with LDAP as keeping up with our twenty or so users won't be that much of a task but sso would definitely be a viable feature. Thank you for your time.



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/E3nXHRcdXwkJ.

For more options, visit https://groups.google.com/groups/opt_out.












Twitter: @rushabh_mehta



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.