ListFirst(email, '@')

HTH

Dominic


On 18/03/2008, Ian Vaughan <[EMAIL PROTECTED]> wrote:
>
> Hi Mike
>
> I have also added the AD attribute userprinciplename but it returns the
> full email address that is contained in this attribute
>
> i.e. [EMAIL PROTECTED]
>
> How can I extract just the first part 'ian' to be displayed in the CSV
>
> Any ideas?
>
> -----Original Message-----
> From: Dawson, Michael [mailto:[EMAIL PROTECTED]
> Sent: 11 March 2008 17:25
> To: CF-Talk
> Subject: RE: Coldfusion and Active Directory
>
> Hopefully, your CSV file will have one line for each employee.  If so,
> then each line should contain that employee's telephone number.  When
> you loop over the CSV recordset, everything should be "aligned"
> correctly.
>
> When you modify a directory object, the ATTRIBUTES attribute, of the
> CFLDAP tag, contains the object's attributes that you want to update.
> So, that line should be correct as long as you are setting
> "newAttributes" earlier in your code.
>
> m!ek
>
> -----Original Message-----
> From: Ian Vaughan [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2008 10:26 AM
> To: CF-Talk
> Subject: RE: Coldfusion and Active Directory
>
> Hi Mike
>
> Thanks for that, and the point you made about the object class!
>
> Before I run the script against active directory, I would just like to
> check one or two points.
>
>
> In the second CFLDAP I currently have
>
> ......
> <cfldap
> action="modify"
> modifyType="replace"
> attributes="#newAttributes#"
> DN="#ldapResults.distinguishedName#"
> server="server"
> port="389"
> username="username"
> password="password">
> </cfif>
>
> </cfloop>
>
>
> Is this line correct ? attributes="#newAttributes#"
>
>
> and how would this CFLDAP statement know to update the phone number of
> employee A with the phone number listed for employee A in the CSV file ?
> the same for Employee B etc
>
>
> Regards,
>
> Ian
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301480
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to