From tod.detre at maine.edu Wed Aug 18 10:18:28 2010 From: tod.detre at maine.edu (Tod Detre) Date: Wed, 18 Aug 2010 10:18:28 -0400 Subject: [activeldap-discuss] activeldap confusing mail and eMailAddress Message-ID: Hello, I'm trying to use activeldap to create new users in our Novell eDirectory. I have everything working except adding the email address. I've found that eDirectory has two different attributes 'Mail' and 'eMailAddress'. The one I want to modify is 'Mail'. If I load a current user and do: user.mail = 'blah at blah.net' it works fine. However, if I create a new user and try to add the mail attribute, it fails with an "Invalid Syntax". I looked in the logs (this is a rails app) and found that it looks like it's trying to populate the eMailAddress attribute, not the Mail attribute. The invalid syntax error is because eDirectory has a special format for eMailAddress that is something like 3#blah at blah.net this tells eDirectory that it's an smtp address, not a groupwise or one of the other options. If I set eMailAddress directly with the correct format it works fine: user.eMailAddress = '3#blah at blah.net' This will also save: user.mail = '3#blah at blah.net' However, when I do an ldapsearch on the user that is created with the above, it has the eMailAddress populated, not mail. I don't actually care at all about the eMailAddress attribute. We don't use it in our environment. I do need the Mail attribute set correctly. Does anyone know why activeldap is confusing the attributes? If so, do you know how to fix it? Thanks, Tod Detre From John.Sheahan at priceline.com Wed Aug 18 10:51:53 2010 From: John.Sheahan at priceline.com (Sheahan, John) Date: Wed, 18 Aug 2010 10:51:53 -0400 Subject: [activeldap-discuss] activeldap confusing mail and eMailAddress In-Reply-To: References: Message-ID: <09F205C089889344BDDB6FB253D41721699E379139@NW-E2K7-ECL1.corp.pcln.com> I set my email addresses with the userPrincipalName attribute...did you try that? -----Original Message----- From: ruby-activeldap-discuss-bounces at rubyforge.org [mailto:ruby-activeldap-discuss-bounces at rubyforge.org] On Behalf Of Tod Detre Sent: Wednesday, August 18, 2010 10:18 AM To: ruby-activeldap-discuss at rubyforge.org Subject: [activeldap-discuss] activeldap confusing mail and eMailAddress Hello, I'm trying to use activeldap to create new users in our Novell eDirectory. I have everything working except adding the email address. I've found that eDirectory has two different attributes 'Mail' and 'eMailAddress'. The one I want to modify is 'Mail'. If I load a current user and do: user.mail = 'blah at blah.net' it works fine. However, if I create a new user and try to add the mail attribute, it fails with an "Invalid Syntax". I looked in the logs (this is a rails app) and found that it looks like it's trying to populate the eMailAddress attribute, not the Mail attribute. The invalid syntax error is because eDirectory has a special format for eMailAddress that is something like 3#blah at blah.net this tells eDirectory that it's an smtp address, not a groupwise or one of the other options. If I set eMailAddress directly with the correct format it works fine: user.eMailAddress = '3#blah at blah.net' This will also save: user.mail = '3#blah at blah.net' However, when I do an ldapsearch on the user that is created with the above, it has the eMailAddress populated, not mail. I don't actually care at all about the eMailAddress attribute. We don't use it in our environment. I do need the Mail attribute set correctly. Does anyone know why activeldap is confusing the attributes? If so, do you know how to fix it? Thanks, Tod Detre _______________________________________________ ruby-activeldap-discuss mailing list ruby-activeldap-discuss at rubyforge.org http://rubyforge.org/mailman/listinfo/ruby-activeldap-discuss