Hello,

I'm need to add values to an attribut type of String[] (String Array).
The ldap attributs breanch looks like.
sifWLMSISDNList:AAA|111+
sifWLMSISDNList:AAA|112+
sifWLMSISDNList:AAA|113+

An i need to add an values
sifWLMSISDNList:AAA|114+

My code are the follow:

while(ienum.MoveNext())
{
attribute=(LdapAttribute)ienum.Current;
string attributeName = attribute.Name;

string attributeVal = "";if (attributeName.ToUpper() ==
AePONADsetinationListsParameter.ToUpper())
{
for (int flag = 0; flag < attribute.size() ;flag++)
{
attributeVal = attribute.StringValueArray[flag];
Console.WriteLine( attributeName + "value:" + attributeVal);
}
attribute.addValue("international||666+"); //Devil phone number


LdapAttribute ADD_sifWLMSISDNList_Value = new LdapAttribute
( "sifWLMSISDNList", "international||666+");

modList.Add(new LdapModification(LdapModification.REPLACE, attribute));
LdapModification[] mods = new LdapModification[modList.Count];
Type mtype=Type.GetType("Novell.Directory.LdapModificat ion");
mods = (LdapModification[])modList.ToArray(typeof(LdapModification));
string DnFull= Filter + "," + Dn;
try
{
ldapConn.Modify (DnFull, mods );
}
catch(LdapException E)
{
Console.Write(E.ToString());
}
}
}
}
ldapConn.Disconnect();