HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How can I use ldapsearch at HPUX
Operating System - Linux
        1839880
        Members
    
    
        3526
        Online
    
    
        110156
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 05:33 PM
01-30-2007 05:33 PM
			
				
					
						
							How can I use ldapsearch at HPUX
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						When I use ./ldapsearch -x -b 'dc=stooges,dc=com' '(objectclass=*)' command it got the following error.
ldap_search: Can't connect to the LDAP server - Connection refused
How should me do?
Thank you
		
		
	
	
	
ldap_search: Can't connect to the LDAP server - Connection refused
How should me do?
Thank you
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2007 09:50 PM
01-30-2007 09:50 PM
			
				
					
						
							Re: How can I use ldapsearch at HPUX
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Shalom,
Most ldap servers requires an admin id and password to do the ldapsearch.
$CMD = "/usr/local/bin/ldapsearch" ;
$DC = "ldap.is.ndr.com" ;
$DN = "CN=username\\, Somerset,OU=users,OU=Jerusalem,DC=is,DC=ndr,DC=com" ;
$PASSWD = "Schobagel123" ;
$ROOT_DOMAIN = "dc=ndr,dc=com" ;
$cmd = "$CMD -x -p $PORT -z 0 -h $DC -D \"$DN\" -w $PASSWD -b \"$ROOT_DOMAIN\" \"$EXPR\" $ATTR" ;
We ran this in perl but the principel is the same.
SEP
					
				
			
			
				
		
		
	
	
	
Most ldap servers requires an admin id and password to do the ldapsearch.
$CMD = "/usr/local/bin/ldapsearch" ;
$DC = "ldap.is.ndr.com" ;
$DN = "CN=username\\, Somerset,OU=users,OU=Jerusalem,DC=is,DC=ndr,DC=com" ;
$PASSWD = "Schobagel123" ;
$ROOT_DOMAIN = "dc=ndr,dc=com" ;
$cmd = "$CMD -x -p $PORT -z 0 -h $DC -D \"$DN\" -w $PASSWD -b \"$ROOT_DOMAIN\" \"$EXPR\" $ATTR" ;
We ran this in perl but the principel is the same.
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 03:46 PM
01-31-2007 03:46 PM
			
				
					
						
							Re: How can I use ldapsearch at HPUX
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						What do you mean Stephen ???
You guide me to do that you say is it?
		
		
	
	
	
You guide me to do that you say is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2007 05:41 PM
01-31-2007 05:41 PM
			
				
					
						
							Re: How can I use ldapsearch at HPUX
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Shalom,
What I mean is that I think one of two things is happening.
1) Your ldap server is not accepting the connection. Which could mean:
a) Its not listening on the right port and is miconfigured.
b) Perhaps a firewall is blocking access
2) Your ldap server wants authetnication. My code above is an example of how to provide an ldap server with proper authentication when requesting information.
SEP
		
		
	
	
	
What I mean is that I think one of two things is happening.
1) Your ldap server is not accepting the connection. Which could mean:
a) Its not listening on the right port and is miconfigured.
b) Perhaps a firewall is blocking access
2) Your ldap server wants authetnication. My code above is an example of how to provide an ldap server with proper authentication when requesting information.
SEP
	Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
			
			
				
			
			
			
			
			
			
		Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP
