a***@shaw.ca
2014-01-20 03:28:06 UTC
Hello,
I have an LDAP server (slapd v2.4.28) running on localhost. Using Luma
v2.4 on Ubuntu 12.04 LTS, I am so far unable to add a new entry and I
could use some help in troubleshooting. The steps I follow in trying to
add an entry are as follows:
1. Click on the "Add..." button in the Addressbook plugin window.
2. Select as location "ou=family,ou=addressbook,dc=***@localhost" and
click the "Next >" button. The "Add Contact" window appears.
3. Click on the "Full Name..." button and, in the "Full name" window
that appears, I enter values into the "First" and "Last" fields and then
click the "OK" button. The "Full name" window closes and focus returns
to the "Add Contact" window. The "Full Name" field is blank whereas I
would have expected the values I entered in the "First" and "Last"
fields to appear. The following is written in the log window:
20:13:38 An unhandled exception occured. This is most likely a bug
in the programming of Luma. In order to fix this, send an email with the
following text and a detailed description of what you were doing to
luma-***@lists.sourceforge.net.
File "/usr/lib/luma/plugins/addressbook/AddressbookWidget.py", line
304, in showNameDialog
self.dataObject.addAttributeValue('sn', [tmpSn])
File "/usr/lib/luma/base/backend/SmartDataObject.py", line 246, in
addAttributeValue
attributeName = self.attributeMap[attributeName.lower()]
Reason: <type 'exceptions.KeyError'> 'sn'
My server settings are as follows:
- Server address: localhost:389
- Bind as: cn=admin,dc=home
- Encryption: None
- Authentication: Simple
- BaseDN: ou=family,ou=addressbook,dc=***@localhost
I'm able to search, modify, and delete entries in the database using the
Addressbook plugin. So far, it is only adding entries that fails.
Adding new users to database works using the following ldapadd command
which, I think, reproduces the settings in Luma:
$ ldapadd -D "cn=admin,dc=home" -w '<password>' -H ldap://localhost:389
-x -f /tmp/newentry
Where the contents of /tmp/newentry are:
dn: cn=Barbara Jensen,ou=family,ou=addressbook,dc=home
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: Barbara Jensen
cn: Babs Jensen
sn: Jensen
title: the world's most famous mythical manager
mail: ***@example.com
uid: bjensen
Thanks in advance for your help.
Until next time, Colin.
I have an LDAP server (slapd v2.4.28) running on localhost. Using Luma
v2.4 on Ubuntu 12.04 LTS, I am so far unable to add a new entry and I
could use some help in troubleshooting. The steps I follow in trying to
add an entry are as follows:
1. Click on the "Add..." button in the Addressbook plugin window.
2. Select as location "ou=family,ou=addressbook,dc=***@localhost" and
click the "Next >" button. The "Add Contact" window appears.
3. Click on the "Full Name..." button and, in the "Full name" window
that appears, I enter values into the "First" and "Last" fields and then
click the "OK" button. The "Full name" window closes and focus returns
to the "Add Contact" window. The "Full Name" field is blank whereas I
would have expected the values I entered in the "First" and "Last"
fields to appear. The following is written in the log window:
20:13:38 An unhandled exception occured. This is most likely a bug
in the programming of Luma. In order to fix this, send an email with the
following text and a detailed description of what you were doing to
luma-***@lists.sourceforge.net.
File "/usr/lib/luma/plugins/addressbook/AddressbookWidget.py", line
304, in showNameDialog
self.dataObject.addAttributeValue('sn', [tmpSn])
File "/usr/lib/luma/base/backend/SmartDataObject.py", line 246, in
addAttributeValue
attributeName = self.attributeMap[attributeName.lower()]
Reason: <type 'exceptions.KeyError'> 'sn'
My server settings are as follows:
- Server address: localhost:389
- Bind as: cn=admin,dc=home
- Encryption: None
- Authentication: Simple
- BaseDN: ou=family,ou=addressbook,dc=***@localhost
I'm able to search, modify, and delete entries in the database using the
Addressbook plugin. So far, it is only adding entries that fails.
Adding new users to database works using the following ldapadd command
which, I think, reproduces the settings in Luma:
$ ldapadd -D "cn=admin,dc=home" -w '<password>' -H ldap://localhost:389
-x -f /tmp/newentry
Where the contents of /tmp/newentry are:
dn: cn=Barbara Jensen,ou=family,ou=addressbook,dc=home
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
cn: Barbara Jensen
cn: Babs Jensen
sn: Jensen
title: the world's most famous mythical manager
mail: ***@example.com
uid: bjensen
Thanks in advance for your help.
Until next time, Colin.