jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Gldapo
  • GLDP-106

Setting directory while creating a new ldap entry throws exception

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8
  • Fix Version/s: 0.8.1
  • Component/s: Internals
  • Labels:
    None
  • Environment:
    Linux

Description

Creating a new entry in ldap creates the following exception:

Exception Message: No signature of method: groovy.util.ConfigObject.createEntry() is applicable for argument types: (org.springframework.ldap.core.DistinguishedName, javax.naming.directory.BasicAttributes) values: {uid=foo.bar, ou=Users, {objectClass=objectClass: fooAccount, cn=cn: foo}}
Caused by: groovy.lang.MissingMethodException: No signature of method: groovy.util.ConfigObject.createEntry() is applicable for argument types: (org.springframework.ldap.core.DistinguishedName, javax.naming.directory.BasicAttributes) values: {uid=foo.bar, ou=Users, {objectClass=objectClass: fooAccount, cn=cn: foo}}
Class: GldapoSchemaClassInjecto
At Line: [248]

I used the following config:

ldap {
directories {
fooDirectory {
url = "ldap://foo.de"
base = "o=foo,c=de"
userDn = "cn=manager,o=otop,c=de"
password = "mojo"
searchControls { timeLimit = 600 searchScope = "subtree" }
}
}
schemas = [ FooAccountLDAP, FooGroupLDAP ]

typemappings = [ de.foo.MyTypeMappings ]
}

As workaround omit setting the directory while setting attributes. then the default directory (if you only have one) is used and it works fine.

def newUser = new MySchemaClass()

// Assign the object a directory and a place in it.
//newUser.directory = "example" <-- coment this line
newUser.parent = "ou=people"
newUser.uid = "newuser"

// Set the attribute values
newUser.cn = "New"
newUser.sn = "User"

// Write to the directory
newUser.create()

Issue Links

relates to

Bug - A problem which impairs or prevents the functions of the product. GLDP-111 Setting a directory by name doesn't work

  • Major - Major loss of function.
  • Resolved - A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Luke Daley
    Reporter:
    Daniel Klotz
Vote (0)
Watch (0)

Dates

  • Created:
    23/Jan/09 3:18 AM
    Updated:
    16/May/09 3:27 AM
    Resolved:
    16/May/09 3:27 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.