<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">We have a nightly import of data from Active Directory using “update_users” as per
<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FLDAP&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C38865df2caf34ba2e61c08d65c5ec9da%7C4a5378f929f44d3ebe89669d03ada9d8%7C1&amp;sdata=WlwleGQ1szXt%2F1PmwDPu82NsXkQJjtAopTDDk%2FnetV8%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/LDAP" shash="Mo0YFkzKu23g9M0ehkb/Gdvs9gFTXhSrjlsIzpOIsvrUUd7ewlnkuaBnD6zORl95E2NG2cTChfuiz5H7RVVXUY4Ks3sDarhrckiNTY+M+ugNstsEs7VsojrJ4lMmC10nbhhFy7xFVN/x/X50cYYznFOIkthosuQpvUkV2oPtc5k=">https://wiki.eprints.org/w/LDAP</a>.&nbsp; I would like to explore amending this script (importing different AD attributes), is it possible to run it against a specific user only rather than the default of everyone?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">In “my_args’ there is a filter option, I wondered if this could be changed to match ldaplookup which in our file is set to sAMAccountName=$username, I would replace $username with an actual user name.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Ian<o:p></o:p></span></p>
</div>
</body>
</html>