Singh Raina, Ajeet
2008-Feb-15 06:31 UTC
[Fedora-directory-users] ''mailHost'' not allowed during the NIS Migration ????
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@logica.com
mailRoutingAddress: apache@mail.logica.com
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@logica.com''}
LDAPAttribute {type=''shadowmax'',
values=''99999''} LDAPAttribute
{type=''objectclass'',
values=''person,organizationalPerson,inetOrgPerson,posixAccount,top,shado
wAccount''} 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@mail.logica.com''} 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@logica.com
mailRoutingAddress: apache@mail.logica.com
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.
Fabrice Durand
2008-Feb-15 06:41 UTC
Re: [Fedora-directory-users] ''mailHost'' not allowed during the NIS Migration ????
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@logica.com
mailRoutingAddress: apache@mail.logica.com
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@logicacmg.com>:>
> 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@logica.com
>
> mailRoutingAddress: apache@mail.logica.com
>
> 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@logica.com''} 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@mail.logica.com''} 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@logica.com
>
> mailRoutingAddress: apache@mail.logica.com
>
>
>
>
>
> 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@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users
>
>