By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,755 Members | 1,264 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,755 IT Pros & Developers. It's quick & easy.

Delete an LDAP Attribute

P: n/a
Hi!

I am trying to delete an LDAP attribute using VB.NET (2003) but cannot find
any syntax that supports this operation. I need to remove (say) the 'company'
attribute (not one of the mandatory ones)

Has anyone got any ideas?

Thanks

Phil
--
Phil Kelly
Infant Technology Ltd
Directory Services Management Software
http://www.infatech.com
Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Phil,

If the LDAP data is in XML format you can use the XMLElement class'
RemoveAttribute method.

Read about it here:
http://msdn.microsoft.com/library/de...ibutetopic.asp

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"Phil Kelly" <do*****************@infatech.com> wrote in message
news:36**********************************@microsof t.com...
Hi!

I am trying to delete an LDAP attribute using VB.NET (2003) but cannot
find
any syntax that supports this operation. I need to remove (say) the
'company'
attribute (not one of the mandatory ones)

Has anyone got any ideas?

Thanks

Phil
--
Phil Kelly
Infant Technology Ltd
Directory Services Management Software
http://www.infatech.com

Nov 21 '05 #2

P: n/a
>

Hi!

I am trying to delete an LDAP attribute using VB.NET (2003) but cannot find any syntax that supports this operation. I need to remove (say) the 'company' attribute (not one of the mandatory ones)

Has anyone got any ideas?
Thanks

Phil
--
Phil Kelly
Infant Technology Ltd Directory Services Management Software http://www.infatech.com


Using IPWorks you can delete one or more
attributes like so:

ldap.AttrCount = 1
ldap.AttrType(0) =
"company"
ldap.AttrValue(0) = "KellyCorp"
ldap.AttrModOp(0) =
amoDelete
ldap.Modify()

More here:
http://www.nsoftware.com/kb/tutorials/ldap.aspx
Regards,
Lance R.
/n
software
http://www.nsoftware.com/

-

Nov 21 '05 #3

P: n/a
Hi Mike

Thanks for your reply. The LDAP data is not being presented in XML format
(?) but just as a directoryentry with multiple attributes associated.

All I need to do is to delete one of these attributes.....

Phil

"Mike McIntyre" wrote:
Phil,

If the LDAP data is in XML format you can use the XMLElement class'
RemoveAttribute method.

Read about it here:
http://msdn.microsoft.com/library/de...ibutetopic.asp

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"Phil Kelly" <do*****************@infatech.com> wrote in message
news:36**********************************@microsof t.com...
Hi!

I am trying to delete an LDAP attribute using VB.NET (2003) but cannot
find
any syntax that supports this operation. I need to remove (say) the
'company'
attribute (not one of the mandatory ones)

Has anyone got any ideas?

Thanks

Phil
--
Phil Kelly
Infant Technology Ltd
Directory Services Management Software
http://www.infatech.com


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.