search cancel

Provisioning Server - Create template with etautil

book

Article ID: 242743

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

Trying to create account templates by using "etautil" but  having a problem. When execute the commands, etautil shows me an error message:

:ETA_E_0003<APO>, Active Directory Account Template 'PRUEBA_CREACION_MASIVO' creation failed: Error in 'First name' rule: unknown rule variable '640194TRIM(%UF% %UCU36%)'
:ETA_E_1337, ETAUTIL command failed  Wed May 25 11:29:15 2022

I'm executing the following command:

./etautil -d im -u etaadmin -p Mypassword add eTADSPolicyContainerName="Active Directory Policies,eTNamespaceName=CommonObjects" eTADSPolicy eTADSPolicyName="TEST_CREATE_MASSIVE" eTADSAccountName=%AC% eTADSaccountExpires=0 eTADSco=%UCOUNTRY% eTADScompany=%UCU76% eTADSdepartment=%UCU19% eTADSDescription=%UT% eTADSdisplayName="'%UF% %UCU36% %UL% %UCU34%'" eTADSemployeeID=%UCU05% eTADSemployeeNumber=%UCU02% eTADSemployeeType=%UCU40% eTADSfacsimileTelephoneNumber=%UFAX% eTADSgivenName="%$$TRIM(%UF% %UCU36%)%" eTADShomePhone=%UP% eTADSinfo=O365E1 eTADSinitials=%UMI% eTADSl=%UCU14% eTADSmail=%UCU90% eTADSmemberOf="CN=Allowed RODC Password Replication Group,CN=Users,DC=?" eTADSmobile=%UMP% eTADSpager=%UPAGE% eTADSphysicalDeliveryOfficeName=%UO% eTADSpostalCode=%UPC% eTADSsAMAccountName=%AC% eTADSsn="%$$TRIM(%UL% %UCU34%)%" eTADSst=%US% eTADSstreetAddress=%USA% eTADStelephoneNumber=%UCU48% eTADStitle=%UT% eTADSUniversalGroupOnly=0 eTADSuserPrincipalName=%UE% eTADSwwwHomePage=%UHP% eTDescription="TEST_CREATE_MASSIVE" eTPassword=%P% eTPropagateChanges=0 eTStrongSync=1 eTSuspended=0 eTADSobjectClass=user

I think that etautil is recognizing these characters "%$$" in different way:
eTADSgivenName="%$$TRIM(%UF% %UCU36%)%"

Customer requires to create a lot of account templates and it cannot be manually.

Please your help.

 

Environment

Release : 14.4

Component :

Cause

 need protect the "$" dollar in Linux

Resolution

 need protect the "$" dollar characters like this:

./etautil -d im -u etaadmin -p <password>  add eTADSPolicyContainerName="Active Directory Policies,eTNamespaceName=CommonObjects" eTADSPolicy eTADSPolicyName="PRUEBA_CREACION_MASIVO" eTADSAccountName=%AC% eTADSaccountExpires=0 eTADSco=%UCOUNTRY% eTADScompany=%UCU76% eTADSdepartment=%UCU19% eTADSDescription=%UT% eTADSdisplayName="'%UF% %UCU36% %UL% %UCU34%'" eTADSemployeeID=%UCU05% eTADSemployeeNumber=%UCU02% eTADSemployeeType=%UCU40% eTADSfacsimileTelephoneNumber=%UFAX% eTADSgivenName="%\$\$TRIM(%UF% %UCU36%)%" eTADShomePhone=%UP% eTADSinfo=O365E1 eTADSinitials=%UMI% eTADSl=%UCU14% eTADSmail=%UCU90% eTADSmemberOf="CN=Allowed RODC Password Replication Group,CN=Users,DC=?" eTADSmobile=%UMP% eTADSpager=%UPAGE% eTADSphysicalDeliveryOfficeName=%UO% eTADSpostalCode=%UPC% eTADSsAMAccountName=%AC% eTADSsn="%\$\$TRIM(%UL% %UCU34%)%" eTADSst=%US% eTADSstreetAddress=%USA% eTADStelephoneNumber=%UCU48% eTADStitle=%UT% eTADSUniversalGroupOnly=0 eTADSuserPrincipalName=%UE% eTADSwwwHomePage=%UHP% eTDescription="PRUEBA_CREACION_MASIVO" eTPassword=%P% eTPropagateChanges=0 eTStrongSync=1 eTSuspended=0 eTADSobjectClass=user