On 3/15/08, Pierangelo Masarati ando@sys-net.it wrote:
vinodh kumar wrote:
hello all...
Read the links which you directed and we followed t...we set up the
mysql
table structure as follows..thanks for ur response:) we added an ldif file... dn: cn:new,dc=example,dc=com objectClass:inetOrgPerson cn:new sn:a uid:new displayname:neww
while doing ldapserach we encountered error..
ldapadd -x -D "cn=admin,dc=example,dc=com" -f
/etc/ldap/ldiffs/ocnew.ldif -w
cas
adding new entry "cn=new,dc=example,dc=com" ldap_add: Server is unwilling to perform (53) additional info: operation not permitted within namingContext
select * from ldap_attr_mappings;
+-----+-----------+-----------
----+---------------------------------------+------------+-----------+------------+----------+-------------+-------------+---------------+
| id | oc_map_id | name |
sel_expr |
sel_expr_u | from_tbls | join_where | add_proc | delete_proc |
param_order |
expect_return |
+-----+-----------+---------------+---------------------------------------+------------+-----------+------------+----------+-------------+-------------+---------------+
| 1 | 1 | cn | concat(persons.name,,persons.surname)
|
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 2 | 1 | sn | persons.surname
|
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 4 | 1 | displayname | persons.displayname
|
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 3 | 1 | uid | persons.uid
|
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 101 | 101 | uid | persons.name
|
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 102 | 101 | uidNumber |
2000 |
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 103 | 101 | gidNumber |
2000 |
NULL | persons | NULL | NULL | NULL |
3
| 0 | | 104 | 101 | homeDirectory | persons.name
|
NULL | persons | NULL | NULL | NULL |
3
| 0 |
+-----+-----------+---------------+---------------------------------------+------------+-----------+------------+----------+-------------+-------------+---------------+
Perhaps the fact that all add procedures are NULL could explain the inability to perform an LDAP add operation?
p.
we have removed the null values ,then we tried ldapsearch it works well.butnot able to do ldapadd... we are encountering the error..
ldap_add: Internal (implementation specific) error (80) additional info: no structuralObjectClass operational attribute