#6112 update LDAP auth provider

v1.0.0
closed
nobody
None
General
Cory Johns
2015-08-20
2013-04-16
Anonymous
No

Originally created by: thejacts

Need better docs on installing ldap dependencies, and ldap auth provider is missing required methods. See http://mail-archives.apache.org/mod_mbox/incubator-allura-users/201304.mbox/%3CEB6FC32A33D349A8A57DBEBFB1C4F471@gmail.com%3E for more details


when i run this "paster setup-app development.ini" I am getting the error below
i followed the steps in readme.amrkdown and scm hosting.Please help me to fix this.

12:59:47,269 INFO [allura.model.artifact] Snapshot version 1 of <class 'forgewiki.model.wiki.page'="">
12:59:47,286 INFO [allura.model.notification] Notifications disabled for project u/test-user-0, not sending metadata(<page import_id="None" labels="I[]" deleted="False" text="u'Welcome" to="" your="" wiki!\n\nthis="" is="" the="" default="" page,="" edit="" it="" as="" you="" see="" fit.="" add="" a="" new="" page="" simply="" reference="" within="" brackets,="" e.g.:="" <span="">[SamplePage].\n\nThe wiki uses Markdown syntax.\n\n\</page></class>

Project Admins:
\n\[[download_button]]\n' title=u'Home' tool_version=I{'Wiki': '0.0'} acl=I[] version=1 mod_date=datetime.datetime(2013, 4, 16, 7, 29, 47, 264775) viewable_by=I['all'] _id=ObjectId('516cfdebb1a5b64927aa9a0d') app_config_id=ObjectId('516cfdebb1a5b64927aa9a06')>)
12:59:47,294 ERROR [allura.model.project] userstats is not available
Traceback (most recent call last):
File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 450, in install_anchored_tools
new_tools.append(self.install_app(tool, tool, label, i))
File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 554, in install_app
app = App(self, cfg)
File "/home/pc247053/src/allura/ForgeUserStats/forgeuserstats/main.py", line 92, in init
role_admin = M.ProjectRole.by_name('Admin')._id
AttributeError: 'NoneType' object has no attribute '_id'
12:59:47,329 INFO [allura.model.artifact] Snapshot version 1 of <class 'forgewiki.model.wiki.page'="">
12:59:47,346 INFO [allura.model.notification] Notifications disabled for project u/test-user-1, not sending metadata(<Page import_id=None labels=I[] deleted=False text=u'Welcome

</class>

Discussion

  • Anonymous - 2013-04-16

    Originally by: thejacts

    when i change the auth_method to ldap in .ini file, I am unable to register a user and unable to login with ldap admin username saying internal server error
    I attached the log file too.Please help me out

     

    Last edit: Anonymous 2024-03-28
  • Anonymous - 2013-04-16

    Originally by: thejacts

    i Ran the test suite ALLURA_VALIDATION=none ./run_tests also,it skipped 4 test in ForgeBlog and 2 in ForgeWiki.Remaining are passed only.

     

    Last edit: Anonymous 2024-03-28
  • Dave Brondsema

    Dave Brondsema - 2013-04-16

    Hi,

    Our LDAP support is pretty old so it might not work, but I think the error you ran into is because the ldap libraries weren't installed. Try running pip install python-ldap to install it. And that requires some system libraries to be installed, which you can get on Ubuntu with apt-get install libldap2-dev

    If you have further questions/discussion about this I'd recommend using our mailing list, which is better suited for general questions and more people may be able to respond. http://mail-archives.apache.org/mod_mbox/incubator-allura-users/ has info about how to subscribe to the list.

     
  • Anonymous - 2013-04-17

    Originally by: thejacts

    Hi
    I installed the libldap2-dev in chroot environment.But still getting the same error
    here i attach the logs.Please and check and let me know how to fix it.

     
  • Dave Brondsema

    Dave Brondsema - 2013-04-18
    • summary: Error while installing Allura Platform --> update LDAP auth provider
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,7 @@
    +Need better docs on installing ldap dependencies, and ldap auth provider is missing required methods.  See <http://mail-archives.apache.org/mod_mbox/incubator-allura-users/201304.mbox/%3CEB6FC32A33D349A8A57DBEBFB1C4F471@gmail.com%3E> for more details
    +
    +----
    +
     when i run this "paster setup-app development.ini" I am getting the error below
     i followed the steps in readme.amrkdown and scm hosting.Please help me to fix this.
    
    • Milestone: limbo --> forge-backlog
     
  • Anonymous - 2013-04-25

    Originally by: *anonymous

    Hi Allura Developers,

    This is the error I am getting while running paster setup-app development.ini

    INFO [allura.model.notification] Notifications disabled for project u/test-user, not sending metadata(<page import_id="None" labels="I[]" deleted="False" text="u'Welcome" to="" your="" wiki!\n\nthis="" is="" the="" default="" page,="" edit="" it="" as="" you="" see="" fit.="" add="" a="" new="" page="" simply="" reference="" within="" brackets,="" e.g.:="" <span="">[SamplePage].\n\nThe wiki uses Markdown syntax.\n\n\</page>

    Project Admins:
    \n\[[download_button]]\n' title=u'Home' tool_version=I{'Wiki': '0.0'} acl=I[] version=1 mod_date=datetime.datetime(2013, 4, 25, 9, 15, 24, 535329) viewable_by=I['all'] _id=ObjectId('5178f42cb1a5b67f82cb8756') app_config_id=ObjectId('5178f42cb1a5b67f82cb874f')>)
    14:45:24,577 ERROR [allura.model.project] userstats is not available
    Traceback (most recent call last):
    File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 468, in install_anchored_tools
    new_tools.append(self.install_app(tool, tool, label, i))
    File "/home/pc247053/src/allura/Allura/allura/model/project.py", line 572, in install_app
    app = App(self, cfg)
    File "/home/pc247053/src/allura/ForgeUserStats/forgeuserstats/main.py", line 92, in init
    role_admin = M.ProjectRole.by_name('Admin')._id
    AttributeError: 'NoneType' object has no attribute '_id'

    while registering a user the same error appeared in tg.log.I didnt see any user projects in the /var/scm/svn/p/ folder and didnt see svn/u/<registered user=""> folder also.</registered>

    please help me in fixing this

     
  • Anonymous - 2013-04-25

    Originally by: thejacts

    I found c.project is none.That is giving attribute error.
    I couldn't fix it.Please help.I have deadlines to finish the forge setup.

     
  • Anonymous - 2013-09-04

    Originally by: rferreira-itav

    Cheers I'm fixing LDAP support.

    I have a fix hosted at https://sourceforge.net/u/rferreira-itav/allura/. The branch is tb-ldap

    This seems to be be working against 1.0. So far I've:

    • Added the functions missing from the ldap plugin class
    • Added a config option to enable/disable schroot - this helps when testing LDAP or deploying without shell support (the default behaviour is unchaged)

    Some missing bits:

    • the docs in Allura/docs/scm_host.rst could use an update - I think the dpkg-reconfigure slapd behaviour has changed in Ubuntu, it generates an admin account for LDAP based on the machines hostname
    • maybe change ldap-setup.py
     
  • Dave Brondsema

    Dave Brondsema - 2013-09-05

    Rui, that's great :) Is your branch something we should review for merging now? Or do we want to check on the "missing bits" first?

     
  • Dave Brondsema

    Dave Brondsema - 2013-09-12
    • status: open --> code-review
     
  • Anonymous - 2013-09-21

    Originally by: rferreira-itav

    Sorry Dave, it seems I completely missed the notification for your update.

    The changes I've made should be ready to be merged. I'm just not sure if the ldap-setup.py is still working in ubuntu, but maybe that issue can be handled separately.

     
  • Cory Johns - 2013-09-30
    • QA: Cory Johns
     
  • Cory Johns - 2013-09-30

    The test in upload_sshkey seems backwards (i.e., should be if not).

     
  • Dave Brondsema

    Dave Brondsema - 2013-10-03

    Seems like it to me too. We can probably go ahead with a merge, just changing that.

     
  • Cory Johns - 2013-10-21

    Merged

     
  • Cory Johns - 2013-10-21
    • status: code-review --> closed
    • Milestone: forge-backlog --> forge-nov-01
     

Log in to post a comment.