Re: 'mailHost' not allowed during the NIS Migration ????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you try to add with objectClass: mailrecipient , does it work ?


dn: uid=apache,ou=People,dc=im,dc=logica,dc=com

uid: apache

cn: Apache

sn: Apache

mail: apache@xxxxxxxxxx

mailRoutingAddress: apache@xxxxxxxxxxxxxxx

mailHost: mail.logica.com

objectClass: person

objectClass: organizationalPerson

objectClass: inetOrgPerson

objectClass: posixAccount

objectClass: top

objectClass: shadowAccount

objectClass: mailrecipient
userPassword: {crypt}!!

shadowLastChange: 13801

shadowMax: 99999

shadowWarning: 7

loginShell: /sbin/nologin

uidNumber: 48

gidNumber: 48

homeDirectory: /var/www

gecos: Apache


Fabrice



2008/2/15, Singh Raina, Ajeet <ajeet.singh.raina@xxxxxxxxxxxxx>:

I migrated my # ypcat passwd > /tmp/passwd.ldif  through the perl script and I had few entry of the same as below pasted:

 

dn: uid=apache,ou=People,dc=im,dc=logica,dc=com

uid: apache

cn: Apache

sn: Apache

mail: apache@xxxxxxxxxx

mailRoutingAddress: apache@xxxxxxxxxxxxxxx

mailHost: mail.logica.com

objectClass: person

objectClass: organizationalPerson

objectClass: inetOrgPerson

objectClass: posixAccount

objectClass: top

objectClass: shadowAccount

userPassword: {crypt}!!

shadowLastChange: 13801

shadowMax: 99999

shadowWarning: 7

loginShell: /sbin/nologin

uidNumber: 48

gidNumber: 48

homeDirectory: /var/www

gecos: Apache

 

 

When I am trying to import into the databases it is throwing error as below:

 

uid=apache,ou=People,dc=im,dc=logica,dc=com: Error adding object 'dn: uid=apache,ou=People,dc=im,dc=logica,dc=com'.  The error sent by the server was 'Object class violation. attribute "mailHost" not allowed

'.  The object is: LDAPEntry: uid=apache,ou=People,dc=im,dc=logica,dc=com; LDAPAttributeSet: LDAPAttribute {type='sn', values='Apache'} LDAPAttribute {type='loginshell', values='/sbin/nologin'} LDAPAttribute {type='userpassword', values='{crypt}!!'} LDAPAttribute {type='gidnumber', values='48'} LDAPAttribute {type='uidnumber', values='48'} LDAPAttribute {type='mail', values='apache@xxxxxxxxxx'} LDAPAttribute {type='shadowmax', values='99999'} LDAPAttribute {type='objectclass', values='person,organizationalPerson,inetOrgPerson,posixAccount,top,shadowAccount'} LDAPAttribute {type='uid', values='apache'} LDAPAttribute {type='gecos', values='Apache'} LDAPAttribute {type='shadowlastchange', values='13801'} LDAPAttribute {type='mailhost', values='mail.logica.com'} LDAPAttribute {type='mailroutingaddress', values='apache@xxxxxxxxxxxxxxx'} LDAPAttribute {type='cn', values='Apache'} LDAPAttribute {type='homedirectory', values='/var/www'} LDAPAttribute {type='shadowwarning', values='7'}.

 

 

Now when I am deleting these lines:

 

mail: apache@xxxxxxxxxx

mailRoutingAddress: apache@xxxxxxxxxxxxxxx

 

 

It seems to work.

 

Any idea how I should configure my DS to stop these errors.

 

 

Pls Help



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users


--
Fedora-directory-users mailing list
Fedora-directory-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux