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

 


 Mot :   Pseudo :  
  Aller à la page :
 
 Page :   1  2  3  4  5  ..  22  23  24  25  26  27
Auteur Sujet :

ldap / samba - guide - CA MARCHE !! WIKI dispo

n°778815
dam1330
...
Posté le 04-02-2006 à 18:19:08  profilanswer
 

Reprise du message précédent :
ah tiens lol, c'est mon pc ca shuttle, tu as mis mes fichiers de config, vas voir dans ceux que tu as copiés.
 
sinon, essaye en recommancant tout:
 
efface ta base ldap:
 
stopper serveur samba et ldap
rm -R /var/lib/slapd
rm -R /var/lib/ldap
rm /var/lib/samba/secrets.tdb
 
puis
 
apt-get install --reinstall slapd
smbpasswd -w motdepasseroot
on relance samba
smbldap-populate

mood
Publicité
Posté le 04-02-2006 à 18:19:08  profilanswer
 

n°778816
metatrone
Posté le 04-02-2006 à 18:25:57  profilanswer
 

oui j avais bien repris tes fichiers de conf, j ai testé de modif le nom netbios, et lors du get netlocalsid il ressort bien ce nom la p
 
bon j'avais deja testé de tout casser et de tout re installer, sans resultat :/
 
je vais re tenter, merci de l aide :)

n°778830
metatrone
Posté le 04-02-2006 à 19:23:52  profilanswer
 


Code :
  1. 1.
  2.       smbldap-populate
  3.    2.
  4.       Using workgroup name from smb.conf: sambaDomainName=workin
  5.    3.
  6.       Use of uninitialized value in string ne at /usr/sbin/smbldap-populate line 93.-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  7.    4.
  8.       => Warning: you must update smbldap.conf configuration file to :
  9.    5.
  10.       => sambaUnixIdPooldn parameter must be set to "sambaDomainName=workin,dc=work,dc=com"
  11.    6.
  12.       -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  13.    7.
  14.       Using builtin directory structure
  15.    8.
  16.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 173.
  17.    9.
  18.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 237.
  19.   10.
  20.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 237.
  21.   11.
  22.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 275.
  23.   12.
  24.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 275.
  25.   13.
  26.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 275.
  27.   14.
  28.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 275.
  29.   15.
  30.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 275.
  31.   16.
  32.       Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 275.
  33.   17.
  34.       entry dc=work,dc=com already exist.
  35.   18.
  36.       adding new entry: ou=Users,dc=work,dc=com
  37.   19.
  38.       adding new entry: ou=Groups,dc=work,dc=com
  39.   20.
  40.       adding new entry: ou=Machines,dc=work,dc=com
  41.   21.
  42.       adding new entry: ou=Idmap,dc=work,dc=com
  43.   22.
  44.       entry sambaDomainName=workin,dc=work,dc=com already exist. Updating it...
  45.   23.
  46.       failed to modify entry: sambasid: value #0 invalid per syntax at /usr/sbin/smbldap-populate line 453, <GEN1> line 7.
  47.   24.
  48.       adding new entry: uid=Administrator,ou=Users,dc=work,dc=com
  49.   25.
  50.       adding new entry: uid=nobody,ou=Users,dc=work,dc=com
  51.   26.
  52.       adding new entry: cn=Domain Admins,ou=Groups,dc=work,dc=com
  53.   27.
  54.       adding new entry: cn=Domain Users,ou=Groups,dc=work,dc=com
  55.   28.
  56.       adding new entry: cn=Domain Guests,ou=Groups,dc=work,dc=com
  57.   29.
  58.       adding new entry: cn=Domain Computers,ou=Groups,dc=work,dc=com
  59.   30.
  60.       adding new entry: cn=Administrators,ou=Groups,dc=work,dc=com
  61.   31.
  62.       adding new entry: cn=Print Operators,ou=Groups,dc=work,dc=com
  63.   32.
  64.       adding new entry: cn=Backup Operators,ou=Groups,dc=work,dc=com
  65.   33.
  66.       adding new entry: cn=Replicators,ou=Groups,dc=work,dc=com


 
voila j ai tout refait sur une image vierge, suit a la lettre le tuto et ca me clake toujours la meme erreur :/
savez vous a quoi correspond l'erreur :
 

Code :
  1. failed to modify entry: sambasid: value #0 invalid per syntax at /usr/sbin/smbldap-populate line 453, <GEN1> line 7.

n°778841
dam1330
...
Posté le 04-02-2006 à 20:23:39  profilanswer
 

supprime la ligne que je t'ai dit de mettre dans smbldap.conf.
 
tu as une debian ? qelle version ?
 
 
sinon il existe d'autres scripts qui se comportent comme les smbldap-tools:
 
http://linuxfr.org/2006/01/06/20167.html
 
personnelement je n'ai jamais eu ce probleme, j'ai mis en place ma solution sur plusieurs systemes et tout marchait nickel.

n°778843
metatrone
Posté le 04-02-2006 à 20:38:46  profilanswer
 

je suis sur debian stable 3.1, derniere version (l ancienne sarge), tout comme toi non ?

n°778844
dam1330
...
Posté le 04-02-2006 à 20:39:29  profilanswer
 

non je suis en sid

n°778855
dam1330
...
Posté le 04-02-2006 à 21:48:03  profilanswer
 

c'est bizarre quand meme ces erreurs lors de l'execution du script, essaye de recuperer une version plus recente, un paquet testing ou sid

n°779499
metatrone
Posté le 06-02-2006 à 23:59:18  profilanswer
 

up
 
dam quelle est ta version de slapd ?
 
car la mienne est la 2.2.23-8 sur stable 3.1, et je n en ai pas vu de plus recente.


Message édité par metatrone le 06-02-2006 à 23:59:41
n°779521
dam1330
...
Posté le 07-02-2006 à 08:13:33  profilanswer
 

Source: openldap2.2
Version: 2.2.26-5
 
mais le probleme vient peut etre du paquet smbldap-tools. ma version est Version: 0.9.2-3

n°779597
Junt
Posté le 07-02-2006 à 12:19:28  profilanswer
 

Quelqu'un a t-il une idée de la sortie de Samba 4?
Car je ne sais pas si ca vaut le coup de commencer mon projet avec Ldap et Samba 3 au vue des fonctionnalités de Samba4

Code :
  1. Samba 4 intègre désormais ses propres serveurs LDAP / CLDAP et gère parfaitement la réplication WINS pour une compatibilité totale avec Active Directory. Dans le même esprit, Kerberos est tout autant supporté.
  2. Cette version permet déjà de créer un Contrôleur de Domaine Active Directory avec authentification des clients sous Windows XP, mais sans le support de l'impression.


 
Si vous avez des dates ou si vous avez deja testé la version, merci de me faire signe  :)  

mood
Publicité
Posté le 07-02-2006 à 12:19:28  profilanswer
 

n°779609
dam1330
...
Posté le 07-02-2006 à 12:44:46  profilanswer
 

oui j'ai testé, c'est loin de fonctionner en production, ya pas le support de l'impression. aucun outil n'a été developpé pour administrer.
 
ya un outil qui essaye de migrer notre smb3 vers smb4 a l'install mais ca a planté chez moi

n°779710
Junt
Posté le 07-02-2006 à 16:14:14  profilanswer
 

Salut dam1330,
 
J'ai suivi à la lettre ton tutorial et je m'apprete à executer la commande net getlocalsid et j'ai cette erreur
[2006/02/07 16:08:54, 0] utils/net.c:net_getlocalsid(494)
  Can't fetch domain SID for name: dcJunt
 
Un point différent de ton tuto, j'utilise un openldap distant donc ce n'est pas 127.0.0.1 mais j'ai bien modifié tout ca dans le smb.conf et les fichiers de config comme indiqué.
Sur le serveur ldap lam est bien installé etc..
Pour info j'ai testé avec la commande net rpc info et là jai un bon retour de Domain SID et Domain Name: jundomaine
Lorsque je lance smbldap populate je n'ai pourtant pas de messages d'erreur il met add entry etc.. mais lorsque je vais sur LAM je n'ai rien... :(  
Je suis sous Debian sarge.
 
***EDIT *****
Finalement jai continué et ajouter nsswitch etc..et tout fonctionne sauf cette commande.
J'ai cree un utilisateur samba et il est bien venu s'ajouter à distance sur mon server openldap
Je vais tester tout cà avec un controleur de domaine samba et mon openldap . JE vais aussi tenter avec un maitre un esclave etc..
Je n'ai jamais vu un tuto aussi clair que le tien pour cette mise en place qui peut paraitre assez importante
Félicitations et Encore merci !
*****
Merci de ton aide
Cdlt  
Junt


Message édité par Junt le 07-02-2006 à 17:30:27
n°779775
dam1330
...
Posté le 07-02-2006 à 17:34:18  profilanswer
 

heu donc c'est bon ? t'arrive a joindre ton domaine ?
 
sinon les erreurs avec cette commande proviennent du fichier secrets.tdb dans /var/lib/samba qui est créé avec smbpasswd -w

n°779780
metatrone
Posté le 07-02-2006 à 17:42:56  profilanswer
 

re dams,
 
bon, toujours en sarge, j ai cette fois ci utilisé les paquets testing, qui sont donc les memes ques les tiens ( openldap2.2 Version: 2.2.26-5 smbldap-tools. Version: 0.9.2-3 ). . .
 
je suit donc a a lettre le tuto. . . et la ca plante sur samba ! quand je veux reboot le service, ca met 3h et le log me sort :
 

Code :
  1. problem during the ldap search : (time exceeded)


 
quand je fais un net getlocalsid :

Code :
  1. net getlocalsid
  2. [2006/02/07 02:46:11, 0] lib/smbldap.c:smbldap_connect_system(890)
  3.   failed to bind to server ldap://127.0.0.1/ with dn="cn=admin,dc=work,dc=com" Error: Invalid credentials
  4. [2006/02/07 02:46:26, 0] lib/smbldap.c:smbldap_search_suffix(1346)
  5.   smbldap_search_suffix: Problem during the LDAP search: (unknown) (Time limit exceeded)
  6. SID for domain WORKED is: S-1-5-21-3516243973-259605262-3299619628


 
 
et le smbldap-populate me sort pour chaque entree :
 

Code :
  1. Populating LDAP directory for domain workin (S-1-5-21-3516243973-259605262-3299619628)
  2. (using builtin directory structure)
  3. adding new entry: dc=work,dc=com
  4. failed to add entry: modifications require authentication at /usr/sbin/smbldap-populate line 495, <GEN1> line 2.


 
donc ya une erreur au nivo de  authentification, mais je ne vois pas a cause de koi . j ai redemarre la machine et les services sans succes:s:s
si quelqu un aurait une idée, merci d avance de votre aide. :)


Message édité par metatrone le 07-02-2006 à 17:44:16
n°779789
dam1330
...
Posté le 07-02-2006 à 18:16:42  profilanswer
 

ca ne sert a rien sous linux de rebooter ca machine, sauf compil de noyau.
 
stoppe samba, rm /var/lib/samba/secrets.tdb, smbpasspwd -w.
 
 
as tu mis  
rootdn          "cn=admin,dc=work,dc=com"
rootpw          {SSHA}passwordcrypté
 
dans /etc/ldap/slapd.conf ?
 
et modifié /etc/opt/IDEALX/smbldap-tools/smbldap_bind.conf ?


Message édité par dam1330 le 07-02-2006 à 18:19:39
n°779790
metatrone
Posté le 07-02-2006 à 18:24:07  profilanswer
 

oui tout ai bien renseigné, jai refais le pass samba, tjs la meme erreur :/
 
j ai tenté de desinstall/reinstall samba, et j ai remarque que je me prends ca comme erreur a la fin :  
 

Code :
  1. Generating /etc/default/samba...
  2. TDBSAM version too old (0), trying to convert it.
  3. TDBSAM converted successfully.
  4. account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
  5. account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
  6. account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
  7. account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
  8. account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
  9. account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
  10. account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
  11. account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
  12. account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
  13. account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
  14. Starting Samba daemons: nmbd smbd.
  15. Paramétrage de libcrypt-smbhash-perl (0.12-1) ...
  16. Paramétrage de smbldap-tools (0.9.2-3) ...


 
comment remedier a ca ? ca pourrait avoir un rappot avec le soucis lors du getlocalsid ?


Message édité par metatrone le 07-02-2006 à 18:32:50
n°779791
dam1330
...
Posté le 07-02-2006 à 18:27:54  profilanswer
 

donc t'avais pas cette erreur avec les paquets stables ?
 
 
edit:
 sauve ton smb.conf ailleurs que dans /etc/samba/
 
efface ton samba apt-get remove --purge samba et reinstalle apt-get install samba, stoppe le, remets ton smb.conf et relance samba


Message édité par dam1330 le 07-02-2006 à 18:35:57
n°779798
metatrone
Posté le 07-02-2006 à 18:41:00  profilanswer
 

non lol :/

n°779802
dam1330
...
Posté le 07-02-2006 à 18:50:13  profilanswer
 

ldapsearch -x -b dc=work,dc=com
 
 
ca te fait quoi ?

n°779892
metatrone
Posté le 08-02-2006 à 04:03:24  profilanswer
 

re, bon alors la commande ldapsearch, me dit qu il ne connait pas :/
 
et je viens de remarquer que a la fin du smbldap-populate qui plante, il me fait :
 

Code :
  1. please provide a password for the domain root :
  2. /usr/bin/smbldap-passwd : user root doesn't exist.


 
euh, comment creer ce user root ? je pensai qu il etait generé tout seul par rapport a celui du systeme. une idée ?

n°780085
Junt
Posté le 08-02-2006 à 15:14:25  profilanswer
 

Helloo,
 
Comment exporter nos actuels utilisateurs Samba dans l'annuaire LDAP ?
Là ca fonctionne pour les nouveaux utilisateurs mais pour les anciens? y a til un outil?

n°780179
metatrone
Posté le 08-02-2006 à 18:55:09  profilanswer
 

dam1330 a écrit :

jaii un message d'erreur quand je veux connaitre le sid du domaine meme si je l'obtiens quand meme
 
root@shuttle:~# net getlocalsid
[2005/10/19 21:02:57, 0] lib/smbldap.c:smbldap_connect_system(852)
  failed to bind to server ldap://127.0.0.1/ with dn="cn=admin,dc=shuttle,dc=com" Error: Invalid credentials
 
[2005/10/19 21:03:13, 0] lib/smbldap.c:smbldap_search_suffix(1176)
  smbldap_search_suffix: Problem during the LDAP search: (unknown) (Timed out)
SID for domain SHUTTLE is: ...............................................


 
 
re dam,
 
bah je rencontre exactement le meme probleme aussi, comment as tu fais pour corriger cela ?
si je commente la ligne "passdb backend = ldapsam:ldap://127.0.0.1/" dans smb.conf, la pu d erreur lors du net gertlocalsid, mais le smbldap-populate plante tjs :///

Message cité 1 fois
Message édité par metatrone le 08-02-2006 à 19:18:56
n°780205
dam1330
...
Posté le 08-02-2006 à 19:47:33  profilanswer
 

donc le probleme ne vient pas de samba, mais plutot de ldap.
 
c'est quoi l'erreur du ldapsearch ?
 
poste ton /etc/ldap/ldap.conf

n°780212
dam1330
...
Posté le 08-02-2006 à 19:57:30  profilanswer
 

Junt a écrit :

Helloo,
 
Comment exporter nos actuels utilisateurs Samba dans l'annuaire LDAP ?
Là ca fonctionne pour les nouveaux utilisateurs mais pour les anciens? y a til un outil?


 
 
je ne sais pas trop comment ca marche, mais il y a un script qui exporte tous les modules:
apt-get install migrationtools
cd /usr/share/migrationtools/
LDAPADD="/usr/bin/ldapadd -c" ETC_ALIASES=/dev/null ./migration_all_online.sh

n°780227
metatrone
Posté le 08-02-2006 à 20:39:09  profilanswer
 

slapd.conf :
 

Code :
  1. # This is the main slapd configuration file. See slapd.conf(5) for more
  2. # info on the configuration options.
  3. #######################################################################
  4. # Global Directives:
  5. # Features to permit
  6. #allow bind_v2
  7. # Schema and objectClass definitions
  8. include         /etc/ldap/schema/core.schema
  9. include         /etc/ldap/schema/cosine.schema
  10. include         /etc/ldap/schema/nis.schema
  11. include         /etc/ldap/schema/inetorgperson.schema
  12. # Schema check allows for forcing entries to
  13. # match schemas for their objectClasses's
  14. schemacheck     on
  15. # Where the pid file is put. The init.d script
  16. # will not stop the server if you change this.
  17. pidfile         /var/run/slapd/slapd.pid
  18. # List of arguments that were passed to the server
  19. argsfile        /var/run/slapd.args
  20. # Read slapd.conf(5) for possible values
  21. loglevel        0
  22. # Where the dynamically loaded modules are stored
  23. modulepath /usr/lib/ldap
  24. moduleload back_bdb
  25. #######################################################################
  26. # Specific Backend Directives for bdb:
  27. # Backend specific directives apply to this backend until another
  28. # 'backend' directive occurs
  29. backend  bdb
  30. checkpoint 512 30
  31. #######################################################################
  32. # Specific Backend Directives for 'other':
  33. # Backend specific directives apply to this backend until another
  34. # 'backend' directive occurs
  35. #backend  <other>
  36. #######################################################################
  37. # Specific Directives for database #1, of type bdb:
  38. # Database specific directives apply to this databasse until another
  39. # 'database' directive occurs
  40. database        bdb
  41. # The base of your directory in database #1
  42. suffix          "dc=work,dc=com"
  43. # Where the database file are physically stored for database #1
  44. directory       "/var/lib/ldap"
  45. # Indexing options for database #1
  46. index           objectClass eq
  47. # Save the time that the entry gets modified, for database #1
  48. lastmod         on
  49. # Where to store the replica logs for database #1
  50. # replogfile /var/lib/ldap/replog
  51. # The userPassword by default can be changed
  52. # by the entry owning it if they are authenticated.
  53. # Others should not be able to see it, except the
  54. # admin entry below
  55. # These access lines apply to database #1 only
  56. access to attrs=userPassword
  57.         by dn="cn=admin,dc=work,dc=com" write
  58.         by anonymous auth
  59.         by self write
  60.         by * none
  61. # Ensure read access to the base for things like
  62. # supportedSASLMechanisms.  Without this you may
  63. # have problems with SASL not knowing what
  64. # mechanisms are available and the like.
  65. # Note that this is covered by the 'access to *'
  66. # ACL below too but if you change that as people
  67. # are wont to do you'll still need this if you
  68. # want SASL (and possible other things) to work
  69. # happily.
  70. access to dn.base="" by * read
  71. # The admin dn has full write access, everyone else
  72. # can read everything.
  73. access to *
  74.         by dn="cn=admin,dc=work,dc=com" write
  75.         by * read
  76. # For Netscape Roaming support, each user gets a roaming
  77. # profile for which they have write access to
  78. #access to dn=".*,ou=Roaming,o=morsnet"
  79. #        by dn="cn=admin,dc=work,dc=com" write
  80. #        by dnattr=owner write
  81. #######################################################################
  82. # Specific Directives for database #2, of type 'other' (can be bdb too):
  83. # Database specific directives apply to this databasse until another
  84. # 'database' directive occurs
  85. #database        <other>
  86. # The base of your directory for database #2
  87. #suffix  "dc=debian,dc=org"


 
et le ldap.conf, vide  :
 

Code :
  1. # $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.9 2000/09/04 19:57:01 kurt Exp $
  2. #
  3. # LDAP Defaults
  4. #
  5. # See ldap.conf(5) for details
  6. # This file should be world readable but not world writable.
  7. #BASE dc=example, dc=com
  8. #URI ldap://ldap.example.com ldap://ldap-master.example.com:666
  9. #SIZELIMIT 12
  10. #TIMELIMIT 15
  11. #DEREF  never

n°780235
dam1330
...
Posté le 08-02-2006 à 21:03:08  profilanswer
 

oula !!
 
mais c'est normal que ca ne marche pas:
tu m'avais dit que tu avais mis le rootdn et le rootpwd, mais il n'y est pas.
 
rootdn          "cn=admin,dc=work,dc=com"
rootpw          {SSHA}passwordcrypté  
 
juste en dessous de  
#
# The base of your directory in database #1
#
suffix          "dc=work,dc=com"
 
tu generes le mot de passe avec slappaswd
 
ensuite, et ca c'est hyper important, ya pas le include du schema samba: si t'as suivi ma doc tu dois avoir le fichier: /etc/ldap/schema/samba.schema
 
rajoute celle ligne:
include /etc/ldap/schema/inetorgperson.schema
 
dans ldap.conf, tu vires tout et tu mets juste:
BASE    dc=work, dc=com
URI     ldap://localhost:389
 
 
 

n°780269
metatrone
Posté le 08-02-2006 à 22:16:39  profilanswer
 

pardon!
c est le slapd.conf de base que j ai mis, pas celui que j ai modif, voila le vrai :  
 

Code :
  1. # This is the main slapd configuration file. See slapd.conf(5) for more
  2. # info on the configuration options.
  3. #######################################################################
  4. # Global Directives:
  5. # Features to permit
  6. #allow bind_v2
  7. # Schema and objectClass definitions
  8. include         /etc/ldap/schema/core.schema
  9. include         /etc/ldap/schema/cosine.schema
  10. include         /etc/ldap/schema/nis.schema
  11. include         /etc/ldap/schema/inetorgperson.schema
  12. include         /etc/ldap/schema/samba.schema
  13. # Schema check allows for forcing entries to
  14. # match schemas for their objectClasses's
  15. schemacheck     on
  16. # Where the pid file is put. The init.d script
  17. # will not stop the server if you change this.
  18. pidfile         /var/run/slapd/slapd.pid
  19. # List of arguments that were passed to the server
  20. argsfile        /var/run/slapd.args
  21. # Read slapd.conf(5) for possible values
  22. loglevel        0
  23. # Where the dynamically loaded modules are stored
  24. modulepath /usr/lib/ldap
  25. moduleload back_bdb
  26. #######################################################################
  27. # Specific Backend Directives for bdb:
  28. # Backend specific directives apply to this backend until another
  29. # 'backend' directive occurs
  30. backend  bdb
  31. checkpoint 512 30
  32. #######################################################################
  33. # Specific Backend Directives for 'other':
  34. # Backend specific directives apply to this backend until another
  35. # 'backend' directive occurs
  36. #backend  <other>
  37. #######################################################################
  38. # Specific Directives for database #1, of type bdb:
  39. # Database specific directives apply to this databasse until another
  40. # 'database' directive occurs
  41. database        bdb
  42. # The base of your directory in database #1
  43. suffix          "dc=work,dc=com"
  44. rootdn          "cn=admin,dc=work,dc=com"
  45. rootpw          {SSHA}xxx
  46. # Where the database file are physically stored for database #1
  47. directory       "/var/lib/ldap"
  48. # Indexing options for database #1
  49. index           objectClass eq
  50. # Save the time that the entry gets modified, for database #1
  51. lastmod         on
  52. # Where to store the replica logs for database #1
  53. # replogfile /var/lib/ldap/replog
  54. # The userPassword by default can be changed
  55. # by the entry owning it if they are authenticated.
  56. # Others should not be able to see it, except the
  57. # admin entry below
  58. # These access lines apply to database #1 only
  59. access to attrs=userPassword
  60.         by dn="cn=admin,dc=work,dc=com" write
  61.         by anonymous auth
  62.         by self write
  63.         by * none
  64. # Ensure read access to the base for things like
  65. # supportedSASLMechanisms.  Without this you may
  66. # have problems with SASL not knowing what
  67. # mechanisms are available and the like.
  68. # Note that this is covered by the 'access to *'
  69. # ACL below too but if you change that as people
  70. # are wont to do you'll still need this if you
  71. # want SASL (and possible other things) to work
  72. # happily.
  73. access to dn.base="" by * read
  74. # The admin dn has full write access, everyone else
  75. # can read everything.
  76. access to *
  77.         by dn="cn=admin,dc=work,dc=com" write
  78.         by * read
  79. # For Netscape Roaming support, each user gets a roaming
  80. # profile for which they have write access to
  81. #access to dn=".*,ou=Roaming,o=morsnet"
  82. #        by dn="cn=admin,dc=work,dc=com" write
  83. #        by dnattr=owner write
  84. #######################################################################
  85. # Specific Directives for database #2, of type 'other' (can be bdb too):
  86. # Database specific directives apply to this databasse until another
  87. # 'database' directive occurs
  88. #database        <other>
  89. # The base of your directory for database #2
  90. #suffix  "dc=debian,dc=org"


 
je vais essayer de modif le ldap.conf pour voir. . .  
et par contre dans le tuto a aucun moment je nai vu de commande slapasswd, juste un smbpasswd;

n°780277
dam1330
...
Posté le 08-02-2006 à 22:52:28  profilanswer
 

le slappaswd ca crypte juste ton mot de passe, tu saissis ton mot de passe et ca te le retourne crypté que tu colles dans ton fichier slapd.conf

n°780296
metatrone
Posté le 09-02-2006 à 00:05:55  profilanswer
 

re dam,
 
bon j ai tout cassé tout refait a propre, et mis en crypté le pass dans slapd.conf (car je l avais laissé en clair!), et la le smbldap-populate fonctionne sans prob! merci! j y retourne voir jsuka ou ca va pas planter :=)

n°780302
metatrone
Posté le 09-02-2006 à 00:48:37  profilanswer
 

re,  
 
une fois que je me suis connect en root, ca reboot mais arrive au moment de se logguer, sous XP, il me dit que le domaine n est pas disponible :/
 
de plus est ce obligé de se connecter en root la 1ere fois a chake fois qu on veut rentrer un hote et user dans le domaine ?


Message édité par metatrone le 09-02-2006 à 02:18:52
n°780543
Junt
Posté le 09-02-2006 à 16:34:00  profilanswer
 

Moi aussi j'ai le même probleme domaine indisponible..
Quand tu veux joindre une machine dans un domaine tu te loggue login administrateur local et tu fais joindre un domaine. Apres tu rebotes et tu te loggues avec n'importe quel utilisateur de ton domaine

n°780547
dam1330
...
Posté le 09-02-2006 à 16:40:20  profilanswer
 

junt, tu ne peux pas te logguer avec tes users ?
 
et si vous vous loggues avec le root ?

n°780664
metatrone
Posté le 09-02-2006 à 23:38:25  profilanswer
 

bah en fait je peux me juste me logguer en root la 1ere fois que je renseigne le nom du domaine, apres a chake reboot il me dit que le domaine n est pas dispo, et je ne peux me logguer avec ausun user ou root

n°780813
dam1330
...
Posté le 10-02-2006 à 11:35:16  profilanswer
 

sous linux un  getent passwd te retourne quoi ? y a les utilisateurs de LDAP ?

n°780883
metatrone
Posté le 10-02-2006 à 14:36:03  profilanswer
 

oui j'ai bien mes users du systeme et mes users ldap, ces 3 la, et la machine avec lakelle j ai tenté de me connecter :
 

Code :
  1. root:x:0:0:Netbios Domain Administrator:/home/root:/bin/false
  2. nobody:x:999:514:nobody:/dev/null:/bin/false
  3. test-laptop$:x:1000:515:Computer:/dev/null:/bin/false
  4. test:x:10009:513:test:/home/test:/bin/bash


 
les droits sont ils correct ? et la il me met le chemin du repertoire test, mais dans home ce dossier n as pas été crée. . .


Message édité par metatrone le 10-02-2006 à 14:37:15
n°780916
dam1330
...
Posté le 10-02-2006 à 16:22:37  profilanswer
 

ouais faut les creer a la main, c normal ca.
 
verifie les log dans /var/log/samba

n°781018
metatrone
Posté le 10-02-2006 à 21:54:43  profilanswer
 

le log.smbd :
 

Code :
  1. [2006/02/09 02:11:55, 0] lib/util_sid.c:string_to_sid(266)
  2.   string_to_sid: Sid -516 does not start with 'S-'.
  3. [2006/02/09 02:11:55, 1] passdb/pdb_get_set.c:pdb_set_user_sid_from_string(560)
  4.   pdb_set_user_sid_from_string: -516 isn't a valid SID!
  5. [2006/02/09 02:11:55, 0] lib/util_sid.c:string_to_sid(266)
  6.   string_to_sid: Sid -516 does not start with 'S-'.
  7. [2006/02/09 02:11:55, 1] passdb/pdb_get_set.c:pdb_set_group_sid_from_string(595)  pdb_set_group_sid_from_string: -516 isn't a valid SID!
  8. [2006/02/09 02:11:55, 1] passdb/pdb_ldap.c:init_sam_from_ldap(694)
  9.   init_sam_from_ldap: no sambaSID or sambaSID attribute found for this user test[2006/02/09 02:11:55, 1] passdb/pdb_ldap.c:ldapsam_getsampwnam(1499)
  10.   ldapsam_getsampwnam: init_sam_from_ldap failed for user 'test'!
  11. [2006/02/09 02:12:04, 0] rpc_server/srv_samr.c:api_samr_set_userinfo(786)
  12.   api_samr_set_userinfo: Unable to unmarshall SAMR_Q_SET_USERINFO.


 
et le log.nmb :
 

Code :
  1. *****
  2. [2006/02/09 02:53:30, 0] nmbd/nmbd_incomingdgrams.c:process_local_master_announce(311)
  3.   process_local_master_announce: Server META-LAPTOP at IP 192.168.0.5 is announcing itself as a local master browser for workgroup WORKGROUP and we think we are master. Forcing election.
  4. [2006/02/09 02:53:30, 0] nmbd/nmbd_become_lmb.c:unbecome_local_master_success(149)
  5.   *****
  6.   Samba name server WORKGROUP has stopped being a local master browser for workgroup WORKGROUP on subnet 192.168.0.2
  7.   *****
  8. [2006/02/09 02:53:49, 0] nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  9.   *****
  10.   Samba name server WORKGROUP is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.2


n°781019
dam1330
...
Posté le 10-02-2006 à 22:05:24  profilanswer
 

metatrone a écrit :

re dam,
 
bah je rencontre exactement le meme probleme aussi, comment as tu fais pour corriger cela ?
si je commente la ligne "passdb backend = ldapsam:ldap://127.0.0.1/" dans smb.conf, la pu d erreur lors du net gertlocalsid, mais le smbldap-populate plante tjs :///


 
 
tu as redecommenté cette ligne ?

n°781020
metatrone
Posté le 10-02-2006 à 22:09:11  profilanswer
 

oui oui elle est  bien redecommenté :/ , tout comme dans ton exemple

n°781022
dam1330
...
Posté le 10-02-2006 à 22:25:59  profilanswer
 

ajoute un user toto comme ca:
smbldap-useradd -a toto
smbldap-passwd toto
 
essaye de te logguer
 
sinon teste d'acceder a tes partages linux depuis linux avec konqueror par exemple
smb://localhost/

n°781137
metatrone
Posté le 11-02-2006 à 15:01:24  profilanswer
 

re,
 
j ai bien tenté de creer un user a la main, mais en fait le soucis c erst que des le 1er reboot ca plante j ai l impression :
 
1. je saisi le nom de domaine sous XP
2. il me demande un couple login/pass
3. je renseigne comme login ROOT
4. il me dit "bienvenue dans votre domaine, rebootez"
5.je reboot
6. arrivé au logon, des que je tente de choisir mon domaine, il me sort "il y a un nom en double sur le reseau" , qui correspond au controlleur de domaine. . .
7. meme avec le user cree a la main, bah comme d hab il me dit que le domaine n est pas disponible. . .
 
et dans mes logs (post au dessus), il m avait semblé voir que ma machine cliente sur lakelle je me logguais en root la 1ere fois, qu elle essayait de prendre la main sur le controlleur primaire. . . quelqu un confirme ?
 
voila avec ces infos, si quelqu un aurait une idée.


Message édité par metatrone le 11-02-2006 à 15:06:46
mood
Publicité
Posté le   profilanswer
 

 Page :   1  2  3  4  5  ..  22  23  24  25  26  27

Aller à :
Ajouter une réponse
 

Sujets relatifs
Samba qui marche presque pas ...petit souci samba...
Combat de titan partage samba et windows 2000 serverLinux SUse 10.0 dispo. : y'en aura pour tout le monde !
session sambaRED HAT 9 et Open LDAP
postfix+cyrus-imap+ldap : problème autocreatesamba et user windows
[samba] lenteur à d'ouverture du partage via XP 
Plus de sujets relatifs à : ldap / samba - guide - CA MARCHE !! WIKI dispo


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