Novell Home

Making NFAP/NFS create an NFAUUser object

Novell Cool Solutions: Trench
By Ottmar Konrad

Digg This - Slashdot This

Posted: 16 Feb 2005
 

PROBLEM: NFAP/NFS SCHINST.NLM could not create NFAUUser object.

SOLUTION: Found that attribute "userPassword" is also used from four more classes, if ZENworks (V 4.x) is installed. Adding these four classes to the fixing files deluserp.sch/newuserp.sch solves the problem quick and dirty. (Files content shown at EXAMPLE.)

EXAMPLE: changed deluserp.sch:

--------------------------------------------------
DelUserPassword {2 5 4 35} DEFINITIONS ::=

BEGIN
-- Modifying OBJECT User. 
-- Unix password has to be stored with each user in NIS. 
Take it out so we can delete it.
"User" OBJECT-CLASS ::=
{
   Operation   REMOVE,
   MayContain  {"userPassword"}
}

-- Modifying OBJECT Group.
-- Group object used in NIS should have Password.  
Take it out so we can delete it
"Group" OBJECT-CLASS ::=
{
   Operation   REMOVE,
   MayContain  {"userPassword"}
}

"zendmWakeUpPolicy" OBJECT-CLASS ::=
{
   Operation   REMOVE,
   MayContain  {"userPassword"}
}

"zendmWolService" OBJECT-CLASS ::=
{
   Operation   REMOVE,
   MayContain  {"userPassword"}
}

"zeninvRollUpPolicy" OBJECT-CLASS ::=
{
   Operation   REMOVE,
   MayContain  {"userPassword"}
}

"zeninvService" OBJECT-CLASS ::=
{
   Operation   REMOVE,
   MayContain  {"userPassword"}
}

"userPassword" ATTRIBUTE ::=
{
	Operation	REMOVE
}

END
--------------------------------------------------

changed newuserp.sch:
--------------------------------------------------
NewUserPassword {2 5 4 35} DEFINITIONS ::=

BEGIN

-- Adding ATTRIBUTE userPassword. It stores the password.
-- This attribute is as per rfc 2256.
"userPassword" ATTRIBUTE ::=
{
	Operation	ADD,
	SyntaxID	SYN_OCTET_STRING,
	Flags		{ DS_SIZED_ATTR, DS_SINGLE_VALUED_ATTR, DS_SYNC_IMMEDIATE},
	LowerBound	1,
	UpperBound	128,
	ASN1ObjID	{2 5 4 35}
}

-- Modifying OBJECT User. 
-- Unix password has to be stored with each user in NIS. 
Add it back again, if it was deleted
"User" OBJECT-CLASS ::=
{
   Operation   MODIFY,
   MayContain  {"userPassword"}
}

-- Modifying OBJECT Group.
-- Group object used in NIS should have Password.  
Add it back again, if it was deleted
"Group" OBJECT-CLASS ::=
{
   Operation   MODIFY,
   MayContain  {"userPassword"}
}

"zendmWakeUpPolicy" OBJECT-CLASS ::=
{
   Operation   MODIFY,
   MayContain  {"userPassword"}
}

"zendmWolService" OBJECT-CLASS ::=
{
   Operation   MODIFY,
   MayContain  {"userPassword"}
}

"zeninvRollUpPolicy" OBJECT-CLASS ::=
{
   Operation   MODIFY,
   MayContain  {"userPassword"}
}

"zeninvService" OBJECT-CLASS ::=
{
   Operation   MODIFY,
   MayContain  {"userPassword"}
}

END
--------------------------------------------------


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell