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
    [code language=’cpp’]
    smbldap-useradd -m -a root
    [/code]

    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
    [code language=’cpp’]
    smbpasswd -a
    [/code]

    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
    [code language=’cpp’]
    smbclient -L localhost -N
    [/code]

    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
    [code language=’cpp’]
    smbldap-useradd -m -a root
    [/code]

    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 :
    [code language=’cpp’]
    sambaUnixIdPooldn=”sambaDomainName=VAVAI.NET,ou=Domains,${suffix}”
    [/code]

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.

6 thoughts on “Tutorial : Samba PDC + OpenLDAP on openSUSE 11.1 – Part 6”
  1. 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.

  2. 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.

  3. I can’t connect windows xp. When I write root and my password I get error :
    “unknown user name or password unknown”

  4. I can’t connect windows xp. When I write root and my password I get error :
    “unknown user name or password unknown”

Leave a Reply to Reason Cancel reply

Your email address will not be published.