Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 6

Previous Tutorial :

  1. Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 1, Installing Base System & Configuring Samba
  2. Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 2, Configuring OpenLDAP
  3. Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 3, Configuring smbldap-tools & LDAP Account Manager
  4. Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 4, Configuring Dynamic DHCP & DNS Server
  5. Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 5, Testing Samba & Configuring Client

ERROR MESSAGE AND HOW TO SOLVE THE PROBLEM

Samba PDC+OpenLDAP is one of the longest tutorial. These are maybe a typo or incomplete configuration, although I’ve checked and proof read for the typo. Please let me know if you found something problem while trying the tutorial. I’ll be really appreciate to the suggestion to make it as usable as it should be.

Following are some error messages that might be found when doing the configuration. The collection came from my notes while installing and  configuring Samba PDC+OpenLDAP for the first time.

  1. Missing Perl Library for LDAP while trying to run smbldap-tools
    smbldap-useradd -m -a root
    

    Can’t locate Net/LDAP.pm in @INC (@INC contains: /usr/sbin/
    /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
    /usr/lib/perl5 /site_perl/5.10.0/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
    /usr/lib/perl5 /vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at
    /usr/sbin//smbldap_tools.pm line 26.
    BEGIN failed–compilation aborted at /usr/sbin//smbldap_tools.pm line 26.
    Compilation failed in require at /usr/sbin/smbldap-useradd line 30.
    BEGIN failed–compilation aborted at /usr/sbin/smbldap-useradd line 30.

    Solution : Install perl-ldap with zypper or YAST

  2. Missing Perl library for UTF-8

    Can’t locate Unicode/MapUTF8.pm in @INC (@INC contains: /usr/sbin/
    /usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
    /usr/lib/perl5 /site_perl/5.10.0/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
    /usr/lib/perl5 /vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl .) at /usr/sbin//smbldap_tools.pm line 28,
    line 275.
    BEGIN failed–compilation aborted at /usr/sbin//smbldap_tools.pm line 28, line 275.
    Compilation failed in require at /usr/sbin/smbldap-useradd line 30, line 275.
    BEGIN failed–compilation aborted at /usr/sbin/smbldap-useradd line 30, line 275.

    Solution : Install perl-Unicode-MapUTF8 with zypper or YAST

  3. Error while running smbldap-useradd -m -a root command

    server:/home/vavai/Desktop/openldap-vavai # smbldap-useradd -m -a root
    Error: modifications require authentication at /usr/sbin//smbldap_tools.pm line
    1187, line 466.

    Solution : Check /etc/smbldap-tools/smbldap_bind.conf, domain name (dc=domainname,dc=net) should be correct

    server:/home/vavai/Desktop/openldap-vavai # smbldap-useradd -m -a root
    Error: Insufficient access at /usr/sbin//smbldap_tools.pm line 1187, line 466.

    Solution : Check /etc/smbldap-tools/smbldap_bind.conf, make sure it has valid credentials for LDAP (cn=Manager,
    dc=domainname,dc=net)

  4. Error message on running smbpasswd -a
    smbpasswd -a
    

    WARNING: Your ‘passdb backend’ configuration includes multiple backends. This
    is deprecated since Samba 3.0.23. Please check WHATSNEW.txt or the section ‘Passdb
    Changes’ from the ChangeNotes as part of the Samba HOWTO collection. Only the first
    backend (ldapsam:”ldap://server.vavai.net”) is used. The rest is ignored.
    add_new_domain_info: failed to add domain dn= sambaDomainName=VAVAI,dc=vavai,dc=net with: Insufficient access
    no write access to parent
    smbldap_search_domain_info: Adding domain info for VAVAI failed with NT_STATUS_UNSUCCESSFUL

    Solution : Check your password, use the credential user : Manager with ldap password

  5. Error message : Connection Refused
    smbclient -L localhost -N
    

    Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)

    Solution : Check your /etc/hosts and make sure you have valid permission on /data/samba/profiles(or any share folder for samba profiles)

  6. Error message : Error looking for next uid in sambaDomainName
    smbldap-useradd -m -a root
    

    Error looking for next uid in sambaDomainName=VAVAI.NET,dc=vavai,dc=net:
    No such object at /usr/sbin //smbldap_tools.pm line 1174, line 466.

    Solution : Change the following line sambaUnixIdPooldn on  /etc/smbldap-tools to be like below :

    sambaUnixIdPooldn="sambaDomainName=VAVAI.NET,ou=Domains,${suffix}"
    

If you have another error message, let’s discuss it on comment form. I’ll be glad to add the list of error message to help anyone implementing Samba PDC+OpenLDAP on openSUSE sucessfully.

Note : Forgive me for any misspelling and/or grammar.

Related Entries

2 Responses for “Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 6”

  1. [...] have written Samba PDC+OpenLDAP tutorial on openSUSE on previous article but the tutorial are based on manual configuration and need too many steps to [...]

  2. Reason says:

    When I run smbclient -L localhost -N I am getting the error “WARNING: The “printer admin” option is deprecated
    Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)”

    The printer admin issue is ok but the connection to localhost is stopping samba from running. I have modified my /etc/hosts file as recommended but that does nothing. Samba will simply not start when “passdb backend = ldapsam:ldap://127.0.0.1″ is used.

Leave a Reply

About Vavai

Masim Vavai Sugianto Masim Vavai Sugianto, Indonesian, male, 32 years old, born and live in Bekasi-West Java, a small town near Jakarta – main city of Indonesia – since 17 May 1976. Founder of Indonesian openSUSE and Zimbra Community, an adventure, travelling and book lover.



I live in a tropical country, Indonesia that only has two seasons, dry season and rainy season. I love the dry season with bright sunshine and rare rain…There is a joke about the seasons in Indonesia. Indonesia is known as a country with so many season, ie : durian season, mango season, married season and much more...



ContactI'm currently working as an IT support for a small company based on Jakarta. My career has led me to specialize in Sysadmin, networking and software implementation with current focus on Linux and open source area. I have experience on MRP, ERP, Gemba Kaizen, Just in Time, Six Sigma and TQC/TQM. Please use my contact page if you wish to contact me.
Log in - BlogNews Theme by Gabfire themes