LVDAs Unregistred: "Unable to Establish Initial Directory Context and Search LDAP Server"
                    
                
                
                    
                        book
                        
Article ID: CTX559540
                        
                    
                    
                        calendar_today
                        
Updated On: 
                    
                 
                
                    
                
                    
                    
                        
                            
Description
                        
                        
                            Some LVDAs are unregistered in the customer environment, the following error can be seen in the /var/log/xdl/jproxy.log:
[ERROR] [31] - LdapPrivilegedAction.Run: Unable to establish initial directory context and search LDAP server 'ldap://XXX:389'. Error: XXX:389: [LDAP: error code 34 - 0000208F Err: DSID-03100231, problem 2006 (BAD_NAME), data 8350, best match of: 'XXX:389' ]
                         
                     
                    
                    
                    
                    
                        
                            
                                
Resolution
                            
                            
                                Modify the LDAP search based on the issued LVDA and restart the citrix services:
1. sudo /opt/Citrix/VDA/bin/ctxreg create -k "HKLM\Software\Citrix\VirtualDesktopAgent" -t "REG_SZ" -v "LDAPComputerSearchBase" -d "" --force    ###Revert to default
2. sudo systemctl restart ctxjproxy ctxvda
Problem Cause
Customer set wrong LDAP search base.
> sudo /opt/Citrix/VDA/bin/ctxreg dump | grep -i LDAPComputerSearchBase
create -k "HKLM\Software\Citrix\VirtualDesktopAgent" -t "REG_SZ" -v "LDAPComputerSearchBase" -d "XXX:389" --force
                             
                         
                        
                    
                        
                            
                                
Issue/Introduction
                            
                            
                                Misconfigure LDAPComputerSearchBase will cause LVDA fail to obtain ComputerSID, which will lead to unregistered.
                            
                         
                        
                    
                    
                    
                
                    
                        
                            Was this article helpful?
                        
                        
                            
                                thumb_up
                                Yes
                            
                            
                                thumb_down
                                No