Re: ldapclient init with proxy

From: Erik C.J. Laan (news_at_elaan.dds.nl)
Date: 05/10/04


Date: Mon, 10 May 2004 21:19:33 +0200

Wolfgang Mair wrote:
> Hello,
>
> I've changed the default aci for my userRoot directory (dc=sunny,dc=de)
> for Anonymous access, from granting access to all users to the proxy
> user only. (To prevent everyone from reading my directory)
> Unfortunatelly now I'm not able to set up a client with the ldapclient
> init command shown below anymore.
>
> According to the logs in the access file of the ldap server, the client
> is still trying to connect and download the profile via anonymous user.
>
> So, how can I force the ldapclient init command to use the proxy account
> to set up the client host?
> As I found out, it is only a matter of the setup, once set up, the
> refresch of the profile runs fine. Because the client connects to the
> server and binds to proxyagent. But it doen't do this for the setup :-((
>
> Thank you
>
> Wolfgang
>
> Here's the command:
>
> ldapclient init -a proxypassword=proxy -a profileName=default \
> -a proxydn=cn=proxyagent,ou=profile,dc=sunny,dc=de \
> -a domainname=sunny.de 192.168.230.35
>
> And here is the output:
>
> Parsing proxydn=cn=proxyagent,ou=profile,dc=sunny,dc=de
> Parsing proxypassword=proxy
> Parsing profileName=default
> Parsing domainname=sunny.de
> Arguments parsed:
> domainName: sunny.de
> proxyDN: cn=proxyagent,ou=profile,dc=sunny,dc=de
> profileName: default
> proxyPassword: proxy
> defaultServerList: 192.168.230.35
> Handling init option
> About to configure machine by downloading a profile
> findBaseDN: begins
> findBaseDN: ldap not running
> findBaseDN: calling __ns_ldap_default_config()
> found 2 namingcontexts
> findBaseDN: __ns_ldap_list(NULL,
> "(&(objectclass=nisDomainObject)(nisdomain=sunny.de))"
> rootDN[0] dc=sunny,dc=de
> NOTFOUND:Could not find the nisDomainObject for DN dc=sunny,dc=de
> findBaseDN: __ns_ldap_list(NULL,
> "(&(objectclass=nisDomainObject)(nisdomain=sunny.de))"
> rootDN[1] o=NetscapeRoot
> NOTFOUND:Could not find the nisDomainObject for DN o=NetscapeRoot
> found_cxt = -1
> findBaseDN: Err exit
> Failed to find defaultSearchBase for domain sunny.de
> #

Can't help you, from my experience you need to grant anon access, but to
the configuration profile only. So you should add another ACI granting
anon access to the container with objectclass=nisDomainObject, the
ou=Profile container below that, and all profiles below that. For
Solaris 8 and patch 108993 < 13 you can use this targetfilter:

(|(objectClass=nisDomainObject)(ou=Profile)(objectClass=SolarisNamingProfile))

and for Solaris 8 with patch 108993 >14, Solaris 9 etc. you can use:

(|(objectClass=nisDomainObject)(ou=Profile)(objectClass=DUAConfigProfile))

This will only grant anon access to the data needed to install clients.
Another option is to install on 1 machine, and copy the files
/etc/nsswitch.conf, /etc/pam.conf, /var/ldap/ldap_client_file and
/var/ldap/ldap_client_cred to the machine you're doing a new install on.
You probably only need to adjust some values in
/var/ldap/ldap_client_cred and/or /var/ldap/ldap_client_file. Start
ldap_cachemgr and restart nscd to check, reboot to really activate.

HTH, Erik

P.S. I don't recommed the above with Sol8/patch108993<13 as this exposed
the (encrypted) password of the proxy-agent to anon access. With pathc
108993 > 14 and the DUA Config profiles the profiles don't contain the
password anymore.

-- 
---------------------------------------------------------------------------
Erik C.J. Laan				elaan at dds.nl
Please reply below the message,	 please cut unrelevant pieces from a reply.
---------------------------------------------------------------------------


Relevant Pages

  • RE: Lost my outlook contact... :(
    ... the network configuration is started from a web page located ... client computer, you will see a welcome page to invite you to start the ... local user profiles to the domain user profile. ... Before joining client computers to the network, ...
    (microsoft.public.windows.server.sbs)
  • Re: Help with configuration
    ... option cleared on the RDP-tcp connection Client properties tab for "Use ... If I do NOT specify a roaming profile path, do I still need to enable ... Users should logon to the workstation using their domain account ... Your GPO settings do not apply to your Terminal Server. ...
    (microsoft.public.windows.terminal_services)
  • Re: 2 notebooks 1 server. sbs domain or workgroup. fax forwarding. outlook sync.
    ... When you join a client compute to SBS domain, we can migrate the local user ... profile to domain user profile. ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • Re: 2 notebooks 1 server. sbs domain or workgroup. fax forwarding. outlook sync.
    ... computer account on SBS for the client: ... we do no need to create share folder for user profile on SBS. ...
    (microsoft.public.windows.server.sbs)
  • Re: 2000 server upgrade 20 SBS2003
    ... You also want to install the client application software on client computer ... For old domain profile or local profile, ... Restore a User Profile in Windows 2000 ...
    (microsoft.public.windows.server.sbs)