Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2782 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [Debian] samba ldap et creation d'utilisateurs problème

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Debian] samba ldap et creation d'utilisateurs problème

n°940716
verazano
Posté le 06-08-2007 à 10:19:56  profilanswer
 

Bonjour,
 
Dans le cadre de mon stage j'ai dû mettre en place samba en pdc avec ldap. Mais j'ai deux gros problèmes :
 
- La création d'utilisateur par les smbldap-tools ce passent très bien (je vois bien mon utilisateur dans la base ldap avec getent passwd) mais lorsque je veux me connecter avec le compte cela foire (login inconnu).
De plus j'ai remarqué que l'utilisateur etait inconnu en tant que compte unix.
 
-J'ai aussi 2 utilisateurs sans nom de crée et je n'arrive pas à savoir comment ils ont été crées , ni comment les supprimer ( à part à la bourrin en editant vipw ).
 
J'ai pourtant bien suivi le tuto sur http://damstux.free.fr/wiki/index.php?title=Accueil
Quel solution avez vous à me proposer ?
 
Merci de votre aide

mood
Publicité
Posté le 06-08-2007 à 10:19:56  profilanswer
 

n°940815
fighting_f​alcon
Posté le 06-08-2007 à 16:41:05  profilanswer
 

pb de login : il faut modifier pam
pas de compte unix : il faut modifier nsswitch
 
http://damstux.free.fr/wiki/index. [...] ation_LDAP
 
c'est quoi les noms de tes users créés par miracle ?

n°940826
verazano
Posté le 06-08-2007 à 16:58:54  profilanswer
 

les noms de mes users crées par miracle sont pas_de_nom  :D  
c'est simple je résumerai cela par un utilisateur invisible  
 
Bon je vais vérifier mon pam  
 
pour le nsswitch j'ai essayé avec files cela n'a rien changé :
 

Citation :

# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
 
passwd:         compat ldap
group:          compat ldap
shadow:         compat ldap
 
hosts:          files dns
networks:       files
 
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
 
netgroup:       nis


 
edit :  
 
enfin cela marche !  
mais j'ai encore un problème avec proftpd cette fois.
Je précise qu'avec certain utilisateur cela marche très bien.
 
Voila l'erreur dans le log de proftpd :
 

Citation :


Aug 06 17:44:38 cicsrv11 proftpd[18882] localhost (172.xx.x.xx[172.xx.xx.xx]): mod_ldap: pr_ldap_connect(): ldap_simple_bind() as cn=xxx,dc=xxxxx,dc=xxx failed: Invalid credentials
Aug 06 17:44:38 cicsrv11 proftpd[18882] localhost (172.xx.x.xx[172.xx.x.xx]): no such user 'jdoo'
Aug 06 17:44:38 cicsrv11 proftpd[18882] localhost (172.xx.x.xx[172.xx.x.xx]): USER jdoo: no such user found from 172.xx.xx.xx [172.xx.x.xx] to 172.xx.x.xx:21
Aug 06 17:44:38 cicsrv11 proftpd[18882] localhost (172.xx.x.xx[172.xx.x.xx]): FTP session closed.


 
et voici mon fichier de conf :
 

Citation :


 
#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
#  
 
# Includes DSO modules
Include /etc/proftpd/modules.conf
 
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6    off
 
ServerName   "Debian"
ServerType   standalone
DeferWelcome   off
 
 
MultilineRFC2228  on
DefaultServer   on
ShowSymlinks   on
 
TimeoutNoTransfer  600
TimeoutStalled   600
TimeoutIdle   1200
 
DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                 "-l"
 
DenyFilter   \*.*/
 
# rajouté par  le 31/07/07
DefaultRoot ~
 
 
# Port 21 is the standard FTP port.
Port    21
 
# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts                    49152 65534
 
# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances   30
 
# Set the user and group that the server normally runs at.
User    proftpd
Group    nogroup
 
# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask    022  022
# Normally, we want files to be overwriteable.
AllowOverwrite   on
 
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
# PersistentPasswd  off
 
# Be warned: use of this directive impacts CPU average load!
#
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
# UseSendFile   off
 
TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log
 
<IfModule mod_tls.c>
TLSEngine off
</IfModule>
 
<IfModule mod_quota.c>
QuotaEngine on
</IfModule>
 
<IfModule mod_ratio.c>
Ratios on
</IfModule>
 
 
# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?p [...] 2004-10-02
# It is on by default.  
<IfModule mod_delay.c>
DelayEngine off
IdentLookups off
UseReverseDNS off
</IfModule>
 
<IfModule mod_ctrls.c>
ControlsEngine        on
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>
 
<IfModule mod_ctrls_admin.c>
AdminControlsEngine on
</IfModule>
 
# A basic anonymous configuration, no upload directories.
 
# <Anonymous ~ftp>
#   User    ftp
#   Group    nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias   anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser on ftp
#   DirFakeGroup on ftp
#  
#   RequireValidShell  off
#  
#   # Limit the maximum number of anonymous logins
#   MaxClients   10
#  
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
#   DisplayLogin   welcome.msg
#  DisplayFirstChdir  .message
#  
#   # Limit WRITE everywhere in the anonymous chroot
#  <Directory *>
#    <Limit WRITE>
#       DenyAll
#    </Limit>
#   </Directory>
#  
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask    022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
#  
#</Anonymous>
 
 
#configuration pour LDAP  
 
LDAPServer localhost
LDAPDoAUTH on "cn=Users,dc=cicoph,dc=org"
LDAPDNInfo  cn=admin,dc=pioh,dc=org  pioh
 


Message édité par verazano le 06-09-2008 à 13:43:52

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  [Debian] samba ldap et creation d'utilisateurs problème

 

Sujets relatifs
Apache, SSL et packages Debian Etchproblème avec john the ripper
[Debian/Packages] Exécution des programmes en tant que rootGros probleme avec Linux et Window
Debian etch - GDM - nvidia - Berylprobleme de boot
[SAMBA] gestion des espaces[Debian] Differnece entre paquet, ex : dia
Debian Etch, problèmes avec APT[ Debian Etch ] Question sur update-rc.d
Plus de sujets relatifs à : [Debian] samba ldap et creation d'utilisateurs problème


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR